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.
I've tried to embed code from archive.org.
In the 1.x version: I am able to save the node, but the flashvars point to the localhost instead of archive.org
In the 2.x version: I am not able to save the URL because "You have specified an invalid media URL or embed code."
Example archive.org URL. http://www.archive.org/details/20030524-bbs-nasstrom
Comments
Comment #1
winston CreditAttribution: winston commented@jseffel
Are you trying to embed video or audio? There appear to be both in the archive.org item you are pointing to.
Not sure I recommend putting both video and audio in the same archive.org item, but in theory it should still work.
Anyway I tested both video and audio with the latest emfield and latest media_archive and video works fine in my test.
Audio didn't work, but I did not get the "You have specified an invalid media URL or embed code." error. It embedded, just didn't play.
Before I continue with this issue, please clarify if you are getting an error on video (which I currently can't reproduce) or audio (which I'm getting a different error on).
Comment #2
nedjoI've had reports of Media: Archive errors when trying to use embed code rather than copying and pasting the URL.
Comment #3
winston CreditAttribution: winston commented@nedjo
I don't think your problem is related to @jseffel. He is saying he used the URL.
Please open a new issue and post a link to an archive item where the embed code specifically generates a Media: Archive error.
I checked a bunch of archive.org items and the regular expressions should be picking up the identifier for all of them correctly so without an item that definitely fails I'm not sure what I'd be debugging.
Thanks...
Comment #4
winston CreditAttribution: winston commentedGoing to close this as I just updated the code with major changes to how archive.org data is fetched, how video/audio are selected, etc. that should fix the above issues.
I've been using your example URL as a test case and it is working consistently for me.
Please try the lastest recommended emfield + latest recommended media_archive and open a new issue if you have a problem.
Thanks.
Comment #5
winston CreditAttribution: winston commentedHmm, turns out the embed codes weren't working after all. Fixed in latest 2.x releases. Sorry for the multiple releases so quickly.