[ie/jiocinema:series] Fix extraction (#10139)

Authored by: varunchopra
pull/10321/head
Varun Chopra 4 months ago committed by GitHub
parent 61edf57f8f
commit 61714f4695
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -364,20 +364,25 @@ class JioCinemaSeriesIE(JioCinemaBaseIE):
'title': 'naagin', 'title': 'naagin',
}, },
'playlist_mincount': 120, '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): def _entries(self, series_id):
seasons = self._download_json( seasons = traverse_obj(self._download_json(
f'{self._METADATA_API_BASE}/voot/v1/voot-web/content/generic/season-by-show', series_id, f'{self._METADATA_API_BASE}/voot/v1/voot-web/view/show/{series_id}', series_id,
'Downloading series metadata JSON', query={ 'Downloading series metadata JSON', query={'responseType': 'common'}), (
'sort': 'season:asc', 'trays', lambda _, v: v['trayId'] == 'season-by-show-multifilter',
'id': series_id, 'trayTabs', lambda _, v: v['id']))
'responseType': 'common',
})
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'] 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): for page_num in itertools.count(1):
episodes = traverse_obj(self._download_json( episodes = traverse_obj(self._download_json(
f'{self._METADATA_API_BASE}/voot/v1/voot-web/content/generic/series-wise-episode', f'{self._METADATA_API_BASE}/voot/v1/voot-web/content/generic/series-wise-episode',

Loading…
Cancel
Save