1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-21 15:23:13 +00:00

[youtube] python2 fix #168

proposed fix by awei78
This commit is contained in:
Unknown 2020-11-11 15:05:18 +01:00
parent b28e751688
commit 6bd79800c3

View file

@ -371,10 +371,10 @@ class YoutubeEntryListBaseInfoExtractor(YoutubeBaseInfoExtractor):
query={
'key': try_get(yt_conf, lambda x: x['INNERTUBE_API_KEY'])
},
data=bytes(json.dumps({
data= str(json.dumps({
'context': try_get(yt_conf, lambda x: x['INNERTUBE_CONTEXT']),
'continuation': continuation_token
}), encoding='utf-8'),
})).encode(encoding='UTF-8',errors='strict'),
headers={
'Content-Type': 'application/json'
}