get_watch_playlist: parse playlist browseId to playlistId (#179)

This commit is contained in:
sigma67 2021-03-20 19:29:51 +01:00
commit 3c1eb8519f
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -59,8 +59,8 @@ class WatchMixin:
}
is_playlist = False
if playlistId:
body['playlistId'] = playlistId
is_playlist = playlistId.startswith('PL')
body['playlistId'] = playlistId if not playlistId.startswith("VL") else playlistId[2:]
is_playlist = body['playlistId'].startswith('PL')
if params:
body['params'] = params
endpoint = 'next'