* Added Lyrics w. Timestamps
Added `get_lyrics_with_timestamps` to get lyrics with timestamps.
The Method doesn't try to parse the response as normal lyrics, if no lyrics with timestamps are returned. (could be changed to do so tho, the format is the same)
* Update browsing.py
* Combined both get_lyrics methods into one and fixed some typechecking errors
* Fixed a missing hasTimestamps and added the doccomments to the overloads, because vscode didn't show them otherwise
* Removed the old get_lyrics_with_timestamps method
because idk where it came from...
* fixed remaining issues
* Update uploads.py
reverted some changes that I moved to an extra PR
* removed variable `context` from the Mixin, as it's use was replaced by `yt.as_mobile()`
* fix some formatting complaints by ruff and mypy
* please the linter
* fix union syntax
* improve typing in ytmusic.py
* improve typing
* replace docsbuild.yml with RTD
---------
Co-authored-by: Hendrik Horstmann <65970327+heinrich26@users.noreply.github.com>
Co-authored-by: henrich26 <hendrik-horstmann@o2mail.de>
* Return complete titles when split on time-like strings:
```diff
>>> yt.get_playlist("PLaZPMsuQNCsWn0iVMtGbaUXO6z-EdZaZm")["title"]
-03 Jan
+03 Jan 12:09
```
* `test_get_playlist`: assert more props have the expected value/shape
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* search: adds functionality to remove search history suggestion
* Minor improvements for remove search suggestions
* fix lint
* some improvements: remove_search_suggestions
* make indices optional
---------
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* Fix duration parsing for very long videos sigma67#660
* parse duration only when digits are present
* explicit return None
* Add test for track dur > 1k hrs
* fix#656: attempt to find runs in subtitle if not in title
* refactor
* remove fix by gotofritz
---------
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* fix#642: create_playlist: raise error when invalid characters are part of playlist title
* add test
* fix CI helper
* fix CI helper
* adjust workflow
* fix(playlists): get_playlist trackCount incorrect for playlists with more than 1k tracks
This ensures that the regex doesnt just return the first group in 1000+ long playlists.
* feat+fix(playlist_tests): Update playlist ID and add new track count test
* fix tests
---------
Co-authored-by: RealCalumPlays <calumplays666+github@gmail.com>
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* coverage: remove temporary code for new playlist format
* fix flaky search test
* improve rate_song coverage
* test invalid order raise
* fix workflow
* add unit test that attempts to retrieve a song after its been uploaded
* prevent parsing errors when an uploaded song lacks a duration
* update unit test to delete/re-upload song if it already is uploaded
* format
* fix test
* add another sleep to end2end playlist
---------
Co-authored-by: sigma67 <ytmusicapi@gmail.com>
* implement get_account_info to provide information about the authenticated user's account (#556)
* Apply suggestions from code review to tests/README.rst
Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>
* simplify get_account_info by moving code out of parsers.py and navigation.py
* test with non-auth account
* format
* update .pre-commit-config.yaml
---------
Co-authored-by: sigma67 <16363825+sigma67@users.noreply.github.com>
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* 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?
* 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>