Skip to content

Commit

Permalink
feat(events): update episodes field to Download event
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityPacer committed Dec 13, 2024
1 parent 621df40 commit 6ab7645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/chain/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def download_single(self, context: Context, torrent_file: Path = None,
# 发送资源下载事件,允许外部拦截下载
event_data = ResourceDownloadEventData(
context=context,
episodes=episodes,
episodes=episodes or context.meta_info.episode_list,
channel=channel,
origin=source,
downloader=downloader,
Expand Down Expand Up @@ -384,7 +384,7 @@ def download_single(self, context: Context, torrent_file: Path = None,
"context": context,
"username": username,
"downloader": _downloader,
"episodes": episodes,
"episodes": episodes or _meta.episode_list,
"source": source
})
else:
Expand Down

0 comments on commit 6ab7645

Please sign in to comment.