1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:15:56 +00:00

reinstate HOOK_RENDER_ENCLOSURE

This commit is contained in:
Andrew Dolgov
2021-02-22 10:00:50 +03:00
parent 6f29ecbbb9
commit 33fff26869
4 changed files with 24 additions and 15 deletions

View File

@@ -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];