get_playlist: join multiple title runs (#667)

* 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>
This commit is contained in:
Solomon 2024-12-17 13:20:33 -07:00 • committed by GitHub
commit 74411149d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 43 additions and 13 deletions

View file

@ -0,0 +1,9 @@
{
"id": "PLaZPMsuQNCsWn0iVMtGbaUXO6z-EdZaZm",
"title": "03 Jan 12:09",
"owned": true,
"trackCount": 245,
"year": "2024",
"description": "Created by Playlist Generator Bot, @spotify_youtube_playlist_bot",
"duration": "5+ hours"
}

View file

@ -0,0 +1,9 @@
{
"id": "RDCLAK5uy_lWy02cQBnTVTlwuRauaGKeUDH3L6PXNxI",
"title": "Feel-Good Classic Rock",
"owned": false,
"trackCount": 101,
"year": "2024",
"description": "Hold on to the feeling.\n#essentials #rock #happy",
"duration": "6+ hours"
}

View file

@ -0,0 +1,9 @@
{
"id": "PLEUijtLfpCOgI8LNOwiwvq0EJ8HAGj7dT",
"title": "Example_collaborative_playlist",
"owned": true,
"trackCount": 4,
"year": "2024",
"description": "Example playlist with collaboration",
"duration": "11 minutes, 15 seconds"
}