Compare commits
2 Commits
c0e2ab0129
...
1f9a0ea586
Author | SHA1 | Date |
---|---|---|
Annika Backstrom | 1f9a0ea586 | |
Annika Backstrom | 38f832e8d8 |
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
ls media/*\ -\ *.mp3 | while read line ; do
|
||||
UUID=$(./jukebox/node_modules/.bin/uuid v4)
|
||||
echo "mv \"$line\" \"media/$UUID\""
|
||||
|
||||
FILE=$(basename "$line" ".mp3")
|
||||
set -- $FILE
|
||||
|
||||
TAG=${@:1:1}
|
||||
LABEL=${@:3}
|
||||
echo "INSERT INTO tags (tag) VALUES (\"$TAG\");" 1>>/dev/stderr;
|
||||
echo "INSERT INTO library (tag, label, uuid) VALUES (\"$TAG\", \"$LABEL\", \"$UUID\");" 1>>/dev/stderr;
|
||||
done
|
|
@ -10,7 +10,10 @@ body {
|
|||
h1 {
|
||||
font-size: 2rem;
|
||||
margin: 0.5em 0;
|
||||
color: hsl(182.8, 70.2%, 42.2%)
|
||||
}
|
||||
h1 a, h1 a:active, h1 a:visited, h1 a:hover {
|
||||
color: hsl(182.8, 70.2%, 42.2%);
|
||||
text-decoration: none;
|
||||
}
|
||||
h2 {
|
||||
margin-bottom: 0.5ex;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<body>
|
||||
<div class=header>
|
||||
<h1 class=page-title>jukebox.stop.wtf</h1>
|
||||
<h1 class=page-title><a href="/">jukebox.stop.wtf</a></h1>
|
||||
</div>
|
||||
<div class="main-content">
|
||||
{{{body}}}
|
||||
|
|
Loading…
Reference in New Issue