Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
funkwhale
Commits
4f5f3839
Commit
4f5f3839
authored
Jun 25, 2017
by
Eliot Berriot
Browse files
Added documentation about music acquisition
parent
34ec7b54
Pipeline
#63
passed with stages
in 2 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demo/download-tracks.sh
0 → 100755
View file @
4f5f3839
#! /bin/bash
set
-e
[
-z
$1
]
&&
echo
"Path to list file missing"
&&
exit
1
echo
"This will download tracks from zip archives listed in
$1
"
LIST_CONTENT
=
$(
cat
$1
)
echo
"
$LIST_CONTENT
"
mkdir
-p
data/music
cd
data/music
echo
"Downloading files..."
echo
"
$LIST_CONTENT
"
|
grep
"^[^#;]"
| xargs
-n
1 curl
-LO
echo
"Unzipping archives..."
find
.
-name
"*.zip"
|
while
read
filename
;
do
dirname
=
"
${
filename
%.*
}
"
mkdir
$dirname
unzip
-o
-d
"
$dirname
"
"
$filename
"
;
done
;
echo
"Done!"
demo/music.txt
0 → 100644
View file @
4f5f3839
# You can get a pretty list of open music here: https://archive.org/details/jamendo-albums
https://archive.org/compress/jamendo-069098/formats=OGG%20VORBIS&file=/jamendo-069098.zip
https://archive.org/compress/jamendo-001144/formats=OGG%20VORBIS&file=/jamendo-001144.zip
https://archive.org/compress/jamendo-027690/formats=OGG%20VORBIS&file=/jamendo-027690.zip
https://archive.org/compress/jamendo-001469/formats=OGG%20VORBIS&file=/jamendo-001469.zip
https://archive.org/compress/jamendo-106323/formats=OGG%20VORBIS&file=/jamendo-106323.zip
https://archive.org/compress/jamendo-071149/formats=OGG%20VORBIS&file=/jamendo-071149.zip
https://archive.org/compress/jamendo-085030/formats=OGG%20VORBIS&file=/jamendo-085030.zip
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment