get_playlist: return author channel id along with name

This commit is contained in:
sigma67 2020-07-20 23:02:52 +02:00
commit 7608220ce4
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0

View file

@ -76,7 +76,10 @@ class PlaylistsMixin:
playlist["description"] = header["description"]["runs"][0]["text"]
run_count = len(header['subtitle']['runs'])
if run_count > 1:
playlist['author'] = nav(header, SUBTITLE2)
playlist['author'] = {
'name': nav(header, SUBTITLE2),
'id': nav(header, ['subtitle', 'runs', 2] + NAVIGATION_BROWSE_ID, True)
}
if run_count > 3:
playlist['year'] = nav(header, SUBTITLE3)