Skip to content

Commit 5d7000c

Browse files
committed
fix(Ani2Alist): 跟随 ANiOpen 更新时间修改文件时间戳字段
1 parent a0d8f34 commit 5d7000c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/modules/ani2alist/ani2alist.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,16 @@ async def update_data(_url: str, _url_dict: dict):
178178

179179
if mimeType in FILE_MINETYPE:
180180
size: str = file["size"]
181-
modifed_time_stamp: str = str(
182-
__parse2timestamp(file["modifiedTime"])
181+
created_time_stamp: str = str(
182+
__parse2timestamp(file["createdTime"])
183183
)
184184
__url = _url + quoted_name + "?d=true"
185185
logger.debug(
186186
f"获取文件:{name},文件大小:{int(size) / 1024 / 1024:.2f}MB,播放地址:{__url}"
187187
)
188188
_url_dict[name] = [
189189
size,
190-
modifed_time_stamp,
190+
created_time_stamp,
191191
__url,
192192
]
193193
elif mimeType == "application/vnd.google-apps.folder":

0 commit comments

Comments
 (0)