1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-24 01:14:32 +01:00

[intldropout] fixed Playlist Matching

This commit is contained in:
Thomas Tsiakalakis 2019-02-24 18:58:03 +01:00
parent f6a4af595b
commit 4419648461

View File

@ -95,7 +95,7 @@ class IntlDropoutIE(VHXEmbedIE):
class IntlDropoutPlaylistIE(IntlDropoutIE):
IE_NAME = 'intldropout:playlist'
_VALID_URL = r'^https://intl\.dropout\.tv/(?P<id>[^/]+(/season:[^/]+)?)$'
_VALID_URL = r'^https://intl\.dropout\.tv/(?P<id>.+)'
_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<id>.+)', url, 'id')
webpage = self._download_webpage(url, playlist_id)