1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-26 08:17:54 +01:00

[dropout] fixed next_page_url

This commit is contained in:
tsia 2020-03-01 17:49:09 +01:00
parent 6b65dae7b1
commit 62c7c8c6d4

View File

@ -109,7 +109,7 @@ class DropoutPlaylistIE(DropoutIE):
items = [] items = []
while True: while True:
items.extend(re.findall(r'browse-item-title[^>]+>[^<]*<a href="(?P<url>https://www.dropout.tv/[^/]+/[^"]+)"', webpage)) items.extend(re.findall(r'browse-item-title[^>]+>[^<]*<a href="(?P<url>https://www.dropout.tv/[^/]+/[^"]+)"', webpage))
next_page_url = self._search_regex(r'href="(/[^\?]+\?page=\d+)"', webpage, 'next page url', default=None) next_page_url = self._search_regex(r'href="([^"]+\?[^"]*(?:&|&amp;)?page=\d+)"', webpage, 'next page url', default=None)
if not next_page_url: if not next_page_url:
break break
webpage = self._download_webpage('https://www.dropout.tv' + next_page_url, playlist_id) webpage = self._download_webpage('https://www.dropout.tv' + next_page_url, playlist_id)