Skip to content

Commit

Permalink
remove unused models (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
SathyaBhat committed Jan 17, 2022
1 parent c6c1acc commit 9bc18e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
16 changes: 0 additions & 16 deletions spotify_dl/models.py

This file was deleted.

5 changes: 0 additions & 5 deletions spotify_dl/spotify_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from spotipy.oauth2 import SpotifyClientCredentials

from spotify_dl.constants import VERSION
from spotify_dl.models import db, Song
from spotify_dl.scaffold import log, check_for_tokens
from spotify_dl.spotify import fetch_tracks, parse_spotify_url, validate_spotify_url, get_item_name
from spotify_dl.youtube import download_songs, default_filename, playlist_num_filename
Expand All @@ -33,8 +32,6 @@ def spotify_dl():
help='Whether to keep original playlist ordering or not.')
parser.add_argument('-m', '--skip_mp3', action='store_true',
help='Don\'t convert downloaded songs to mp3')
parser.add_argument('-s', '--scrape', action="store",
help="Use HTML Scraper for YouTube Search", default=True)
parser.add_argument('-w', '--no-overwrites', action='store_true',
help="Whether we should avoid overwriting the target audio file if it already exists",
default=False)
Expand All @@ -48,8 +45,6 @@ def spotify_dl():
print("spotify_dl v{}".format(VERSION))
sys.exit(0)

db.connect()
db.create_tables([Song])
if os.path.isfile(os.path.expanduser('~/.spotify_dl_settings')):
with open(os.path.expanduser('~/.spotify_dl_settings')) as file:
config = json.loads(file.read())
Expand Down

0 comments on commit 9bc18e0

Please sign in to comment.