Changes as per PR comments

This commit is contained in:
Nitesh Sawant
2018-01-23 00:06:08 +05:30
parent 7cccabc145
commit 9ed7347f03
2 changed files with 6 additions and 7 deletions

View File

@@ -1,3 +0,0 @@
{
"python.pythonPath": "/usr/bin/python3"
}

View File

@@ -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',