Skip to content

Commit

Permalink
🔧: Fix ParseVideo.py -> #526
Browse files Browse the repository at this point in the history
  • Loading branch information
Evil0ctal committed Dec 23, 2024
1 parent f9b19d3 commit 6c09b41
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/web/views/ParseVideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,15 @@ def parse_video():
# 如果是视频/If it's video
if url_type == ViewsUtils.t('视频', 'Video'):
# 添加视频信息
table_list.insert(4, [ViewsUtils.t('视频链接-水印', 'Video URL-Watermark'),
put_link(ViewsUtils.t('点击查看', 'Click to view'),
data.get('video_data').get('wm_video_url_HQ'), new_window=True)])
table_list.insert(5, [ViewsUtils.t('视频链接-无水印', 'Video URL-No Watermark'),
put_link(ViewsUtils.t('点击查看', 'Click to view'),
data.get('video_data').get('nwm_video_url_HQ'), new_window=True)])
wm_video_url_HQ = data.get('video_data').get('wm_video_url_HQ')
nwm_video_url_HQ = data.get('video_data').get('nwm_video_url_HQ')
if wm_video_url_HQ and nwm_video_url_HQ:
table_list.insert(4, [ViewsUtils.t('视频链接-水印', 'Video URL-Watermark'),
put_link(ViewsUtils.t('点击查看', 'Click to view'),
wm_video_url_HQ, new_window=True)])
table_list.insert(5, [ViewsUtils.t('视频链接-无水印', 'Video URL-No Watermark'),
put_link(ViewsUtils.t('点击查看', 'Click to view'),
nwm_video_url_HQ, new_window=True)])
table_list.insert(6, [ViewsUtils.t('视频下载-水印', 'Video Download-Watermark'),
put_link(ViewsUtils.t('点击下载', 'Click to download'),
f"/api/download?url={url}&prefix=true&with_watermark=true",
Expand Down

0 comments on commit 6c09b41

Please sign in to comment.