Hi Aaron,
I've updated the Emfield module and am running Views 5.x-1.6 to display videos in the right sidebar. I've also updated to Drupal 5.2. However, I'm still having trouble with MySpace videos not showing. I'm entering the URL exactly as it is on the MySpace page and nothing shows at all on my page, no link or text, nothing. The older MySpace videos no longer show a video thumbnail but code as a link like this:
2033801731_thumb1.jpg" width="120" height="90" alt="See Video" title="See Video" />
When you click the code you are taken to the larger video preview and can play the video.
Any ideas on what I may be doing wrong?
Thanks.
Heather
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | busted_myspacetv.jpg | 4.35 KB | westbywest |
| #3 | myspace.inc_.diff | 2.08 KB | westbywest |
Comments
Comment #1
mamasdiner commentedOkay, I used the URL in the address bar instead of the URL MySpace gives you to "Send to your friends" and I got a larger preview video to show. However, where the thumbnail should be is the code I provided above. Am I doing something wrong or perhaps have a module that's interfering or have my View set-up incorrectly?
Thanks,
Heather
Comment #2
westbywest commentedHere is my experience testing the Myspace TV code for the emfield module.
Pasting the URL that appears in the browser address field, in this case...
... will successfully let the embedded player appear in full node new.
However. the code for downloading/caching a thumbnail of the video is broken (function "_video_cck_myspace_scrape_thumbnail" in myspace.inc?), since it produced the following (invalid) HTML for the thumbnail
tag in the teaser:
...which in Firefox 2.0x gets rendered as a broken link (no thumbnail) similar to what you quote above.
Has anyone see the thumbnail generation work with Myspace videos?
It is worth noting that the URL that Myspace now provides on the "send URL to friends" field is different from the one appearing in the browser address field...
Indeed, when I use this URL with the current dev version of emfield, nothing happens, no thumbnail and no embedded player.
It's not surprising that key Myspace URLs and server names will change from time to time, so is it perhaps problematic to hardcode these URLs into the emfield provider code? How difficult is it to patch the code to support/recognize multiple URLs for the 3rd party servers, e.g. vids.myspace.com and myspacetv.com?
Comment #3
westbywest commentedFor further followup, it appears the code for scaping thumbnails from Myspace videos is indeed broken, since it that code expects to find an img tag with thumbnail image name of the format "XXX_thumb1.jpg" (where XXX is the numerical video ID). However, the thumbnail img tag apparently is no longer included in the myspacetv.com page for a given video, just the embedded player.
Furthermore, the naming scheme for Myspace TV thumbail images has changed, and no longer includes the video ID. Cf. the thumbnail image for the "chocolate rain" video mentioned above (which will appear in search pages, but not on the video page):
As a work-around, I've a hacked the myspace.inc file to support the following:
Ah, the mysteries of Myspace...
Comment #4
westbywest commentedAnd here is suggested Myspace TV static thumbnail image, as a topically relevant work-around. ;) Again, put this in the /sites/.../files directory.
Comment #5
aaron commentedfixed in the devel version (except for the busted thumbnail). still working on thumbnails: http://drupal.org/node/217339
didn't see your patch till i fixed it, so wasn't able to give credit in cvs, sorry.
also, category should'a been bug, and status should'a had patch in it, as i would've noticed it sooner.
thanks,
aaron
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.