summaryrefslogtreecommitdiff
path: root/doc/todo/Wishlist:_Import_youtube_playlists.mdwn
blob: 4826d9d248cb2df929abca917f367ef24e86863e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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

> [[done]] --[[Joey]]