From da6790a3a318b9891e628b8af40179f41670852d Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Mon, 23 Dec 2019 08:59:54 +0000 Subject: [PATCH] BBC iPlayer: Fix multi-page handling for shows with only one season. --- youtube_dl/extractor/bbc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index 51effeba3..cca3689a7 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -1310,7 +1310,8 @@ class BBCCoUkIPlayerPlaylistIE(BBCCoUkPlaylistBaseIE): break next_page_num = page_num + 1 - next_page_href = pagination.get('pageUrl') % next_page_num + page_url_template = pagination.get('pageUrl') or '?page=%s' + next_page_href = page_url_template % next_page_num url = compat_urlparse.urljoin(url, next_page_href) webpage = self._download_webpage(url, playlist_id,