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

[intldropout] fixed playlist extractor

This commit is contained in:
Thomas Tsiakalakis 2019-03-05 11:16:50 +01:00
parent 07cc388fcc
commit 1855b9d965

View File

@ -109,7 +109,7 @@ class IntlDropoutPlaylistIE(IntlDropoutIE):
{ {
'url': 'https://intl.dropout.tv/new-releases', 'url': 'https://intl.dropout.tv/new-releases',
'md5': 'ebcd26ef54f546225e7cb96e79da31cc', 'md5': 'ebcd26ef54f546225e7cb96e79da31cc',
'playlist_count': 16, 'playlist_count': 22,
'info_dict': { 'info_dict': {
'id': 'new-releases', 'id': 'new-releases',
'title': 'New Releases', 'title': 'New Releases',
@ -133,6 +133,6 @@ class IntlDropoutPlaylistIE(IntlDropoutIE):
def _real_extract(self, url): def _real_extract(self, url):
playlist_id = self._search_regex(r'https://intl.dropout.tv/(?P<id>.+)', url, 'id') playlist_id = self._search_regex(r'https://intl.dropout.tv/(?P<id>.+)', url, 'id')
webpage = self._download_webpage(url, playlist_id) webpage = self._download_webpage(url, playlist_id)
items = re.findall(r'<a href="(?P<url>https://intl.dropout.tv/[^/]+/[^"]+)"', webpage) items = re.findall(r'browse-item-title[^>]+>[^<]*<a href="(?P<url>https://intl.dropout.tv/[^/]+/[^"]+)"', webpage)
playlist_title = self._html_search_regex(r'<h1 class="[^"]*collection-title[^"]*"[^>]*>(?P<title>[^<]+)<', webpage, 'title') playlist_title = self._html_search_regex(r'<h1 class="[^"]*collection-title[^"]*"[^>]*>(?P<title>[^<]+)<', webpage, 'title')
return self.playlist_from_matches(items, playlist_id=playlist_id, playlist_title=playlist_title) return self.playlist_from_matches(items, playlist_id=playlist_id, playlist_title=playlist_title)