diff options
-rw-r--r-- | init.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -154,8 +154,12 @@ class Af_Lemmy extends Plugin { /* normalize video URL for af_youtube_... plugins */ $video_url = "https://www.youtube.com/v/$vid_id"; + $enc = new FeedEnclosure(); + $enc->link = $video_url; + $enc->type = "text/html"; + /* push generated video URL to enclosures so that youtube embed plugins would deal with it later (if enabled) */ - $this->generated_enclosures[] = [$video_url, "text/html", null, null, '', '']; + $this->generated_enclosures[] = $enc; $found = 1; } |