1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-11 03:51:20 +00:00

Add line comment

This commit is contained in:
Bart Broere 2023-03-31 12:46:05 +02:00
parent b4776f2e36
commit fb2b4e2894

View file

@ -207,7 +207,7 @@ class NPOIE(NPOBaseIE):
'pageUrl': url, 'pageUrl': url,
'isFavourite': "false", 'isFavourite': "false",
'hasAdConsent': 0, 'hasAdConsent': 0,
},)) }))
player_token = player['token'] player_token = player['token']
@ -223,7 +223,8 @@ class NPOIE(NPOBaseIE):
'quality': 'npo', 'quality': 'npo',
'tokenId': player_token, 'tokenId': player_token,
'streamType': 'broadcast', 'streamType': 'broadcast',
}, data=b"") },
data=b"") # empty byte string to force a POST request instead of GET, without it HTTP 405 will happen
if not streams: if not streams:
continue continue
stream = streams.get('stream') stream = streams.get('stream')