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

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