Ignore more comments in RTP source code

pull/29824/head
vallovic 4 years ago
parent c1a696ee40
commit 7f40887b29

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

Loading…
Cancel
Save