From 21d236295dbf19d9344936d86892d07a5d5148fc Mon Sep 17 00:00:00 2001 From: Antoine Beaupré Date: Thu, 31 Mar 2016 10:50:17 -0400 Subject: new script --- doc/tips/playlist_fetch.mdwn | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/tips/playlist_fetch.mdwn (limited to 'doc/tips') diff --git a/doc/tips/playlist_fetch.mdwn b/doc/tips/playlist_fetch.mdwn new file mode 100644 index 000000000..c549bf3b9 --- /dev/null +++ b/doc/tips/playlist_fetch.mdwn @@ -0,0 +1,25 @@ +I have made a small script to fetch a specific set of songs from a +playlist. It just iterates through a [M3U][] playlist and makes sure +that git-annex has a copy of every file in the list. + +Sample run: + + [1041]anarcat@angela:Music1$ ~/bin/get-playlist -p1 -v ~/playlists/Favoris.m3u + git-annex: Bach/Unknown Album/Concerto for 2 Violins in D.mp3 not found + git-annex: get: 1 failed + git annex failed to get Bach/Unknown Album/Concerto for 2 Violins in D.mp3 (originally espresso/Bach/Unknown Album/Concerto for 2 Violins in D.mp3) + get Groovy Aardvark/Oryctérope/05 - Téléthargique.flac (from marcos...) + SHA256E-s26735079--13c04501b9c6fa5ddda02438484d569f4d3d9b1f0bcdd8740f3b927ab756c968.flac + 26,735,079 100% 10.00MB/s 0:00:02 (xfr#1, to-chk=0/1) + (checksum...) ok + Groovy Aardvark/Oryctérope/05 - Téléthargique.flac + [...] + merge git-annex ok + +The source is AGPL and available in my +[personal git repository][]. Unfortunately, it is written in Python +and can probably not be merged into git-annex, but since it is so +specific, I figured it wouldn't be anyways. -- [[anarcat]] + +[personal git repository]: http://src.anarc.at/scripts.git/blob_plain/HEAD:/get-playlist +[M3U]: https://en.wikipedia.org/wiki/M3U -- cgit v1.2.3