From 4419648461f08c684f52f0e8f6bbb8cd1e28b028 Mon Sep 17 00:00:00 2001 From: Thomas Tsiakalakis Date: Sun, 24 Feb 2019 18:58:03 +0100 Subject: [PATCH] [intldropout] fixed Playlist Matching --- youtube_dl/extractor/intldropout.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/intldropout.py b/youtube_dl/extractor/intldropout.py index 1b401b4a0..fa35dcf3d 100644 --- a/youtube_dl/extractor/intldropout.py +++ b/youtube_dl/extractor/intldropout.py @@ -95,7 +95,7 @@ class IntlDropoutIE(VHXEmbedIE): class IntlDropoutPlaylistIE(IntlDropoutIE): IE_NAME = 'intldropout:playlist' - _VALID_URL = r'^https://intl\.dropout\.tv/(?P[^/]+(/season:[^/]+)?)$' + _VALID_URL = r'^https://intl\.dropout\.tv/(?P.+)' _TESTS = [ { 'url': 'https://intl.dropout.tv/um-actually-the-web-series', @@ -114,9 +114,22 @@ class IntlDropoutPlaylistIE(IntlDropoutIE): 'id': 'new-releases', 'title': 'New Releases', } + }, + { + 'url': 'https://intl.dropout.tv/troopers/season:2', + 'md5': 'ebcd26ef54f546225e7cb96e79da31cc', + 'playlist_count': 10, + 'info_dict': { + 'id': 'troopers/season:2', + 'title': 'Troopers', + } } ] + @classmethod + def suitable(cls, url): + return False if IntlDropoutIE.suitable(url) else super(IntlDropoutPlaylistIE, cls).suitable(url) + def _real_extract(self, url): playlist_id = self._search_regex(r'https://intl.dropout.tv/(?P.+)', url, 'id') webpage = self._download_webpage(url, playlist_id)