mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 12:09:04 -06:00
still learning python - specify fp for json dump call
This commit is contained in:
@@ -77,7 +77,7 @@ if not os.path.exists(os.path.join('app', 'sounds')):
|
|||||||
|
|
||||||
if not os.path.exists(os.path.join('app', 'sounds', 'filenames.json')):
|
if not os.path.exists(os.path.join('app', 'sounds', 'filenames.json')):
|
||||||
with open(os.path.join('app', 'sounds', 'filenames.json'), 'w+') as file:
|
with open(os.path.join('app', 'sounds', 'filenames.json'), 'w+') as file:
|
||||||
json.dump({'youtube' : {} })
|
json.dump({'youtube' : {} }, file)
|
||||||
|
|
||||||
# Streams a prepared MP3 back to the client
|
# Streams a prepared MP3 back to the client
|
||||||
@app.route('/stream/<service>/<mediaid>')
|
@app.route('/stream/<service>/<mediaid>')
|
||||||
|
|||||||
Reference in New Issue
Block a user