This commit is contained in:
https://www.google.com/accounts/o8/id?id=AItOawn7gQ1zZDdWhXy9H51W2krZYShNmKL3qfM 2013-12-27 20:31:36 +00:00 committed by admin
parent 74cf34e5eb
commit 2aa69e567c

View file

@ -0,0 +1,28 @@
Hi,
it would be great if the importfeed command would be able to read feeds generated by youtube (like for playlists). The youtube playlist feed contains links to separate youtube video pages, which quvi handles just fine. Currently I use the following python script:
#!/usr/bin/env python
import feedparser
import sys
d = feedparser.parse('http://gdata.youtube.com/feeds/api/playlists/%s' % sys.argv[1])
for entry in d.entries:
print entry.link
and then
kasimon@pc:~/annex/YouTube/debconf13$ youtube-playlist-urls PLz8ZG1e9MPlzefklz1Gv79icjywTXycR- | xargs git annex addurl --fast
addurl Welcome_talk.webm ok
addurl Bits_from_the_DPL.webm ok
addurl Debian_Cosmology.webm ok
addurl Bits_from_the_DPL.webm ok
addurl Debian_Cosmology.webm ok
addurl Debian_on_Google_Compute_Engine.webm ok
^C
to create a backup of youtube media I'd like to keep.
It would be great if this functionality could be integrated directly into git annex.
Best
Karsten