mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:25:55 +00:00
reinstate HOOK_RENDER_ENCLOSURE
This commit is contained in:
@@ -23,9 +23,9 @@ class Af_Youtube_Embed extends Plugin {
|
||||
|
||||
$matches = array();
|
||||
|
||||
if (preg_match("/\/\/www\.youtube\.com\/v\/([\w-]+)/", $entry["url"], $matches) ||
|
||||
preg_match("/\/\/www\.youtube\.com\/watch?v=([\w-]+)/", $entry["url"], $matches) ||
|
||||
preg_match("/\/\/youtu.be\/([\w-]+)/", $entry["url"], $matches)) {
|
||||
if (preg_match("/\/\/www\.youtube\.com\/v\/([\w-]+)/", $entry["content_url"], $matches) ||
|
||||
preg_match("/\/\/www\.youtube\.com\/watch?v=([\w-]+)/", $entry["content_url"], $matches) ||
|
||||
preg_match("/\/\/youtu.be\/([\w-]+)/", $entry["content_url"], $matches)) {
|
||||
|
||||
$vid_id = $matches[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user