Fixing stuff
This commit is contained in:
13
README.md
13
README.md
@ -1,8 +1,19 @@
|
||||
# How does it work?
|
||||
|
||||
> copy music to the music folder
|
||||
|
||||
```sh
|
||||
python scripts/music_import.py -h # For help
|
||||
# e.g.: python scripts/music_import.py music_db/terraria.csv ./<source_folder> ./music
|
||||
```
|
||||
|
||||
Basically, I forgot, I know that you have to download music somehow, create
|
||||
some rules in csv format, just check `music_db/terraria.csv` and use it as
|
||||
template, then run `scripts/music_import.py` to copy the music in the
|
||||
`music` directory
|
||||
|
||||
After this you can run the command `. ./mood` to play music
|
||||
After this you can run the command to play music
|
||||
|
||||
```sh
|
||||
. ./mood
|
||||
```
|
||||
|
||||
@ -1 +0,0 @@
|
||||
game/sweden.ogg 6x_sweden.ogg
|
||||
|
1
music_db/minecraft.csv
Normal file
1
music_db/minecraft.csv
Normal file
@ -0,0 +1 @@
|
||||
day_haggstorm.webm "Minecraft Volume Alpha - 7 - Haggstrom [D09Okc11afI].webm"
|
||||
|
Can't render this file because it contains an unexpected character in line 1 and column 20.
|
@ -3,7 +3,7 @@ ENV = {
|
||||
'music_import.py',
|
||||
'<translation_db>',
|
||||
'<source_directory>',
|
||||
'[destination_directory]'
|
||||
'<destination_directory>'
|
||||
],
|
||||
'help': [
|
||||
"Provide a translation, a source and a destination path to copy the files renaming them accordingly, ",
|
||||
|
||||
@ -9,7 +9,7 @@ def eprint(*args):
|
||||
def solve_or_escape(param):
|
||||
if not param[0] == '$':
|
||||
return param
|
||||
if x[1] == '$':
|
||||
if param[1] == '$':
|
||||
return param[1:]
|
||||
return ENV[param[1:]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user