- title = '%s %s' % (title, info.get('display_name'))
-
- description = try_get(info, lambda x: x['title']['description'], compat_str) or info.get('description')
- timestamp = unified_timestamp(info.get('created_at'))
- upload_date = unified_strdate(info.get('created_at'))
- uploader = try_get(info, lambda x: x['title']['producer']['name'], compat_str)
- uploader_id = str_or_none(try_get(info, lambda x: x['title']['producer']['id']))
- view_count = int_or_none(try_get(info, lambda x: x['content']['watch_count']))
- duration = float_or_none(try_get(info, lambda x: x['content']['duration_in_ms']), scale=1000)
- thumbnail = try_get(info, lambda x: x['content']['images']['wide']['main'], compat_str)
- release_year = int_or_none(try_get(info, lambda x: x['title']['released_at']))
- webpage_url = info.get('web_url')
-
- season_number = int_or_none(info.get('season_number'))
- season_id = int_or_none(info.get('season_id'))
- episode_number = int_or_none(info.get('episode_number'))
+ title = '%s %s' % (title, info['display_name'])
+
+ try:
+ videos = self._download_json(
+ 'https://puhutv.com/api/assets/%s/videos' % video_id,
+ display_id, 'Downloading video JSON',
+ headers=self.geo_verification_headers())
+ except ExtractorError as e:
+ if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403:
+ self.raise_geo_restricted()
+ raise
+
+ urls = []
+ formats = []