Ignore EVEN more comments in RTP source code

This commit is contained in:
vallovic 2021-04-21 16:24:26 +01:00
parent 7f40887b29
commit ff47d11269

View File

@ -34,6 +34,10 @@ class RTPIE(InfoExtractor):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
# Remove JS multi-line comments from webpage source
webpage = re.sub(r'(\/\*.*\*\/)', '', webpage, flags=re.DOTALL)
title = self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title')
# Get JS object