Commit graph

611 commits

Author SHA1 Message Date
John Birdwell
123eae7370
get_album: parse more data from response + correct keys on other_vers… (#523)
* get_album: parse more data from response + correct keys on other_versions

* keys: fair point

* navigation, browsing: removed duplicate SUBTITLE

---------

Co-authored-by: sigma67 <ytmusicapi@gmail.com>
2024-01-21 19:39:52 +01:00
fischcode
de651c40eb
handle playlists appearing in top results (closes #524) (#526)
* handle playlists appearing in top results #524

parse playlists appearing in top results returning results the same way as for other playlists found be search()

* fixup, add test

---------

Co-authored-by: sigma67 <ytmusicapi@gmail.com>
2024-01-21 19:06:38 +01:00
Marvin Schenkel
8831090796
Fix OAUTH_CUSTOM_FULL mode (#527)
* Fix OAUTH_CUSTOM_FULL mode

* Fix OAUTH_CUSTOM_FULL mode
2024-01-21 18:47:50 +01:00
sigma67
bb7a51e496 get_saved_episodes 2024-01-21 18:43:27 +01:00
sigma67
a3e4c26c8a get_podcast, get_episode 2024-01-21 18:43:27 +01:00
sigma67
650bc24d68 get_album: rename track_number to trackNumber 2024-01-21 18:43:27 +01:00
sigma67
9170197457
ruff: ruff specific rules 2024-01-18 21:53:23 +01:00
sigma67
b87c783d45
ruff: pyupgrade 2024-01-18 21:48:04 +01:00
Austin
6a3924dbf0
Remove offset + fix top result (#517)
* Remove offset + fix top result

Remove offset + fix top result

* add Null checks

add Null checks

* Make updates per comments

Make updates per comments

* Update ytmusicapi/parsers/search.py

---------

Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>
2024-01-14 19:02:45 +01:00
jcbirdwell
765f7e198a pre-commit: add mypy additional_dependencies to fix stubs 2024-01-14 19:00:50 +01:00
John Birdwell
2b42c58963
get_album: track_number returns none when track unavailable + test (#516)
* get_album: track_number returns none when track unavailable + test

* Update ytmusicapi/parsers/playlists.py

Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>

* test_get_album: sans fixtures

---------

Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>
2024-01-14 14:38:29 +01:00
sigma67
16c9cbe40e
search: fix browseId for album top results 2024-01-12 19:42:15 +01:00
sigma67
06ff2b8377
increase coverage precision 2024-01-11 21:00:54 +01:00
sigma67
2c707f206a
update workflows 2024-01-11 20:43:07 +01:00
sigma67
ff51a5bb40
fix flaky test 2024-01-11 20:37:30 +01:00
John Birdwell
ba71fc998d
get_album: track positions (#510)
* get_album (via parse_playlist_items): add track_position key + tests for the badly indexed album

* get_album & parse_playlist_items: nav changes

* parse_playlist_items: only add track_position for albums

* parse_playlist_items & related test_browsing: track_position > track_number

---------

Co-authored-by: sigma67 <sigma67.github@gmail.com>
2024-01-11 20:02:23 +01:00
sigma67
b60bcd7675
add glob to workflow paths 2024-01-11 18:00:57 +01:00
sigma67
87b7ad6201
make workflows conditional on changeset 2024-01-10 21:30:14 +01:00
Yash Malik
590b74c29f hyperlink to "tests" doesn't actually link to tests in README
Updated the hyperlink to "tests" in README.rst
2024-01-10 21:23:11 +01:00
sigma67
b094345e44
add test for order exception 2024-01-10 21:22:21 +01:00
sigma67
e864a6be53 get_artist_albums: add order param (#441) 2024-01-10 21:19:59 +01:00
sigma67
f2be19416b get_artist_albums: support continuations (#441) 2024-01-10 21:19:59 +01:00
sigma67
dcddfa562b
fix #504 (#506)
* run mypy on 3.8

* fix #504
2024-01-06 10:02:25 +01:00
sigma67
4d5c9e0a88
change default branch to main 2024-01-03 21:23:05 +01:00
sigma67
a7f2827322
update LICENSE year to 2024 2024-01-03 21:19:01 +01:00
sigma67
9506bfd6d5
fix #501 (#502)
* fix #501

* enable tests on PR
2024-01-03 21:15:00 +01:00
sigma67
d4bea93414
improve coverage 2024-01-02 22:29:41 +01:00
sigma67
69dd4a9f2f test restructuring via pytest 2024-01-02 22:09:22 +01:00
sigma67
d1ac87ce6e get_user_playlists: no longer errors on empty profile 2024-01-02 22:09:22 +01:00
sigma67
0cb0a1604b fix some minor issues discovered by typing, enable composition 2024-01-02 22:09:22 +01:00
sigma67
dc5bce5ff9
update pythonpublish.yml 2024-01-01 19:45:37 +01:00
sigma67
dcfc6c1260
fix pyproject.toml for release 2024-01-01 19:39:39 +01:00
sigma67
d70868c20a
update .pre-commit-config.yaml 2024-01-01 19:27:44 +01:00
sigma67
102a732f9b
simplify OAuth as_dict and is_oauth 2024-01-01 19:23:58 +01:00
sigma67
fb48dcc103
test_home: hotfix failing podcast entries on homepage 2024-01-01 18:51:39 +01:00
sigma67
e0d73c02b2
fix tests 2024-01-01 14:27:20 +01:00
sigma67
5e5daa3ae7 refactor oauth classes 2024-01-01 14:15:21 +01:00
sigma67
e88792b452
remove flaky assert 2023-12-31 20:25:17 +01:00
sigma67
70a260b516 add mypy 2023-12-31 20:13:45 +01:00
sigma67
f3e747103f
get_album: return new "views" key for each track 2023-12-31 14:39:05 +01:00
John Birdwell
1971121add
Search issue 494 (#495)
* search_suggestions: fix handle history when authenticated

* search_suggestions: test historical option does something

* remove optional param

---------

Co-authored-by: sigma67 <ytmusicapi@gmail.com>
2023-12-31 13:16:48 +01:00
sigma67
1fd93dcfb6
Ruff lint (#496)
* add ruff, pdm

* update .gitignore

* format

* test

* check failure

* fix constants.py
2023-12-31 12:54:07 +01:00
sigma67
ec02876874
fix workflow 2023-12-31 11:39:48 +01:00
sigma67
48e95add2e
Merge pull request #488 from jcbirdwell/alt_auth
Authentication refactor
2023-12-31 11:36:10 +01:00
sigma67
90af0c7a5a
Merge remote-tracking branch 'origin/master' into jcbirdwell-alt_auth 2023-12-31 11:34:14 +01:00
sigma67
c848e50b3b
refactor authtypes 2023-12-31 11:18:39 +01:00
sigma67
3abbbf8209
fix review findings 2023-12-31 10:43:26 +01:00
jcbirdwell
d05c011e42 fix: not here not now 2023-12-28 18:27:37 -06:00
jcbirdwell
a6ae5add7f tests: further edits for clarity and oauth tests 2023-12-28 18:23:51 -06:00
jcbirdwell
940b827fb4 docs: docs, ~~docs~~, and docs with a splash of type hinting 2023-12-28 18:16:22 -06:00