Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Whatever I enter as the "URL or Embed Code" for a MySpace video, Drupal says "You have specified an invalid media URL or embed code."
For example, I've tried...
- The embed URL: http://www.myspace.com/video/contributor/sucker-punch-featurette/107219195
- The page URL: http://www.myspace.com/video/movie-trailers/sucker-punch-featurette/1072...
- The embed code:
<object width="425px" height="372px"><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://player.hulu.com/embed/myspace_player_v002.swf?pid=50108114&embed=true&videoID=107219195" /><embed src="http://player.hulu.com/embed/myspace_player_v002.swf?pid=50108114&embed=true&videoID=107219195" width="425" height="372" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent"></embed></object>
- The URL from the embed code: http://player.hulu.com/embed/myspace_player_v002.swf?pid=50108114&embed=...
Has the URL format changed so these no longer validate? Or am I doing something wrong?
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedHi !
The emvideo_myspace_extract function located in myspace.inc needs to be updated with the following regular expressions :
'@myspace\.com/[^/]+/videos/video/([0-9]+)@i'
'@myspace\.com/video/[^/]+/[^/]+/([0-9]+)@i'
It may need other ones ;-)