mirror of
https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
synced 2024-11-26 18:03:17 +01:00
Create main module
This commit is contained in:
parent
5b6a41ef70
commit
69f59bb0f6
@ -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.
|
\*\*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:
|
Command line usage:
|
||||||
python src/app.py Loads search prompt to find then download a specific track, album or playlist
|
python src 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 <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 <artist url> Downloads all albums by specified artist
|
||||||
|
|
||||||
Extra command line options:
|
Extra command line options:
|
||||||
-p, --playlist Downloads a saved playlist from your account
|
-p, --playlist Downloads a saved playlist from your account
|
||||||
|
4
src/__main__.py
Normal file
4
src/__main__.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
from app import client
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
client()
|
@ -167,6 +167,3 @@ def search(search_term):
|
|||||||
else:
|
else:
|
||||||
download_playlist(playlists, position - total_tracks - total_albums - total_artists)
|
download_playlist(playlists, position - total_tracks - total_albums - total_artists)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
client()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user