Commit Graph

5537 Commits

Author SHA1 Message Date
yiannisha
ed565fa0ce Merge branch 'main' into search_options 2021-10-23 19:22:24 +03:00
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
Raju komati
714e2eccfb
splitted zspotify.py file into mutiple files 2021-10-23 21:06:37 +05:30
yiannisha
6050630407 Merge branch 'search_options' 2021-10-23 17:22:19 +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
Footsiefat
80813381fc
Update README.md 2021-10-23 22:32:47 +13: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
a071008cb3
Update README.md 2021-10-23 21:36:42 +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
Footsiefat
e75ea14faa
Merge pull request #65 from reduxionist/feature/move-config-to-json-file
Moves hard-coded configuration to separate json file
2021-10-23 20:28:35 +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
24c06facf7
Added info on artist downloading
Added usage for downloading all music by an artist and a disclaimer about banned accounts.
2021-10-23 13:40:35 +13: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
Footsiefat
e11b01c41d
Merge pull request #61 from yiannisha/main
Artist all albums feature to close#31
2021-10-23 12:47:48 +13:00
yiannisha
3c3a2acf27 Merged with up to date zspotify.py 2021-10-22 21:21:57 +03:00
Raju komati
64cc4da37b
added idea folder to gitignore 2021-10-22 21:22:41 +05:30
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
b34c2031aa
Update README.md 2021-10-22 21:38:49 +13:00
Footsiefat
f815b91374 Merge branch 'main' of https://github.com/Footsiefat/zspotify 2021-10-22 21:34:21 +13:00
Footsiefat
66b37e4f1c Made design more modern again and played with podcast stuff 2021-10-22 21:34:17 +13:00
Footsiefat
bd81e95490
Update README.md 2021-10-22 20:45:37 +13:00
Logykk
6c77e68d23
Licence under GPLv3 2021-10-22 20:02:45 +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
Footsiefat
228ff1f3ac
Merge pull request #54 from Footsiefat/select-multiple
Support for selecting multiple options from search
2021-10-22 18:21:28 +13:00
Logykk
cb7173280b
Support for selecting multiple options from search 2021-10-22 18:17:59 +13:00
logykk
b1df2c42d9 added support for selecting multiple options in search 2021-10-22 18:17:05 +13:00
Footsiefat
6a808b68b3
Update README.md 2021-10-22 17:26:28 +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
Footsiefat
278e4d1bb3
Merge pull request #50 from reduxionist/feature/do-not-skip-empty-files
Don't skip download if local file is empty.
2021-10-22 15:29:26 +13:00
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
aeec7c8fc4
Added discord server back in 2021-10-22 14:09:34 +13:00
Footsiefat
369828d831
Update README.md 2021-10-22 11:47:11 +13: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
Footsiefat
0c07408731
Changed discord invite to matrix invite 2021-10-22 10:25:04 +13:00
Footsiefat
a63d8adb72
Added Gitea mirror! 2021-10-22 10:19:52 +13: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