mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Changes as per PR comments
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"python.pythonPath": "/usr/bin/python3"
|
|
||||||
}
|
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
from slugify import SLUG_OK, slugify
|
import sys
|
||||||
from core import const
|
from core import const
|
||||||
|
|
||||||
|
log = const.log
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from slugify import SLUG_OK, slugify
|
from slugify import SLUG_OK, slugify
|
||||||
except ImportError:
|
except ImportError:
|
||||||
log.warning('Remove any other slugifies and install unicode-slugify')
|
log.error('Oops! `unicode-slugify` was not found.')
|
||||||
|
log.info('Please remove any other slugify library and install `unicode-slugify`')
|
||||||
|
sys.exit(5)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
log = const.log
|
|
||||||
|
|
||||||
formats = { 0 : 'track_name',
|
formats = { 0 : 'track_name',
|
||||||
1 : 'artist',
|
1 : 'artist',
|
||||||
2 : 'album',
|
2 : 'album',
|
||||||
|
|||||||
Reference in New Issue
Block a user