XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Fix photoswipe video

344c50a8
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/providers/response.py +2 -2
@@ -361,9 +361,9 @@ class VideoResponse(MediaResponse):
361 361 image = self.get("preview")
362 362 if isinstance(image, list) and len(image) > idx:
363 363 image = image[idx]
364 result.append(f'<video controls src="{quote_url(video)}" poster="{quote_url(image)}"></video>')
364 result.append(f'<video src="{quote_url(video)}" poster="{quote_url(image)}"></video>')
365 365 return "\n".join(result)
366 return "\n".join([f'<video controls src="{quote_url(video)}"></video>' for video in self.get_list()])
366 return "\n".join([f'<video src="{quote_url(video)}"></video>' for video in self.get_list()])
367 367
368 368 class ImagePreview(ImageResponse):
369 369 def __str__(self) -> str: