fix: Emby Webhook episode deletion failure bug#120
Open
luotao21 wants to merge 3 commits intolinyuan0213:devfrom
Open
fix: Emby Webhook episode deletion failure bug#120luotao21 wants to merge 3 commits intolinyuan0213:devfrom
luotao21 wants to merge 3 commits intolinyuan0213:devfrom
Conversation
问题描述: 当 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 链接 就跳过路径验证。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.