code style

This commit is contained in:
Mozi 2024-10-31 01:12:22 +00:00
parent aa512f8b45
commit 971bf92c06

View file

@ -67,8 +67,8 @@ def _extract_video(self, video_info, video_id):
'mpd/cenc+h264;q=0.9, mpd/clear+h264;q=0.7, mp4/;q=0.1', 'mpd/cenc+h264;q=0.9, mpd/clear+h264;q=0.7, mp4/;q=0.1',
]: ]:
session_info = self._call_api( session_info = self._call_api(
'flux-capacitor/api/v1/streaming/session', video_id, 'Getting streaming session', 'flux-capacitor/api/v1/streaming/session', video_id,
headers={'x-chili-accept-stream': stream_type}, 'Getting streaming session', headers={'x-chili-accept-stream': stream_type},
data=json.dumps({'videoAssetId': video_info['id'], 'autoPlay': False}).encode()) data=json.dumps({'videoAssetId': video_info['id'], 'autoPlay': False}).encode())
streams_info = self._call_api( streams_info = self._call_api(
'flux-capacitor/api/v1/streaming/urls', video_id, 'Getting streaming urls', 'flux-capacitor/api/v1/streaming/urls', video_id, 'Getting streaming urls',