Commit graph

597 commits

Author SHA1 Message Date
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
jcbirdwell
a589eadcab ytmusic: oauth initialization changes to fix keyerrors, reduce code and improve speed 2023-12-28 18:13:11 -06:00
jcbirdwell
fe85234ce3 credentials.py: custom exceptions.py for pesky issues 2023-12-28 18:08:16 -06:00
jcbirdwell
38685c9b17 explore.py: charts fix and docs edit 2023-12-28 18:00:12 -06:00
jcbirdwell
7b60e65ea4 test_get_album_browse_id: hindsight test edit and bulletproof fix for warning 2023-12-28 17:58:39 -06:00
sigma67
e85ce83d36
update get_artist docstring once more (closes #480) 2023-12-27 22:35:29 +01:00
sigma67
b51603af90
update get_artist docstring (closes #489) 2023-12-27 22:18:45 +01:00
theyak
11bf25f0aa Move pop_songs_random_mix to be after results check. 2023-12-27 10:23:48 +01:00
jcbirdwell
45df3afdfb oauth: file separation, classes restructured, fix refresh error, model classes for clarity 2023-12-20 15:18:29 -06:00
jcbirdwell
814ea9999b get_album_browse_id: reverted and subtest added for edge case 2023-12-20 15:15:25 -06:00
jcbirdwell
5f1945ae05 remove: env support 2023-12-19 13:59:35 -06:00
jcbirdwell
8dac2e528f fix: new token init 2023-12-19 13:49:03 -06:00
jcbirdwell
9cb8c63d99 minor touch-up: rebuild the entire oauth system 2023-12-18 23:37:17 -06:00
jcbirdwell
10241c7ee4 fix: dataclass implementation of credentials 2023-12-18 17:58:21 -06:00
sigma67
67d8b7c8ac
fix broken test playlist id 2023-12-18 21:06:21 +01:00