mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-07 11:16:54 -06:00
quick fix for a lack of filenames.json for new production server
This commit is contained in:
@@ -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/<service>/<mediaid>')
|
||||
def stream(service, mediaid):
|
||||
|
||||
Reference in New Issue
Block a user