mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
feat(event): add options to ResourceDownloadEventData
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user