]> jfr.im git - yt-dlp.git/commitdiff
[ie/TwitCastingUser] Fix extraction (#8650)
authorbashonly <redacted>
Sun, 26 Nov 2023 02:47:48 +0000 (20:47 -0600)
committerGitHub <redacted>
Sun, 26 Nov 2023 02:47:48 +0000 (02:47 +0000)
Closes #8653
Authored by: bashonly

yt_dlp/extractor/twitcasting.py

index 3c303bdbbd59943a922b9715b55f11bef3f83ab8..28ea16cc21a406a8f1a3047c7b47cf1ac7226715 100644 (file)
@@ -289,8 +289,7 @@ def _entries(self, uploader_id):
             webpage = self._download_webpage(
                 next_url, uploader_id, query={'filter': 'watchable'}, note='Downloading page %d' % page_num)
             matches = re.finditer(
-                r'''(?isx)<a\s+class="tw-movie-thumbnail"\s*href="(?P<url>/[^/]+/movie/\d+)"\s*>.+?</a>''',
-                webpage)
+                r'(?s)<a\s+class="tw-movie-thumbnail2"\s+href="(?P<url>/[^/"]+/movie/\d+)"', webpage)
             for mobj in matches:
                 yield self.url_result(urljoin(base_url, mobj.group('url')))