+ # _access_token = None
+
+ # def _call_api(self, path, video_id, data=None):
+ # headers = {
+ # 'X-Api-Key': '238bb0a0c2aba67922c48709ce0c06fd',
+ # }
+ # if self._access_token:
+ # headers['Authorization'] = 'Bearer ' + self._access_token
+ # return self._download_json(
+ # 'https://api2.fox.com/v2.0/' + path, video_id, data=data, headers=headers)
+
+ # def _real_initialize(self):
+ # self._access_token = self._call_api(
+ # 'login', None, json.dumps({
+ # 'deviceId': compat_str(uuid.uuid4()),
+ # }).encode())['accessToken']