Skip to content

Commit 343b8f3

Browse files
committed
oembed
1 parent 261aebe commit 343b8f3

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## 1.1.11 - 2021-06-03
8+
9+
### Fixed
10+
11+
- OEmbed
12+
713
## 1.1.10 - 2021-06-03
814

915
### Fixed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mikestecker/craft-videoembedder",
33
"description": "Craft plugin to generate an embed URL from a YouTube or Vimeo URL.",
44
"type": "craft-plugin",
5-
"version": "1.1.10",
5+
"version": "1.1.11",
66
"keywords": [
77
"craft",
88
"cms",

src/services/VideoEmbedderService.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ public function getInfo($url)
4343
try {
4444
$embed = new Embed();
4545
$info = $embed->get($url);
46-
47-
if ($this->isVimeo($url)) {
48-
$response = $info;
49-
} else {
50-
$response = $info->getOEmbed();
51-
}
46+
$response = $info->getOEmbed();
5247
}
5348
catch (Exception $e)
5449
{

0 commit comments

Comments
 (0)