Fixing stuff

This commit is contained in:
teitoku
2025-07-28 17:18:07 +09:00
parent d71ffb714f
commit 52b68fedac
5 changed files with 15 additions and 4 deletions

View File

@ -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
```

View File

@ -1 +0,0 @@
game/sweden.ogg 6x_sweden.ogg
1 game/sweden.ogg 6x_sweden.ogg

1
music_db/minecraft.csv Normal file
View 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.

View File

@ -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, ",

View File

@ -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:]]