mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-13 18:13:30 -06:00
creation new sounds directory check
This commit is contained in:
@@ -72,6 +72,9 @@ service_functions = {
|
|||||||
'soundcloud' : {'url' : None, 'path' : None}
|
'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')):
|
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' : {} })
|
||||||
|
|||||||
Reference in New Issue
Block a user