* 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>
* Add optional parameters for OAuth client ID and secret to setup
Use your own Google API client ID and client secret in setup by calling
ytmusicapi oauth --client_id <your Google API client ID> --client_secret <your Google API client secret> to avoid HTTP 400: Bad Request errors
* Improve setup parameter parsing and help texts
- Add subparsers for parameters for oauth and browser tokens
- Add help options
- Add a check for presence of both client_id and client_secret if oauth is chosen.
* ruff autofix
* wip: remove default oauth_client_id & secret, turn into mandatory params
* fix yt_oauth fixture
* fix format/lint
* fix cli args and oauth test
* remove skip
---------
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>
While I was reading the docs to append video items, I got confused by the setVideoId parameter. I added the missing field to the get_playlists_id example and copied the definition to the edit playlist documentation.
I hope this is ok, it's a very small change, but I think it might help others. I really appreciate the time you take by looking at this.
* coverage: remove temporary code for new playlist format
* fix flaky search test
* improve rate_song coverage
* test invalid order raise
* fix workflow
* Return blank album author ID when it doesn't exist.
* Revert "Return blank album author ID when it doesn't exist."
This reverts commit ccc5cf93ab4e28fc688db93a0066104b1c4e9e3e.
* Return blank album author ID when it doesn't exist.
* fix sum_total_duration failing if duration_seconds is not an int
Signed-off-by: Adwait Thattey <coderdude1999@gmail.com>
* format
---------
Signed-off-by: Adwait Thattey <coderdude1999@gmail.com>
Co-authored-by: sigma67 <sigma67.github@gmail.com>
* get_home: remove "year" attribute from album results, parse podcasts and episodes
* search: make itemCount int cast error proof
* fix None case for parse_album year
* fix lint