creation new sounds directory check

This commit is contained in:
Xevion
2019-12-23 15:46:53 -06:00
parent 7c384f597b
commit 5b1bbb828b

View File

@@ -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' : {} })