diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1ee5eef..0020b81 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ ZSpotify is a community-driven project. There are many different ways to contrib ### What we aren't looking for -Please don't use the issues section to request help installing or setting up the project. It should be reserved for bugs when running the code, and feature requqests. Instead use the support channel in either our Discord or Matrix server. +Please don't use the issues section to request help installing or setting up the project. It should be reserved for bugs when running the code, and feature requests. Instead use the support channel in either our Discord or Matrix server. # Ground rules diff --git a/README.md b/README.md index d25068f..ac87b94 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ Python packages: ``` -\*ffmpeg can be installed via apt for Debian-based distros or by downloading the binaries from [ffmpeg.org](https://ffmpeg.org) and placing them in your %PATH% in Windows. +\*ffmpeg can be installed via apt for Debian-based distros or by downloading the binaries from [ffmpeg.org](https://ffmpeg.org) and placing them in your %PATH% in Windows. Mac users can install it with [Homebrew](https://brew.sh) by running `brew install ffmpeg`. \*\*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 app.py Loads search prompt to find then download a specific track, album or playlist - python app.py Downloads the track, album, playlist or podcast episode specified as a command line argument - python 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 @@ -43,7 +43,7 @@ Options that can be configured in zs_config.json: SKIP_EXISTING_FILES Set this to false if you want ZSpotify to overwrite files with the same name rather than skipping the song - MUSIC_FORMAT Can be "mp3" or "ogg", mp3 is required for track metadata however ogg is slightly higer quality as it is not trsnacoded. + MUSIC_FORMAT Can be "mp3" or "ogg", mp3 is required for track metadata however ogg is slightly higher quality as it is not transcoded. FORCE_PREMIUM Set this to true if ZSpotify isn't automatically detecting that you are using a premium account diff --git a/src/__main__.py b/src/__main__.py new file mode 100644 index 0000000..50dd389 --- /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 abd8b87..2a0898a 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()