I have about 8 youtube feeds of interest, and would probably have more if I had a way of making them work with my podcast client (currently Banshee) to download and queue them up.
Here's the problem: feeds like
this link to youtube URLs but not to directly downloadable items. This is a known problem; people have written and maintain
tools to take that step. This works for me with some manual steps taken. However what I'd like to do is create a script to translate the feed into podcast XML with enclosures, and I'm running into a road block.
An example will help. youtube-dl has an option to return a download URL:
youtube-dl -g "http://www.youtube.com/watch?v=A1R8KGKkDjU&feature=youtube_gdata"
yields
http://www.youtube.com/get_video?video_id=A1R8KGKkDjU&t=vjVQa1PpcFNZKeUR1fuXgulAnl7cMvONhjSATO3PEK8=&eurl=&el=detailpage&ps=default&gl=US&hl=en
So far so good. But when I pass this to wget I come up with this error:
Cannot write to `videoplayback?ip=75.0.0.0&sparams=id,expire,ip,ipbits,itag,algorithm,burst,factor&fexp=907004&algorithm=throttle-factor&itag=5&ipbits=8&burst=40&sver=3&expire=1273449600&key=yt1&signature=7BE776FCEC9DFCE73FB8B29F2705BCA9EBE69AD6.AFE3051140A582D6FF0C33111CF1FD26EA94307F&factor=1.25&id=03547c2862a40e35'
The above filename is 302 bytes long, and ext4 only supports 256 byte long filenames. Youtube-dl has flags to choose filenames, but I don't believe podcast clients cope with this. Short of downloading all videos to another webserver and inserting that URL in instead, is there a way to convert these feeds to proper enclosures?
posted by jozxyqk at 12:35 PM on May 9, 2010