Skip to content

Commit

Permalink
sanitize songs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimon77 committed Mar 3, 2023
1 parent a9a4287 commit 9a23230
Show file tree
Hide file tree
Showing 54 changed files with 2 additions and 2 deletions.
Binary file modified mp3/acourtin/in/hello.mp3
Binary file not shown.
Binary file modified mp3/acourtin/in/oh-its-you.mp3
Binary file not shown.
Binary file modified mp3/acourtin/in/there-you-are.mp3
Binary file not shown.
Binary file modified mp3/acourtin/out/goodbye.mp3
Binary file not shown.
Binary file modified mp3/acourtin/out/shutting-down.mp3
Binary file not shown.
Binary file modified mp3/acourtin/out/target-lost.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/LOL_reconnect.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/LOL_welcome_to_summoners_rift.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/PS1_jingle.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/TOUDOUM.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/Windows_7_jingle.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/Windows_XP_jingle.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/du_travail_encore_du_travail.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/encore_du_travail.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/portal_glados_hello_again.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/pret_a_travailler.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/in/ssbb.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/out/LOL_disconnect.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/out/je_me_retire.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/out/je_vous_emmerde_et_je_rentre_a_ma_maison.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/out/metal_gear_spotted.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/out/portal_glados_goodbye.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/out/portal_turret_goodbye.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/out/portal_turret_sleep_mode.mp3
Binary file not shown.
Binary file modified mp3/aguiot--/out/travail_termine.mp3
Binary file not shown.
Binary file modified mp3/nsimon/in/CL4PTR4P.mp3
Binary file not shown.
Binary file modified mp3/nsimon/in/Scooby-Doo.mp3
Binary file not shown.
Binary file modified mp3/nsimon/in/code_lyoko.mp3
Binary file not shown.
Binary file modified mp3/nsimon/in/glados.mp3
Binary file not shown.
Binary file modified mp3/nsimon/in/ho_non.mp3
Binary file not shown.
Binary file modified mp3/nsimon/out/Bonjour_le_sol.mp3
Binary file not shown.
Binary file modified mp3/nsimon/out/Scooby-Doo.mp3
Binary file not shown.
Binary file modified mp3/nsimon/out/coin_coin.mp3
Binary file not shown.
Binary file modified mp3/nsimon/out/maison.mp3
Binary file not shown.
Binary file modified mp3/nsimon/out/portal_turret_goodbye.mp3
Binary file not shown.
Binary file modified mp3/nsimon/out/radio_loop.mp3
Binary file not shown.
Binary file modified mp3/nsimon/out/wesley_ca_va.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/in/Answer.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/in/dir.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/in/erika.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/in/happiness_of_marionette.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/in/hope.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/in/organ6.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/in/rakku.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/in/usagi.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/out/599_million_ruins.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/out/dai_006.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/out/far.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/out/happiness_of_marionette.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/out/hidamari.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/out/namaenonaiuta.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/out/organ2.mp3
Binary file not shown.
Binary file modified mp3/ssirguy/out/witch_in_gold.mp3
Binary file not shown.
4 changes: 2 additions & 2 deletions sanitize.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

import os, argparse, tempfile, sox, sys, json
import os, argparse, tempfile, sox, sys, json, shutil


def sanitize_file(filename):
Expand All @@ -18,7 +18,7 @@ def sanitize_file(filename):
with tempfile.NamedTemporaryFile() as tmpfile:
tmpname = f"{tmpfile.name}.mp3"
tfm.build(input_filepath=filename, output_filepath=tmpname)
os.rename(tmpname, filename)
shutil.move(tmpname, filename)
except Exception as e:
if args.verbose is True:
print(e)
Expand Down

0 comments on commit 9a23230

Please sign in to comment.