Skip to content

Commit

Permalink
更新 2.4 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeanAmier committed Jul 6, 2023
1 parent 8cf1a4e commit 9edacd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/DataDownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ def clear_spaces(string: str):
def get_music():
nonlocal item
if music_data := item.get("music", False):
name = music_data["title"]
url = u[0] if (u := music_data["play_url"]
name = music_data.get("title", "")
url = u[-1] if (u := music_data["play_url"]
["url_list"]) else "" # 部分作品的数据没有音乐下载地址
return name, url
return "", ""
Expand Down Expand Up @@ -319,8 +319,8 @@ def get_statistics():
type_ = "图集"
images = [i['url_list'][-1] for i in images]
download_link = " ".join(images)
dynamic_cover = ""
origin_cover = ""
dynamic_cover = "#"
origin_cover = "#"
self.image_data.append([id_,
desc,
create_time,
Expand Down Expand Up @@ -422,7 +422,7 @@ def download_music(self, root: str, item: list):
"""下载音乐"""
if self.music and (u := item[7][1]):
self.request_file(u, root, self.clean.filter(
f"{f'{item[0]}-{item[7][0]}'}"), type_="mp3")
f"{f'{item[0]}-{item[7][0]}'}"), type_="m4a")

def download_cover(self, root: str, name: str, item: list):
"""下载静态/动态封面图"""
Expand Down
4 changes: 2 additions & 2 deletions src/Recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ class RecordManager:
"TEXT NOT NULL",
"TEXT",
"TEXT",
"TEXT",
"TEXT",
"TEXT NOT NULL",
"TEXT NOT NULL",
"INTEGER NOT NULL",
"INTEGER NOT NULL",
"INTEGER NOT NULL",
Expand Down

0 comments on commit 9edacd9

Please sign in to comment.