Support » Plugin: Google Video Sitemap Feed With Multisite Support » YouTube & DailyMotion videos not working

  • Resolved amatheson


    My site has both YouTube and Vimeo videos. When i installed your plugin, the Vimeo videos worked straightaway but I couldn’t get the YouTube videos to work.

    I have traced this to two problems:

    – The regex you use for YouTube (& Daily Motion) has a bunch of whitespace after the grouping brackets making your regex invalid. For example, this part of the YouTube regex basically says, look for ‘’ followed by one of (whitespace+’v/’ or ‘watch?v=’ or ’embed/+whitespace’) followed by (whitespace+Anything other than $+[multiple characters, numbers, dashes, or underscores]+whitespace).

    /youtube\.com\/( v\/|watch\?v=|embed\/ )( [^\$][a-zA-Z0-9\-_]* )/

    Should be more like the following:


    – The YouTube API is the old v2 API which is now deprecated and all the videos now return “No Longer Available.”

    I understand if this is not a priority, so let me know if this is something that won’t be addressed in the short term so I can find an alternative. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Art Project Group


    Thank you for the advice.

    We’ll update the plugin today with fixed code.

    Kind regards.

    Plugin Author Art Project Group


    Everything was fixed, and much more 😉

    Thank you.

    Thanks for the quick turn around on this! The YouTube videos are now showing up properly. Could you adjust the link in the ‘reproductor’ field to reflect a good URL for the YouTube videos? Right now if you follow that link it results in a 404 error.

    A couple more suggestions (I can open a new ticket if you prefer):

    * Title – Should be the video title, according to the spec, right? It seems to be pulling the post title by default.
    * Description – Similar to title, but I think you are limited by what the APIs return, so perhaps there is nothing you can do about this at the moment.

    Thanks again!

    Plugin Author Art Project Group


    We fixed the player URL but in any process we put the old URL again 🙁 We’ll fixed it again, sorry.

    And for the title, description, tags and category we use the post information because we want promote our posts, not the published videos 😉

    Kind regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘YouTube & DailyMotion videos not working’ is closed to new replies.