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:
parent
1f14332eb4
commit
74411149d4
5 changed files with 43 additions and 13 deletions
9
tests/data/expected_output/2024_03_get_playlist.json
Normal file
9
tests/data/expected_output/2024_03_get_playlist.json
Normal 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"
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
Loading…
Reference in a new issue