+ })
+ video_data = self._download_json(
+ 'https://www.go90.com/api/view/items/' + video_id, video_id,
+ headers=headers, data=b'{"client":"web","device_type":"pc"}')
+ except ExtractorError as e:
+ if isinstance(e.cause, compat_HTTPError) and e.cause.code == 400:
+ message = self._parse_json(e.cause.read().decode(), None)['error']['message']
+ if 'region unavailable' in message:
+ self.raise_geo_restricted(countries=['US'])
+ raise ExtractorError(message, expected=True)
+ raise
+