WordPress.org

Ready to get started?Download WordPress

Forums

All Video Gallery Plugin for WordPress
[resolved] Youtube thumbnail generation (2 posts)

  1. jezz947
    Member
    Posted 1 year ago #

    Hello,

    Thanks for the plugin. :)

    YouTube thumbnail generation is not working if the url starting with https://
    So I have replaced the code in videos/_add.php and videos/_edit.php

    preg_match('/http\:\/\/www\.youtube\.com\/watch\?v=([\w-]{11})/',$_POST['video'], $youtubeID)

    to

    preg_match('%^(?:https?://)?(?:www\.)?(?:youtu\.be/|youtube\.com(?:/embed/|/v/|/watch\?v= ))([\w-]{10,12})$%x',$_POST['video'], $youtubeID);

    Thanks and Regards,
    Jaseem V A

    http://wordpress.org/extend/plugins/all-video-gallery/

  2. Vinoth Kumar
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks. We will update this in our next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.