10
10
from spotipy .oauth2 import SpotifyClientCredentials
11
11
12
12
from spotify_dl .constants import VERSION
13
- from spotify_dl .models import db , Song
14
13
from spotify_dl .scaffold import log , check_for_tokens
15
14
from spotify_dl .spotify import fetch_tracks , parse_spotify_url , validate_spotify_url , get_item_name
16
15
from spotify_dl .youtube import download_songs , default_filename , playlist_num_filename
@@ -33,8 +32,6 @@ def spotify_dl():
33
32
help = 'Whether to keep original playlist ordering or not.' )
34
33
parser .add_argument ('-m' , '--skip_mp3' , action = 'store_true' ,
35
34
help = 'Don\' t convert downloaded songs to mp3' )
36
- parser .add_argument ('-s' , '--scrape' , action = "store" ,
37
- help = "Use HTML Scraper for YouTube Search" , default = True )
38
35
parser .add_argument ('-w' , '--no-overwrites' , action = 'store_true' ,
39
36
help = "Whether we should avoid overwriting the target audio file if it already exists" ,
40
37
default = False )
@@ -48,8 +45,6 @@ def spotify_dl():
48
45
print ("spotify_dl v{}" .format (VERSION ))
49
46
sys .exit (0 )
50
47
51
- db .connect ()
52
- db .create_tables ([Song ])
53
48
if os .path .isfile (os .path .expanduser ('~/.spotify_dl_settings' )):
54
49
with open (os .path .expanduser ('~/.spotify_dl_settings' )) as file :
55
50
config = json .loads (file .read ())
0 commit comments