aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinePlayersPE <mineplayerspealt@gmail.com>2021-11-12 20:46:19 +0700
committerGitHub <noreply@github.com>2021-11-12 19:16:19 +0530
commitdf03de2c02192e43e5b51c8708619179a268b4cf (patch)
treeac06fbe43169611e4091ca9c4fa3532a136a127a
parent48e931066091fba7af1c447787685bbf7c889a25 (diff)
downloadhypervideo-pre-df03de2c02192e43e5b51c8708619179a268b4cf.tar.lz
hypervideo-pre-df03de2c02192e43e5b51c8708619179a268b4cf.tar.xz
hypervideo-pre-df03de2c02192e43e5b51c8708619179a268b4cf.zip
[RoosterTeethSeries] Fix for multiple pages (#1642)
Authored by: MinePlayersPE
-rw-r--r--yt_dlp/extractor/roosterteeth.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/yt_dlp/extractor/roosterteeth.py b/yt_dlp/extractor/roosterteeth.py
index be796804c..18672b2e3 100644
--- a/yt_dlp/extractor/roosterteeth.py
+++ b/yt_dlp/extractor/roosterteeth.py
@@ -12,6 +12,7 @@ from ..utils import (
url_or_none,
urlencode_postdata,
urljoin,
+ update_url_query,
)
@@ -182,6 +183,13 @@ class RoosterTeethSeriesIE(RoosterTeethBaseIE):
'id': 'role-initiative',
'title': 'Role Initiative',
}
+ }, {
+ 'url': 'https://roosterteeth.com/series/let-s-play-minecraft?season=9',
+ 'playlist_mincount': 50,
+ 'info_dict': {
+ 'id': 'let-s-play-minecraft-9',
+ 'title': 'Let\'s Play Minecraft - Season 9',
+ }
}]
def _entries(self, series_id, season_number):
@@ -192,7 +200,7 @@ class RoosterTeethSeriesIE(RoosterTeethBaseIE):
idx = traverse_obj(data, ('attributes', 'number'))
if season_number and idx != season_number:
continue
- season_url = urljoin(self._API_BASE, data['links']['episodes'])
+ season_url = update_url_query(urljoin(self._API_BASE, data['links']['episodes']), {'per_page': 1000})
season = self._download_json(season_url, display_id, f'Downloading season {idx} JSON metadata')['data']
for episode in season:
yield self.url_result(