create new YouTube & Soundcloud models in database

This commit is contained in:
Xevion
2019-12-24 00:23:29 -06:00
parent d37cf59284
commit 6b96f2c422
2 changed files with 16 additions and 7 deletions

View File

@@ -18,12 +18,6 @@ import shutil
# https://soundcloud.com/yungraredeath/fall-in-line-w-kxng-prod-mars-mission => /stream/soundcloud/fall-in-line-w-kxng-prod-mars-mission---yungraredeath => soundcloud/fall-in-line-w-kxng-prod-mars-mission---yungraredeath.mp3
# spotify:track:16PmczUxlX7dpr6ror6pXd => /duration/spotify/16PmczUxlX7dpr6ror6pXd => spotify/16PmczUxlX7dpr6ror6pXd.mp3
class SoundcloudHandler:
pass
class SpotifyHandler:
pass
class YouTubeHandler:
@staticmethod
def url(videoid):
@@ -83,7 +77,6 @@ service_functions = {
# Default JSON format, will be used in case of corruption
JSONDefault = {'youtube' : {}, 'soundcloud' : {}, 'spotify' : {}}
if not os.path.exists(os.path.join('app', 'sounds')):
print('Sounds folder not found. Creating.')
os.mkdir(os.path.join('app', 'sounds'))