diff --git a/app/sound.py b/app/sound.py index 47de89c..2853327 100644 --- a/app/sound.py +++ b/app/sound.py @@ -72,6 +72,10 @@ service_functions = { 'soundcloud' : {'url' : None, 'path' : None} } +if not os.path.exists(os.path.join('app', 'sounds', 'filenames.json')): + with open(os.path.join('app', 'sounds', 'filenames.json'), 'r+') as file: + json.dump({'youtube' : {} }) + # Streams a prepared MP3 back to the client @app.route('/stream//') def stream(service, mediaid):