From 0c7261db901e79aed3dfd20f0b3c99ccbd32d20a Mon Sep 17 00:00:00 2001 From: dirkf Date: Thu, 6 Apr 2023 01:51:02 +0100 Subject: [PATCH] Update npo.py * simplify comment * force CI --- youtube_dl/extractor/npo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py index 84bde9683..d6379f1d3 100644 --- a/youtube_dl/extractor/npo.py +++ b/youtube_dl/extractor/npo.py @@ -226,9 +226,8 @@ class NPOIE(NPOBaseIE): 'tokenId': player_token, 'streamType': 'broadcast', }, + # empty data to force a POST request, avoiding HTTP 405 data=b'') - # Empty byte string in the call above to force a POST request - # Without it HTTP 405 will happen if not streams: continue stream = streams.get('stream')