From 7f40887b29f97d4729e344b04e76456f02c0c33a Mon Sep 17 00:00:00 2001 From: vallovic Date: Tue, 13 Apr 2021 21:03:59 +0100 Subject: [PATCH] Ignore more comments in RTP source code --- youtube_dl/extractor/rtp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/rtp.py b/youtube_dl/extractor/rtp.py index 5ba26268e..1c487749b 100644 --- a/youtube_dl/extractor/rtp.py +++ b/youtube_dl/extractor/rtp.py @@ -64,8 +64,8 @@ class RTPIE(InfoExtractor): # 2) ... or the file URL is not encoded so keep it that way json_string_for_config += '\n' + line - elif not stripped_line.startswith("//") and not re.match('fileKey ?:', stripped_line): - # Ignore commented lines and 'fileKey' entry since it is no longer supported by RTP + elif not stripped_line.startswith("//") and not re.match('fileKey ?:', stripped_line) and not re.match('.*extraSettings ?:', stripped_line): + # Ignore commented lines, 'fileKey' entry since it is no longer supported by RTP and also 'extraSettings' json_string_for_config += '\n' + line # Finally send pure JSON string for JSON parsing