feat(event): add options to ResourceDownloadEventData

This commit is contained in:
InfinityPacer
2024-12-06 10:47:56 +08:00
parent c030166cf5
commit 233d62479f
2 changed files with 10 additions and 14 deletions
+7 -5
View File
@@ -229,12 +229,14 @@ class DownloadChain(ChainBase):
context=context,
episodes=episodes,
channel=channel,
source=source,
origin=source,
downloader=downloader,
save_path=save_path,
userid=userid,
username=username,
media_category=media_category
options={
"save_path": save_path,
"userid": userid,
"username": username,
"media_category": media_category
}
)
# 触发资源下载事件
event = eventmanager.send_event(ChainEventType.ResourceDownload, event_data)