Commit graph ytmusicapi/tests/test.py
Author SHA1 Message Date
sigma67
5ae470e260
validate playlist ids in playlist methods
additionally small code quality improvements
2021-05-14 19:45:41 +02:00
sigma67
81afbe118c
Feature: add get_playlist_suggestions
get_playlist: added suggestions_token
add_playlist_items: made videoIds parameter optional
2021-05-14 18:53:41 +02:00
sigma67
b76eea3738
search: support featured_playlists, community_playlists filters 2021-05-14 14:46:11 +02:00
sigma67
048f17989a
get x-goog-visitor-id dynamically to avoid errors caused by its expiry
removed headers.json
all headers provided by user are now used in the headers file created by setup.py instead of only required headers
2021-04-27 22:55:00 +02:00
sigma67
15e1b69698
search: also add artists without browseId to artists list (closes #187)
also fixed missing feedbackTokens for songs already in the library
2021-04-10 17:46:26 +02:00
sigma67
bfe26e9b1f
Feature: add get_album_browse_id (#186) 2021-04-05 15:54:41 +02:00
sigma67
71c2a1d11b
Add localization for get_artist related artists (#181) 2021-03-24 13:35:02 +01:00
mikefreemanwd
8ec9b6ac41 removed named exception in favor of ValueError when non-music YouTube channel id given to get_artist. Minor changes to structure of related artists property in get_artist, added thumbnails. 2021-03-23 12:01:07 -04:00
mikefreemanwd
15bf0bbe1b Feature: add related artist section to BrowsingMixin get_artist method 2021-03-23 12:01:06 -04:00
Matt Carvalho
4846cef54b After adding songs to a playlist return a dict containing the new setVideoIds for each videoId 2021-03-20 20:53:57 -04:00
sigma67
cc69b56c20
Add videoId param for shuffling playlists (determines first video in shuffled playlist) 2021-02-17 15:49:03 +01:00
sigma67
0332269949
search: Add default value None for album property of song results 2021-02-12 11:36:54 +01:00
sigma67
d97d88d4ef
Fix continuations for some library functions
Update tests, reduce code duplication
2021-02-04 13:52:39 +01:00
sigma67
1c664b6799
Add shuffleId, radioId to artist results [search, get_artist, get_library_artists, get_library_subscriptions, get_library_upload_artists] (closes #153) 2021-01-28 16:41:59 +01:00
sigma67
d4c132f10f
Add requests session to reuse TCP connection (#159) 2021-01-27 14:59:59 +01:00
sigma67
cb1f58d696
Add isExplicit to albums (closes #99) 2021-01-11 11:38:17 +01:00
sigma67
5ce1f4bd50
Add exception if browseId None is passed to avoid confusing errors 2021-01-05 21:49:02 +01:00
sigma67
bfbbcc5859
Update behavior of get_lyrics to match YouTube API 2021-01-05 20:04:24 +01:00
sigma67
3de9b5e4e8
Add artists, album and feedbackTokens to get_watch_playlist 2021-01-05 19:51:52 +01:00
sigma67
7107aca6b1
Add limit parameter to get_library_upload_artist (closes #139) 2021-01-03 23:07:57 +01:00
sigma67
3eee8795da
Feature: add edit_song_library_status (closes #68) 2020-12-15 15:54:22 +01:00
sigma67
6022337a33
Add library add/remove feedbackTokens to get_album (#68) 2020-12-15 15:35:56 +01:00
sigma67
cfdb040652
Update get_artist to work with MPLA IDs now returned by get_library_artists (closes #117) 2020-12-14 14:18:13 +01:00
sigma67
fee86377a8
Move lyrics retrieval to get_watch_playlist (closes #114)
Add get_lyrics to docs
Remove video and browseId from get_lyrics return Dict
2020-12-14 14:04:17 +01:00
alexmercerind
eec1ff1d29 Added lyricsFound key to get_lyrics result & updated tests 2020-12-04 21:20:22 +05:30
alexmercerind
0d81ec9dcd Added tests for get_lyrics 2020-12-04 18:33:23 +05:30
sigma67
35b88a4c62
Fix default search (related to 0d419fb) 2020-11-30 15:58:15 +01:00
sigma67
ffe2deffed
search(): Add option to ignore spelling correction (closes #91) 2020-11-30 15:37:17 +01:00
sigma67
063af84a5f
get_streaming_data: handle unplayable videos 2020-11-26 15:04:58 +01:00
Cory Marshall
028b678112
Edit to get_streaming_data() test
Rename variable `song` to `streaming_data`.
2020-11-26 15:04:58 +01:00
Cory Marshall
e95e2d4ee4
Documentation and tests update
Reflect splitting of `get_streaming_data()` off of `get_song()` in
the documentation and tests.
2020-11-26 15:04:57 +01:00
sigma67
0d419fb68f
Add limit parameter to search and search_uploads (closes #95) 2020-11-12 10:51:45 +01:00
ide-an
a0506ebf75
Remove ordering check in testcases
String comparation logic of YTM is different from python one.
Maybe, some kind of normalization is done before comparation.

So I gave up checking if order is correct in testcase.
2020-11-11 17:12:25 +01:00
ide-an
ca2dc4fb28
Add order to library function
Add order parameter to functions bellow
 * get_library_songs
 * get_library_albums
 * get_library_artists
 * get_library_subscriptions
 * get_library_upload_albums
 * get_library_upload_artists
2020-11-11 17:12:25 +01:00
ide-an
fa5e6fe761
Add ordering test 2020-11-11 17:12:25 +01:00
ide-an
19e9053706
Support song order for get_library_upload_songs 2020-11-11 17:12:22 +01:00
sigma67
bf32ba7221
Fix uploads search (server-side changes) 2020-10-28 14:12:29 +01:00
Forrest Jones
5c13accd96 Add support for ignoring YTM's spelling suggestions (#91) 2020-10-20 17:50:48 -06:00
sigma67
654551b0ee
Feature: add uploads filter to search() 2020-09-17 11:29:23 +02:00
apastel
d9c88009d8
Return empty list if 'musicShelfRenderer' not in list of uploaded artists (#71) 2020-09-06 09:41:31 -07:00
apastel
07215a6520
Add skipped unit tests that would verify no errors are returned when there's 0 uploads 2020-09-05 14:13:02 -07:00
sigma67
ca8a73046b
Fix error when continuations contents are missing from response (#52)
Always keep response with most results for retries
2020-09-01 16:42:34 +02:00
sigma67
dad63116df
Feature: remove_history_items (closes #31) 2020-08-27 12:28:17 +02:00
sigma67
7c18d8df4b
Feature: add_playlist_items now supports source playlists, duplicate check 2020-08-25 13:08:04 +02:00
sigma67
6b51e11bb4
Fix watch_playlist byline (closes #54) 2020-08-06 14:32:53 +02:00
sigma67
3b46fda393
Feature: add get_watch_playlist, get_watch_playlist_shuffle 2020-07-24 14:25:13 +02:00
sigma67
d5287e5812
Add additional tests for get_artist edge cases 2020-07-21 23:31:21 +02:00
sigma67
a57956449d
Merge branch 'feature/get_song' (closes #42) 2020-07-21 11:22:26 +02:00
sigma67
d842d6bde5
Feature: add get_user, get_user_playlists 2020-07-21 10:19:35 +02:00
sigma67
90bc7538e4
Fix continuations to always retrieve at least the specified limit, even if YTMusic returns less than per_page 2020-07-15 21:08:08 +02:00