neteasedown 修复加载失败 (#203)

This commit is contained in:
Xtao_dada 2021-12-06 15:19:26 +08:00 committed by GitHub
parent f28bf97478
commit cf0d42ac69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -292,7 +292,7 @@
},
{
"name": "neteasedown",
"version": "1.221",
"version": "1.222",
"section": "daily",
"maintainer": "xtaodada",
"size": "11.4 kb",

View File

@ -52,7 +52,7 @@ def get_duration(song_info: dict, track_info: dict) -> int:
return int(song_info["songs"][0]["dt"] / 1000)
def tag_audio(track: TrackHelper, file: str, cover_img: str = ''):
def tag_audio(track, file: str, cover_img: str = ''):
def write_keys(song):
# Write trackdatas
song['title'] = track.TrackName
@ -99,7 +99,7 @@ def tag_audio(track: TrackHelper, file: str, cover_img: str = ''):
return False
async def netease_down(track_info: dict, song_info: dict, song: TrackHelper) -> str:
async def netease_down(track_info: dict, song_info: dict, song) -> str:
if not isfile(f'data{sep}{song_info["songs"][0]["name"]}.{track_info["data"][0]["type"]}'):
# Downloding source audio
download_by_url(track_info["data"][0]["url"],