aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun Chopra <360979+varunchopra@users.noreply.github.com>2024-07-01 01:59:01 +0530
committerGitHub <noreply@github.com>2024-06-30 20:29:01 +0000
commit61714f46956f61612032bba857aed7ad1387eccd (patch)
treed8bc3cd16f62586c04376577a35a1f2e43eddc6e
parent61edf57f8f13f6dfd81154174e647eb5fdd26089 (diff)
[ie/jiocinema:series] Fix extraction (#10139)
Authored by: varunchopra
-rw-r--r--yt_dlp/extractor/jiocinema.py23
1 files changed, 14 insertions, 9 deletions
diff --git a/yt_dlp/extractor/jiocinema.py b/yt_dlp/extractor/jiocinema.py
index 5898e1f49..30d98ba79 100644
--- a/yt_dlp/extractor/jiocinema.py
+++ b/yt_dlp/extractor/jiocinema.py
@@ -364,20 +364,25 @@ class JioCinemaSeriesIE(JioCinemaBaseIE):
'title': 'naagin',
},
'playlist_mincount': 120,
+ }, {
+ 'url': 'https://www.jiocinema.com/tv-shows/mtv-splitsvilla-x5/3499820',
+ 'info_dict': {
+ 'id': '3499820',
+ 'title': 'mtv-splitsvilla-x5',
+ },
+ 'playlist_mincount': 310,
}]
def _entries(self, series_id):
- seasons = self._download_json(
- f'{self._METADATA_API_BASE}/voot/v1/voot-web/content/generic/season-by-show', series_id,
- 'Downloading series metadata JSON', query={
- 'sort': 'season:asc',
- 'id': series_id,
- 'responseType': 'common',
- })
+ seasons = traverse_obj(self._download_json(
+ f'{self._METADATA_API_BASE}/voot/v1/voot-web/view/show/{series_id}', series_id,
+ 'Downloading series metadata JSON', query={'responseType': 'common'}), (
+ 'trays', lambda _, v: v['trayId'] == 'season-by-show-multifilter',
+ 'trayTabs', lambda _, v: v['id']))
- for season_num, season in enumerate(traverse_obj(seasons, ('result', lambda _, v: v['id'])), 1):
+ for season_num, season in enumerate(seasons, start=1):
season_id = season['id']
- label = season.get('season') or season_num
+ label = season.get('label') or season_num
for page_num in itertools.count(1):
episodes = traverse_obj(self._download_json(
f'{self._METADATA_API_BASE}/voot/v1/voot-web/content/generic/series-wise-episode',