Create main module

This commit is contained in:
Jared Rossberg 2021-10-24 11:15:41 -06:00
parent 5b6a41ef70
commit 69f59bb0f6
3 changed files with 7 additions and 6 deletions

View File

@ -29,9 +29,9 @@ Python packages:
\*\*Git can be installed via apt for Debian-based distros or by downloading the binaries from [git-scm.com](https://git-scm.com/download/win) for Windows.
```
Command line usage:
python src/app.py Loads search prompt to find then download a specific track, album or playlist
python src/app.py <track/album/playlist/episode url> Downloads the track, album, playlist or podcast episode specified as a command line argument
python src/app.py <artist url> Downloads all albums by specified artist
python src Loads search prompt to find then download a specific track, album or playlist
python src <track/album/playlist/episode url> Downloads the track, album, playlist or podcast episode specified as a command line argument
python src <artist url> Downloads all albums by specified artist
Extra command line options:
-p, --playlist Downloads a saved playlist from your account

4
src/__main__.py Normal file
View File

@ -0,0 +1,4 @@
from app import client
if __name__ == '__main__':
client()

View File

@ -167,6 +167,3 @@ def search(search_term):
else:
download_playlist(playlists, position - total_tracks - total_albums - total_artists)
if __name__ == '__main__':
client()