Skip to content

Commit

Permalink
更新 Web UI 模式代码
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeanAmier committed Jul 2, 2023
1 parent 4abeb0f commit 974e358
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main_web_UI.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from datetime import date
from urllib.parse import urlencode

from flask import render_template
from flask import request
Expand Down Expand Up @@ -64,14 +63,11 @@ def update_settings(
if convert.get("cookie", False):
self.cookie.extract(convert["cookie"], 0)

def get_data(self, data) -> dict:
@staticmethod
def get_data(data) -> dict:
def get_video_url(item):
params = {
"video_id": item[4],
"ratio": "1080p",
}
result = {
"视频下载地址": f"{self.download.video_id_api}?{urlencode(params)}",
"视频下载地址": item[4],
"原声下载地址": item[5][1],
"动态封面图地址": item[6],
"静态封面图地址": item[7],
Expand Down

0 comments on commit 974e358

Please sign in to comment.