Commit graph

630 commits

Author SHA1 Message Date
Sean Reifschneider
13701c40b7
nav() now displays some debugging information on KeyError (#540) 2024-03-01 20:54:55 +01:00
sigma67
6365e23422 fix pdm dependencies action actions/checkout version 2024-03-01 20:49:11 +01:00
sigma67
4962ed6c33 ruff 0.3.0 format 2024-03-01 20:49:11 +01:00
sigma67
0734595395 get_episode: support progress percentage 2024-03-01 20:49:11 +01:00
fischcode
d143480ae4
Fix parsing of album and views in parse_playlist_items (#552)
* Fix parsing of album and views in parse_playlist_items

Parse album and views columns as a function of flex column count and is_album property to cater for varying layouts with three and four flex columns

* Add "own_playlist" attribute to playlists

To allow for an easy distinction between owned / editable and community / non-editable playlists,in applications incorporating ytmusicapi, a boolean "own_playlist" dictionary entry is added to playlists based on existing code already identifying this property.

* Add thumbnails to episodes

Add thumbnails to episodes for visual rendering in Kodi etc.

* Add unit test for playlist "own_playlist" attribut

Add unit test for playlist "own_playlist" attribut

* Improvements as requested

- rename attribute for own playlists to playlist("owned")
- filter out episode thumbnails with an non-functional URL

* Fix linter in test_playlists.py

Fix test for playlist["owned"]

* Auto-Formatting on playlists.py

* format parsers/podcasts.py

* Remove filtering of podcast thumbnails

No idea why I had seen useless images for those thumbnails before - maybe Google fixed something to make them work?
2024-02-27 09:23:09 +01:00
sigma67
7ffe990c93 add token to coverage.yml 2024-02-22 20:47:15 +01:00
sigma67
f237d50ab7 fix tests 2024-02-22 20:47:15 +01:00
sigma67
e1bcb88c92 Revert "get_charts: removed trending category (no longer available on YTM)"
This reverts commit da492e49f6.
2024-02-22 20:47:15 +01:00
sigma67
86b9e05c90 Revert "get_playlist: fix albums on tracks"
This reverts commit b2113db0e1.
2024-02-22 20:47:15 +01:00
sigma67
98e0bc749c
update actions 2024-02-04 19:16:03 +01:00
sigma67
f98274f0ec improve coverage 2024-02-04 17:03:59 +01:00
sigma67
da492e49f6 get_charts: removed trending category (no longer available on YTM) 2024-02-04 17:03:59 +01:00
sigma67
cc26a63264 get_watch_playlist: fixed an issue when longBylineText is missing 2024-02-04 17:03:59 +01:00
sigma67
c8af65d643 get_album_browse_id: fix DeprecationWarning on Python 3.12 2024-02-04 17:03:59 +01:00
sigma67
170eea358d add brand account setup script (#520) 2024-02-04 17:03:59 +01:00
sigma67
b2113db0e1 get_playlist: fix albums on tracks 2024-02-04 17:03:59 +01:00
sigma67
18a6f20d71
add "live" property to episodes 2024-01-23 13:02:07 +01:00
sigma67
47b27f0f0e
get_podcast, get_episode: improve edge cases 2024-01-22 23:06:22 +01:00
sigma67
be7a6090b0
search: improve podcast and episode search 2024-01-22 23:06:01 +01:00
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