From 754d90c9a2c000e2f1bc6a89d78319fd77257f1f Mon Sep 17 00:00:00 2001 From: Yarn Date: Sat, 19 Sep 2020 03:24:10 -0700 Subject: [PATCH] Resolve issues with twitcasting extractor. --- youtube_dl/extractor/twitcasting.py | 37 +++++++++++++++++++---------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/youtube_dl/extractor/twitcasting.py b/youtube_dl/extractor/twitcasting.py index fc1dd0826..23b8542b7 100644 --- a/youtube_dl/extractor/twitcasting.py +++ b/youtube_dl/extractor/twitcasting.py @@ -53,10 +53,10 @@ class TwitCastingIE(InfoExtractor): }) webpage = self._download_webpage(url, video_id, data=request_data) - title = self._html_search_regex( + title = (self._html_search_regex( r'(?s)<[^>]+id=["\']movietitle[^>]+>(.+?)(.*)', webpage) - title = re.search(r'(?s)<[^>]+class=["\']tw-user-nav-name[^>]+>(.+?)]+class=["\']tw-user-nav-name[^>]+>(.+?)1') != -1 @@ -137,13 +145,16 @@ class TwitCastingHistoryIE(InfoExtractor): if locked is not None: continue - title = re.search(r'''<[^>]+class=["']tw-movie-thumbnail-title[^>]+>[ \n]*?(.+?) *?]+class=["']tw-movie-thumbnail-title[^>]+>[ \n]*?(.+?) *?