Skip to content

Commit 9bc18e0

Browse files
authored
remove unused models (#232)
1 parent c6c1acc commit 9bc18e0

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

spotify_dl/models.py

-16
This file was deleted.

spotify_dl/spotify_dl.py

-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from spotipy.oauth2 import SpotifyClientCredentials
1111

1212
from spotify_dl.constants import VERSION
13-
from spotify_dl.models import db, Song
1413
from spotify_dl.scaffold import log, check_for_tokens
1514
from spotify_dl.spotify import fetch_tracks, parse_spotify_url, validate_spotify_url, get_item_name
1615
from spotify_dl.youtube import download_songs, default_filename, playlist_num_filename
@@ -33,8 +32,6 @@ def spotify_dl():
3332
help='Whether to keep original playlist ordering or not.')
3433
parser.add_argument('-m', '--skip_mp3', action='store_true',
3534
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)
3835
parser.add_argument('-w', '--no-overwrites', action='store_true',
3936
help="Whether we should avoid overwriting the target audio file if it already exists",
4037
default=False)
@@ -48,8 +45,6 @@ def spotify_dl():
4845
print("spotify_dl v{}".format(VERSION))
4946
sys.exit(0)
5047

51-
db.connect()
52-
db.create_tables([Song])
5348
if os.path.isfile(os.path.expanduser('~/.spotify_dl_settings')):
5449
with open(os.path.expanduser('~/.spotify_dl_settings')) as file:
5550
config = json.loads(file.read())

0 commit comments

Comments
 (0)