1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-23 10:41:52 +00:00

Update npo.py

* simplify comment
* force CI
This commit is contained in:
dirkf 2023-04-06 01:51:02 +01:00 committed by GitHub
parent 632897860b
commit 0c7261db90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,9 +226,8 @@ class NPOIE(NPOBaseIE):
'tokenId': player_token, 'tokenId': player_token,
'streamType': 'broadcast', 'streamType': 'broadcast',
}, },
# empty data to force a POST request, avoiding HTTP 405
data=b'') data=b'')
# Empty byte string in the call above to force a POST request
# Without it HTTP 405 will happen
if not streams: if not streams:
continue continue
stream = streams.get('stream') stream = streams.get('stream')