update youtube playlist docs

This commit is contained in:
Joey Hess 2017-11-28 13:30:05 -04:00
parent 57b4c5bdff
commit 8f41a1b7ce
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 14 additions and 10 deletions

View file

@ -73,13 +73,16 @@ and transferring to your laptop on demand.
## youtube playlists ## youtube playlists
If your git-annex is also built with quvi support, you can also use You can also use `git annex importfeed` on youtube playlists.
`git annex importfeed` on youtube playlists. It will automatically download It will use quvi to automatically download the videos linked to
the videos linked to by the playlist. by the playlist.
For this you need an rss file containing links to the videos. To download a youtube playlist, you need to find the feed associated with that
For example, this url currently works: playlist, and pass it to `git annex importfeed`. There does not seem to be
<http://gdata.youtube.com/feeds/api/playlists/PLz8ZG1e9MPlzefklz1Gv79icjywTXycR-> an easy link anywhere to get the feed, but you can construct its url
manually. For a playlist like
"https://www.youtube.com/playlist?list=PL4F80C7D2DC8D9B6C", the
feed is "https://www.youtube.com/feeds/videos.xml?playlist_id=PL4F80C7D2DC8D9B6C"
## metadata ## metadata

View file

@ -99,10 +99,7 @@ playlist, and pass it to `git annex importfeed`. There does not seem to be
an easy link anywhere to get the feed, but you can construct its url an easy link anywhere to get the feed, but you can construct its url
manually. For a playlist like manually. For a playlist like
"https://www.youtube.com/playlist?list=PL4F80C7D2DC8D9B6C", the "https://www.youtube.com/playlist?list=PL4F80C7D2DC8D9B6C", the
feed is "http://gdata.youtube.com/feeds/api/playlists/PL4F80C7D2DC8D9B6C" feed is "https://www.youtube.com/feeds/videos.xml?playlist_id=PL4F80C7D2DC8D9B6C"
More details about youtube feeds at <http://googlesystem.blogspot.com/2008/01/youtube-feeds.html>
-- `git-annex importfeed` should handle all of them.
## bittorrent ## bittorrent

View file

@ -39,6 +39,10 @@ playlists. Best option seems to be `--playlist-items 0` which works for
non-playlists, and downloads only 1 item from playlists (hopefully a fairly non-playlists, and downloads only 1 item from playlists (hopefully a fairly
stable item, but who knows..). stable item, but who knows..).
(`git annex importfeed` handles youtube playlist downloads, but needs the
user to find the url to the rss feed for the playlist. Youtube still has
these, although it makes them hard to find.)
Another gotcha is that youtube-dl's -o option does not fully determine the Another gotcha is that youtube-dl's -o option does not fully determine the
filename it downloads to. Sometims it will tack on an additional extension filename it downloads to. Sometims it will tack on an additional extension
(seen with youtube videos where it added a ".mkv"). (seen with youtube videos where it added a ".mkv").