Skip to content

fix: Emby Webhook episode deletion failure bug#120

Open
luotao21 wants to merge 3 commits intolinyuan0213:devfrom
luotao21:fix/emby-episode-deletion-bug
Open

fix: Emby Webhook episode deletion failure bug#120
luotao21 wants to merge 3 commits intolinyuan0213:devfrom
luotao21:fix/emby-episode-deletion-bug

Conversation

@luotao21
Copy link

@luotao21 luotao21 commented Feb 1, 2026

This PR fixes the issue where Emby Webhook fails to delete a single episode or season. Reason: original code used item's own TMDB ID for Episode/Season types, but NAStool DB stores Series' TMDB ID. Also fixed inconsistent zero-padding for episode/season numbers.

问题描述:
当 Jackett 的 HTTP URL 返回的是 magnet 链接时,添加下载任务后的验证
逻辑只检查原始 URL 是否以 magnet: 开头,而不检查实际下载内容。

由于原始 URL 是 Jackett 的 HTTP 链接(如 http://192.168.1.6:9117/dl/...),
而实际下载内容 content 是 magnet 链接(如 magnet:?xt=urn:btih:...),
验证失败导致刚添加的下载任务被误删,并报错:请检查下载任务保存目录是否正确

修复方案:
同时检查 url 和 content 是否以 magnet: 开头,只要有一个是 magnet 链接
就跳过路径验证。
@luotao21 luotao21 changed the title fix: fix Emby Webhook episode deletion failure bugfix: fix Emby Webhook episode deletion failure bugix: fix Emby Webhook episode deletion failure bugfix: fix Emby Webhook episode deletion failure bugfix: fix Emby Webhook episode deletion failure bugfix: fix: Emby Webhook bugfix: Fix/emby episode deletion bug fix: fix Emby Webhook episode deletion failure bug Feb 1, 2026
@luotao21 luotao21 changed the title fix: fix Emby Webhook episode deletion failure bug fix: Emby Webhook episode deletion failure bug Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant