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:
parent
7f40887b29
commit
ff47d11269
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user