mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Changes as per PR comments
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
from slugify import SLUG_OK, slugify
|
||||
import sys
|
||||
from core import const
|
||||
|
||||
log = const.log
|
||||
|
||||
try:
|
||||
from slugify import SLUG_OK, slugify
|
||||
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
|
||||
|
||||
log = const.log
|
||||
|
||||
formats = { 0 : 'track_name',
|
||||
1 : 'artist',
|
||||
2 : 'album',
|
||||
|
||||
Reference in New Issue
Block a user