1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-15 22:07:26 +00:00

Ignore more comments in RTP source code

This commit is contained in:
vallovic 2021-04-13 21:03:59 +01:00
parent c1a696ee40
commit 7f40887b29

View File

@ -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