69 Commits

Author SHA1 Message Date
yiannisha
efed684e59 Fixed minor bugs 2021-10-23 19:13:04 +03:00
yiannisha
a02b2f03d1 Merge branch 'main' of https://github.com/Footsiefat/zspotify into Footsiefat-main 2021-10-23 18:59:25 +03:00
yiannisha
e9ba63b9d0 Added argument parsing in search function
Added a block for parsing arguments passed with options
-l -limit
-t -type
in the search() function. Arguments are passed inside search_term.
They work as follows:

* -l -limit <number> : sets the limit of results to that number
  and raises a ValueError if that number exceeds 50. Default is 10.

* -t -type <album/track/playlist> : sets the type that is requested
  from the API about the search query. Raises a ValueError if an arguments
  passed is different than track, album, playlist. Default is all three.

Example:
Enter search or URL: <query> -l 30 -t track album

This will result with 30 tracks and 30 albums associated with query.
Options can be passed in any order but the query must be first.
2021-10-23 17:15:41 +03:00
yiannisha
7d81eb5cc6 Rewrote the search function
It still works in the same way and no
other functions need to be changed. Just
changed it to store needed data about each
track/album/playlist in a dictionary so
tracking it in the end is simpler.
2021-10-23 16:06:34 +03:00
Logykk
632320d18f
Merge pull request #66 from reduxionist/chore/add-lint-request-to-readme-and-lint-code
Lints the code and requests that contributors do the same.
2021-10-23 21:41:35 +13:00
Logykk
3e5bf956d6
Fix minor bugs 2021-10-23 21:32:15 +13:00
Jonathan Barratt
ca0fb00af6 Lints the code and requests that contributors do the same. 2021-10-23 15:30:31 +07:00
Logykk
bb7a2786af
Can now search and download all songs by artist 2021-10-23 21:30:15 +13:00
Logykk
8770de741d
Support subfolders for each disc.
Must be enabled manually in zs_config.json
2021-10-23 21:04:02 +13:00
Jonathan Barratt
f10ce45f05 Moves hard-coded configuration to separate json file
adds zs_config.json, changes global usage in zspotify, and updates README
2021-10-23 13:54:22 +07:00
Logykk
d9d18020d0
Fixed bug preventing downloading with artist url 2021-10-23 13:00:46 +13:00
Footsiefat
42a92fdebd
Merge pull request #59 from komatiraju032/main
added album download to separated folder
2021-10-23 12:49:10 +13:00
yiannisha
3c3a2acf27 Merged with up to date zspotify.py 2021-10-22 21:21:57 +03:00
Raju komati
16ecf274b5 added progress bar for album download 2021-10-22 20:44:13 +05:30
Raju komati
fb52d653a5 added number prefix for album downloads 2021-10-22 20:18:09 +05:30
Raju komati
8c25cf35e6 added album download to separated folder 2021-10-22 19:59:48 +05:30
Footsiefat
66b37e4f1c Made design more modern again and played with podcast stuff 2021-10-22 21:34:17 +13:00
Footsiefat
6c0fc89696 Merge branch 'main' of https://github.com/Footsiefat/zspotify 2021-10-22 18:23:47 +13:00
Footsiefat
61f55449ad Added progress bar to podcats and simplified output 2021-10-22 18:23:38 +13:00
logykk
b1df2c42d9 added support for selecting multiple options in search 2021-10-22 18:17:05 +13:00
Footsiefat
bb2b9880ed
Merge pull request #52 from komatiraju032/main
added progress bar for download
2021-10-22 15:44:28 +13:00
Raju komati
67183a8b62 added progress bar for download
we can set the chunk size using constnat `CHUNK_SIZE` default value 50000 bytes
2021-10-22 08:04:20 +05:30
Jonathan Barratt
3b20c437db Don't skip download if local file is empty.
If a download gets aborted for some reasons, zspotify left behind a 0 length
file which caused the song to be skipped on the next run. This commit checks
for a non-zero filesize before deciding whether to skip the download of an
"existing" file or not.
2021-10-22 09:20:42 +07:00
Footsiefat
dd4a23a82a Changed default format back to mp3 2021-10-22 11:25:27 +13:00
Footsiefat
4c29263e8a
Merge pull request #48 from maxiimillian/feature-multiple-playlists
Added an option to select a range of playlist id's to download
2021-10-22 11:24:39 +13:00
Footsiefat
355630ba1c Added support for downloading full shows 2021-10-22 11:21:56 +13:00
maxiiimillian
45a99cb3aa Added an option to select a range of playlist id's to download 2021-10-21 17:33:55 -04:00
yiannisha
07c1a6a3df Fixed minor error in download_artist_albums 2021-10-21 23:40:40 +03:00
yiannisha
1bd12be1dd Modified get_artist_album 2021-10-21 23:38:58 +03:00
yiannisha
126ebe2046 Added download_artist_albums
Added a function to be called in client if
artist_id_str is not None;
download_artist_albums(artist_id_str) that
uses the get_artist_album function to get the
artist's album id's and then downloads each one
with the download_album function.

Also modified get_artist_album function to return
a list of album ids instead of a list of tuples
of album ids and names.
2021-10-21 23:27:02 +03:00
yiannisha
92090512d0 Added get_artist_albums
Added the get_artist_albums(access_token, artist_id)
function that returns a list of tuples that each
contain the name and the id of an album.
2021-10-21 23:15:09 +03:00
yiannisha
822b696dc4 Added Artist String Id in regex_input_for_urls 2021-10-21 23:13:39 +03:00
Footsiefat
577f78ae70 Added a small auto wait delay to try and prevent bans 2021-10-21 20:18:07 +13:00
Footsiefat
33895d4f62 Added option to just paste URL in search bar 2021-10-21 20:02:35 +13:00
Footsiefat
6e76f09421 cleaned up code using linter 2021-10-21 15:28:10 +13:00
Footsiefat
2878f38808 cleaned up regex in prep for QOL change 2021-10-21 15:13:16 +13:00
Footsiefat
a66848fe8e Simplifed the crash catching code a lot 2021-10-21 14:41:22 +13:00
Footsiefat
6c260e25ff Improved podcast downloading 2021-10-21 13:12:07 +13:00
Footsiefat
6e36eb40d1 Added experimental podcast support 2021-10-21 09:44:52 +13:00
Footsiefat
064bc563ff
Merge pull request #36 from modzilla99/patch-1
[WIP] Check if Name of Song is set
2021-10-21 08:42:41 +13:00
Footsiefat
ab2c64f84a Fixed premium account check 2021-10-21 08:37:36 +13:00
modzilla99
13a79b777c
Check if Name of Song is set
If the Name is not set, the download will fail. With this change the Download will continue and a Error message will show that the Song does not exist anymore
2021-10-20 12:25:33 +02:00
Footsiefat
3feb7fda0f Downloads entire track at once now 2021-10-20 08:42:32 +13:00
Footsiefat
08abda617b added shebang line 2021-10-20 08:38:04 +13:00
Footsiefat
f3da7398c7 Added raw audio option 2021-10-20 08:35:59 +13:00
Footsiefat
6616fd30f4 Added comment to force premium 2021-10-20 08:22:12 +13:00
Footsiefat
44f23a3e98 Added premium over 2021-10-20 08:16:15 +13:00
Footsiefat
4efd15ed70 Fixed some tiny spelling erorrs 2021-10-19 20:16:25 +13:00
Footsiefat
1589dc888d Reverted vscode commit test 2021-10-19 20:14:45 +13:00
Footsiefat
8c1cade88d vscode test 2021-10-19 20:08:26 +13:00