Skip to content

Commit

Permalink
perfect(Ani2Alist): 减少 URL 解码次数
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Feb 3, 2025
1 parent 81892c0 commit d129c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/modules/ani2alist/ani2alist.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ def handle_recursive(url_dict: dict, entry) -> None:
"""
处理 RSS 数据,解析 URL 多级目录
"""
parents = entry.link.split("/")[3:] # 拆分多级目录
parents = URLUtils.decode(entry.link).split("/")[3:] # 拆分多级目录
current_dict = url_dict
for index in range(len(parents)):
name = URLUtils.decode(parents[index])
name = parents[index]
if index == len(parents) - 1:
current_dict[entry.title] = [
convert_size_to_bytes(entry.anime_size),
Expand Down

0 comments on commit d129c38

Please sign in to comment.