Commit graph ytmusicapi/tests
Author SHA1 Message Date
jcbirdwell
91949b5403 fix: externalize library dependent or regional arguments to test.cfg 2023-12-16 16:18:38 -06:00
jcbirdwell
b60af9cc25 add: set_album_save as a convenience/alias/findable method for album rate_playlist 2023-12-16 16:07:07 -06:00
jcbirdwell
b2c078df63 get_charts: fix index errors on authorized song chart missing 2023-12-16 16:04:25 -06:00
sigma67
f73f77b387
search: add podcasts filter tests 2023-11-11 17:08:42 +01:00
sigma67
437844fa79
get_playlist, get_library_songs, get_history, get_liked_songs: fix feedbackTokens, add inLibrary flag (closes #454) 2023-10-24 22:13:10 +02:00
sigma67
9a87990055
get_album: don't overwrite parsed artist (closes #446) 2023-10-03 16:57:37 +02:00
sigma67
369ac9323f
edit_playlist: change addToTop function parameter to Optional[bool] (#444) 2023-10-03 16:02:49 +02:00
sigma67
0acef5ddd9
edit_playlist: add addToTop function parameter (closes #444)
toggles a playlist from default behaviour (add to bottom) to "add to top"
2023-09-27 21:36:32 +02:00
sigma67
56d54a2b50
fix readthedocs 2023-08-27 23:15:18 +02:00
sigma67
2be108e2b6
search: support profiles (closes #425) 2023-08-20 17:18:35 +02:00
sigma67
3770b4516c
fix test 2023-08-11 21:07:43 +02:00
nick42d
3bf7b49eab
Fix for KeyError when searching community_playlists or featured_playlists. Closes #420 (#421)
* Fix for issue #420 KeyError when searching community_playlists or featured_playlists with scope library

* From PR feedback - better exception message for search guard clause.

* Fixed lint
2023-08-05 12:23:23 +02:00
sigma67
94f1513822
fix empty liked songs crash caused by #399 2023-07-02 22:15:38 +02:00
sigma67
7c9455e42c
test location parameter 2023-06-15 20:20:16 +02:00
sigma67
6b75939799
fix test 2023-06-15 20:15:41 +02:00
sigma67
9819ddb72b
get_playlist: fix issue with views, limit 2023-05-21 20:35:19 +02:00
sigma67
8aee43837b
oauth: fix string returned by setup_oauth to include expires_in 2023-04-20 20:19:19 +02:00
sigma67
e457402633
streamline authentication (closes #376, closes #380) 2023-04-19 20:45:50 +02:00
sigma67
4251896c39
fix test issue when running from US (episodes saved for later playlist) 2023-04-06 23:15:40 +02:00
sigma67
69a419f0bd
oauth: add safeguard exception to upload_song 2023-04-06 23:00:04 +02:00
sigma67
6ea74e39fb
fix search (#374) 2023-04-06 22:43:22 +02:00
sigma67
012a0fc85d add cli 2023-04-05 23:41:57 +02:00
sigma67
d111be24e0 use oauth for more tests 2023-04-05 23:41:57 +02:00
sigma67
0ee3b7fdb5 implement oauth authentication (#10) 2023-04-05 23:41:57 +02:00
Om Gupta
39a10d6050 Add unittest for get_search_suggestions 2023-04-05 12:42:20 +02:00
sigma67
6aa6c8d382
fix tests 2023-04-02 18:53:00 +02:00
sigma67
fcdb2ae7ba
search: fix bugs with top result (closes #367) 2023-04-02 11:35:40 +02:00
sigma67
3a03c635fd
improve search coverage 2023-03-25 10:41:57 +01:00
sigma67
e14abac69d
get_playlist: add 'views' for owned playlists, fix trackCount (closes #365) 2023-03-25 10:32:51 +01:00
sigma67
19ad424e0e
refactor search parsing to work with new top result (closes #360) 2023-03-22 22:33:56 +01:00
sigma67
4594a748e3
improve test coverage 2022-12-12 15:02:10 +01:00
sigma67
d0ec2bbf72
feature: add_history_item (closes #295) (OzymandiasTheGreat/mopidy-ytmusic/issues/58) 2022-12-07 18:07:47 +01:00
sigma67
d2d66f8dfe
tests: fix sample video
broken by YTM content update
2022-11-30 14:52:05 +01:00
sigma67
c91f47e828
get_song: add playbackTracking key (OzymandiasTheGreat/mopidy-ytmusic#58) 2022-11-30 14:51:14 +01:00
Benjamin Ryzman
c37a2eca2c Add playlistId key presence unittest 2022-10-04 12:30:15 +02:00
sigma67
527fed67ff
get_watch_playlist: add shuffle and radio parameters (closes #282)
removed get_watch_playlist_shuffle in favor of the new shuffle parameter to get_watch_playlist
setting the radio parameter now properly randomizes the watch playlist, as discussed in #282
2022-10-01 15:36:22 +02:00
sigma67
207d7ad714
add coverage for bad request exception 2022-10-01 15:06:56 +02:00
sigma67
dd5d753432
get_album: add other versions (closes #279)
also added isExplicit label to all album type results
2022-10-01 15:03:16 +02:00
sigma67
c2d5e46805
remove get_playlist_suggestions - add suggestions and related to get_playlist
get_playlist_suggestions was not working anymore due to changes on YouTube's end
calls to the playlist page on YouTube Music now also return co-dependent continuations for suggestions and related items
to support both, these continuations are now part of get_playlist, but made optional through function parameters
default values are set backwards-compatible, i.e. no extra requests are performed without setting the new parameters
2022-09-30 19:36:48 +02:00
sigma67
1cac82be21
get_library_*: fix for next YouTube update (#301) 2022-09-29 21:13:08 +02:00
sigma67
d36a01077d
test_get_library_playlists: add limit to cfg 2022-09-29 21:11:56 +02:00
sigma67
9b74957a1f
tests: move some limits to test.cfg 2022-09-26 14:22:04 +02:00
sigma67
98c4661fce
get_library_songs: add support for limit=None (closes #275)
add tests for get_library_subscriptions and get_library_artists with limit=None
2022-09-26 13:39:01 +02:00
sigma67
ec771fc976
get_playlist: support None limit (#275) 2022-09-26 12:49:43 +02:00
sigma67
c85fd8c810
optimize tests for retrieving all library items (#275) 2022-09-26 11:19:22 +02:00
sigma67
1b94985014
retrieve all continuations when limit parameter is None (closes #300)
Squashed commit of the following:

commit 3f447e39a403bea746b18e79cd7a9177a20ef79c
Merge: 8746a2a c31c8da
Author: Adrian <an3015@nyu.edu>
Date:   Sun Sep 25 12:17:44 2022 -0400

    Merge branch 'master' of https://github.com/adrinu/ytmusicapi into retrieve-all-playlists

commit 8746a2af5bdc12e5e16a87b6c69d39dde8712390
Author: Adrian <an3015@nyu.edu>
Date:   Sun Sep 25 12:17:06 2022 -0400

    Limit to other funcs

commit 5b69523003b6d0c2a00e31e1ed4a022efeabee65
Merge: b7a3e75 d36d85d
Author: Adrian <an3015@nyu.edu>
Date:   Sun Sep 25 12:07:45 2022 -0400

    Merge branch 'retrieve-all-playlists' of https://github.com/Auzzy/ytmusicapi into retrieve-all-playlists

commit c31c8dafae0c805dee68d2df19b3fe1ac454d707
Author: Adrian <an3015@nyu.edu>
Date:   Sun Sep 25 11:35:05 2022 -0400

    Limit is none implementation

commit 6768f1d66de832c17b5557c910f4b2a353386690
Merge: b7a3e75 d36d85d
Author: Adrian <an3015@nyu.edu>
Date:   Sun Sep 25 01:06:59 2022 -0400

    Merge branch 'retrieve-all-playlists' of https://github.com/Auzzy/ytmusicapi into retrieve-all-playlists

commit d36d85de9b3dff08a9997ca712817724b01608a3
Author: Austin Noto-Moniz <mathfreak65@gmail.com>
Date:   Mon May 30 16:55:53 2022 -0400

    get_library_playlists: When limit is None, return them all.
2022-09-26 10:36:02 +02:00
sigma67
4512dac409
set_tasteprofile: make internal get_tasteprofile request optional (#289) 2022-08-24 09:45:20 +02:00
sigma67
c3ed850026
tasteprofile: minor fixes to test (#289) 2022-08-24 09:00:08 +02:00
Adrian
f7ef0d2c15 Covered more cases in unittest and documentation 2022-08-23 20:33:48 -07:00
Adrian
d66f20aa13
Addded favorite artists to taste 2022-08-20 23:43:39 -07:00