From 260e0c132a67aad7f755b8191ccc6810dbcace97 Mon Sep 17 00:00:00 2001 From: Sergey Susikov Date: Wed, 3 Mar 2021 17:28:50 +0200 Subject: [PATCH] [premier.one] Fix parsing last page of a playlist --- youtube_dl/extractor/premierone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/premierone.py b/youtube_dl/extractor/premierone.py index d1810a67a..2544f2382 100644 --- a/youtube_dl/extractor/premierone.py +++ b/youtube_dl/extractor/premierone.py @@ -95,7 +95,7 @@ class PremierOneIE(InfoExtractor): 'Accept': 'application/json', 'Referer': 'https://premier.one/show/' + show_id + '/season/' + str(season.get('number')) }) - while metainfo and (metainfo.get('page') == 1 or metainfo.get('has_next')): + while metainfo and len(metainfo.get('results')) > 0: for item in metainfo.get('results'): video_id = item.get('id') if not video_id: