aboutsummaryrefslogtreecommitdiff
path: root/doc/tips
diff options
context:
space:
mode:
authorGravatar Antoine Beaupré <anarcat@debian.org>2016-03-31 10:50:17 -0400
committerGravatar Antoine Beaupré <anarcat@debian.org>2016-03-31 10:50:37 -0400
commit21d236295dbf19d9344936d86892d07a5d5148fc (patch)
tree0e8ea241f66c422dd0c98823a296ef896debae54 /doc/tips
parent43b3e7528e4b27822047afc4529ba11177e324c6 (diff)
new script
Diffstat (limited to 'doc/tips')
-rw-r--r--doc/tips/playlist_fetch.mdwn25
1 files changed, 25 insertions, 0 deletions
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