]> jfr.im git - yt-dlp.git/commitdiff
[twitch] Modified _VALID_URL for TwitchAllVideosIE
authorLéo El Amri <redacted>
Mon, 29 Jul 2019 17:03:19 +0000 (19:03 +0200)
committerLéo El Amri <redacted>
Mon, 29 Jul 2019 17:03:19 +0000 (19:03 +0200)
Reverted the modification of youtube_dl/extractor/extractors.py since TwitchAllVideosIE now only matches on URLs with filter=all or without any parameters

youtube_dl/extractor/extractors.py
youtube_dl/extractor/twitch.py

index 2b26cb347bd5cc33323bbcac26ba15f3998446c5..555fadfaf78217e8183d5695a7313019db81eee5 100644 (file)
     TwitchChapterIE,
     TwitchVodIE,
     TwitchProfileIE,
+    TwitchAllVideosIE,
     TwitchUploadsIE,
     TwitchPastBroadcastsIE,
     TwitchHighlightsIE,
-    TwitchAllVideosIE,
     TwitchStreamIE,
     TwitchClipsIE,
 )
index 6a1015ce5ccdfcb5e69f959c74232d7ebd6ed05f..ef823220c37689b8b8209000c303a1e251e62454 100644 (file)
@@ -438,7 +438,7 @@ class TwitchVideosBaseIE(TwitchPlaylistBaseIE):
 
 class TwitchAllVideosIE(TwitchVideosBaseIE):
     IE_NAME = 'twitch:videos:all'
-    _VALID_URL = '%s(?:/?(?:%s)|[^/?]+?/?)?' % (
+    _VALID_URL = '%s/?(?:(?:%s)|$)' % (
         TwitchVideosBaseIE._VALID_URL_VIDEOS_BASE,
         TwitchVideosBaseIE._VALID_URL_VIDEOS_FILTERS % 'all'
     )