MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / delete_media

Method delete_media

src/services/flow_client.py:3939–3959  ·  view source on GitHub ↗

删除媒体 Args: st: Session Token media_names: 媒体ID列表

(self, st: str, media_names: List[str])

Source from the content-addressed store, hash-verified

3937 )
3938 if not launch_ok:
3939 last_error = Exception("Video launch queue wait timeout")
3940 raise last_error
3941
3942 launch_gate_acquired = True
3943 try:
3944 recaptcha_token, browser_id = await self._get_recaptcha_token(
3945 project_id, action="VIDEO_GENERATION", token_id=token_id
3946 )
3947 finally:
3948 if launch_gate_acquired:
3949 await self._release_video_launch_gate(token_id)
3950 if not recaptcha_token:
3951 last_error = Exception("Failed to obtain reCAPTCHA token")
3952 should_retry = await self._handle_missing_recaptcha_token(
3953 retry_attempt=retry_attempt,
3954 max_retries=max_retries,
3955 browser_id=browser_id,
3956 project_id=project_id,
3957 log_prefix="[VIDEO EXTEND] 续写",
3958 )
3959 if should_retry:
3960 retry_attempt += 1
3961 continue
3962 raise last_error

Callers

nothing calls this directly

Calls 1

_make_requestMethod · 0.95

Tested by

no test coverage detected