diff --git a/README.md b/README.md index 91c6349e..8a78b481 100644 --- a/README.md +++ b/README.md @@ -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 Downloads the track, album, playlist or podcast episode specified as a command line argument - python src/app.py Downloads all albums by specified artist + python src Loads search prompt to find then download a specific track, album or playlist + python src Downloads the track, album, playlist or podcast episode specified as a command line argument + python src Downloads all albums by specified artist Extra command line options: -p, --playlist Downloads a saved playlist from your account diff --git a/src/__main__.py b/src/__main__.py new file mode 100644 index 00000000..50dd3890 --- /dev/null +++ b/src/__main__.py @@ -0,0 +1,4 @@ +from app import client + +if __name__ == '__main__': + client() diff --git a/src/app.py b/src/app.py index abd8b876..2a0898a4 100644 --- a/src/app.py +++ b/src/app.py @@ -167,6 +167,3 @@ def search(search_term): else: download_playlist(playlists, position - total_tracks - total_albums - total_artists) - -if __name__ == '__main__': - client()