mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-09 10:09:10 -06:00
creation new sounds directory check
This commit is contained in:
@@ -72,6 +72,9 @@ service_functions = {
|
||||
'soundcloud' : {'url' : None, 'path' : None}
|
||||
}
|
||||
|
||||
if not os.path.exists(os.path.join('app', 'sounds')):
|
||||
os.mkdir(os.path.join('app', 'sounds'))
|
||||
|
||||
if not os.path.exists(os.path.join('app', 'sounds', 'filenames.json')):
|
||||
with open(os.path.join('app', 'sounds', 'filenames.json'), 'w+') as file:
|
||||
json.dump({'youtube' : {} })
|
||||
|
||||
Reference in New Issue
Block a user