Commit graph

194 commits

Author SHA1 Message Date
Cory Marshall
9af106b464 Logic fix in BrowsingMixin().search()
Simple addition of indentation so the if statement is evaluated only
if the previous one is true. Found with video_id `gzo0xPx26hs`.
2020-11-25 23:35:20 -04:00
sigma67
0d419fb68f
Add limit parameter to search and search_uploads (closes #95) 2020-11-12 10:51:45 +01:00
Nik Tumbri
5654928ed2
respond to review of PR 2020-11-12 10:02:20 +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
725e774ef6
Extract ordering logic to helper functions 2020-11-11 17:12:24 +01:00
ide-an
19e9053706
Support song order for get_library_upload_songs 2020-11-11 17:12:22 +01:00
sigma67
c378b58296
Update version to 0.10.2 2020-11-09 11:50:46 +01:00
sigma67
8fe915fcbb
Use 3PAPISID for sapisidhash (closes #100) 2020-11-09 11:01:04 +01:00
sigma67
79148aab5a
Add duration for uploaded items (closes #96) 2020-11-09 10:58:34 +01:00
Gaganpreet Arora
7974715afd
Add X-Goog-AuthUser to required headers 2020-11-08 16:30:20 +01:00
Ľubomír Kučera
74ccb7bed3
Fix KeyError in get_continuations() 2020-11-08 01:53:00 +01:00
sigma67
6405bec93f
Make (x-)origin header backwards-compatible to avoid breaking existing headers files (#87) 2020-10-31 14:20:06 +01:00
sigma67
c93f66471c
remove_playlist_items: remove invalid items from list (closes #88) 2020-10-28 20:24:08 +01:00
sigma67
bf32ba7221
Fix uploads search (server-side changes) 2020-10-28 14:12:29 +01:00
czifumasa
12c465e18e
Added isAvailable flag for songs in playlists 2020-10-28 13:48:45 +01:00
sigma67
c951c409f3
Update default headers to fix failing get_artist_albums and get_user_playlists tests 2020-10-28 13:48:17 +01:00
sigma67
bdbaada36a
Update version to 0.10.1 2020-10-04 20:30:57 +02:00
sigma67
5a1032983d
Update get_library_albums parsing to new YT Web display format (closes #84)
Change 'artists' key to dict with name/id
2020-09-28 14:45:25 +02:00
sigma67
14daa31ab1
Parse setVideoId for unplayable items (closes #83) 2020-09-28 10:36:03 +02:00
sigma67
b40ca2d6bf
Update version to 0.10.0 2020-09-17 11:57:28 +02:00
sigma67
3255303e0a
Fix get_watch_playlist (broken by Lyrics on Web update) 2020-09-17 11:52:47 +02:00
sigma67
654551b0ee
Feature: add uploads filter to search() 2020-09-17 11:29:23 +02:00
sigma67
2d3219befd
Fix permanent header modification after uploads (closes #79) 2020-09-17 11:29:23 +02:00
sigma67
ae8213eda9
Fix get_library_songs if there are no songs in library (#69) 2020-09-16 22:00:49 +02:00
Hitesh Kumar Saini
9bded79ea2
Fixes the issue #75
Some albums like [NCS: Infinity](https://music.youtube.com/browse/MPREb_cIll1xTklJL) & [NCS: Alpha](https://music.youtube.com/browse/MPREb_PAcC7ycC6GP) give no first track at the moment. Simply changing the index fixes the issue.
2020-09-08 16:46:14 +05:30
apastel
d9c88009d8
Return empty list if 'musicShelfRenderer' not in list of uploaded artists (#71) 2020-09-06 09:41:31 -07:00
apastel
0ec5bc0a0e
Update .gitignore to ignore venv and egg-info 2020-09-05 14:13:32 -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
apastel
66442320a1
Return empty list if 'musicShelfRenderer' not in list of uploaded songs (#71) 2020-09-05 14:09:01 -07:00
Hitesh Kumar Saini
78107a9ce6
Adds support for Python's with statements 2020-09-05 12:45:31 +02: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
czifumasa
6d8bbc006d Added optional validate_reponses param to get_library_songs 2020-08-30 17:12:31 +02:00
czifumasa
e4325938a2 Resend request when ytm returns invalid per_page count for get_library_songs 2020-08-30 17:12:14 +02:00
sigma67
09daac66fc
Update version to 0.9.2 2020-08-27 13:18:41 +02:00
sigma67
dad63116df
Feature: remove_history_items (closes #31) 2020-08-27 12:28:17 +02:00
sarisia
3984341b15 use lowercase when parsing headers 2020-08-26 16:48:42 +09:00
sigma67
7c18d8df4b
Feature: add_playlist_items now supports source playlists, duplicate check 2020-08-25 13:08:04 +02:00
Alex Kirhenshtein
6a979ad9c2
Name of the enforced locale (en_US.UTF-8) is adjusted to work on macOS. 2020-08-24 16:37:11 +02:00
sigma67
55965940d3
Fix get_song if release/production missing (closes #57) 2020-08-23 14:35:28 +02:00
sigma67
de64b0864f
Improve setup documentation (closes #58) 2020-08-23 14:20:05 +02:00
Alexander Kraus
7835d229dd
More detailed Setup Doc
I changed the instructions for getting the headers_auth file to be easier to understand.
2020-08-19 11:13:09 +02:00
sigma67
6b51e11bb4
Fix watch_playlist byline (closes #54) 2020-08-06 14:32:53 +02:00
sigma67
8bb62b9cae
Update version to 0.9.1 2020-07-24 22:29:24 +02:00
sigma67
5e7dbd522d
Include subdirectories in build (closes #51) 2020-07-24 22:10:04 +02:00
sigma67
934fb4591b
Update README and version 2020-07-24 15:23:30 +02:00
sigma67
5a727607ec
Restructure parsers 2020-07-24 15:20:49 +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