更新代码

This commit is contained in:
JoeamAmier 2023-08-26 09:52:24 +08:00
parent 239cd1f23c
commit 4a1136e464
2 changed files with 2 additions and 4 deletions

View File

@ -5,9 +5,8 @@ class Image:
IMAGE_API = "https://sns-img-qc.xhscdn.com/"
IMAGE_ID = compile(r'"traceId":"(.*?)"')
def __init__(self, html, params):
def __init__(self, html: str):
self.html = html
self.params = params
def get_image_link(self, url: str, download: bool):
html = self.html.get_html(url)

View File

@ -4,9 +4,8 @@ from re import compile
class Video:
VIDEO_ID = compile(r'"masterUrl":"(.*?)"')
def __init__(self, html, params):
def __init__(self, html: str):
self.html = html
self.params = params
def get_video_link(self, url: str, download: bool):
html = self.html.get_html(url)