Merge pull request #1892 from PR0M3TH3AN/ai/debug-frontend-20260128-16915912596521663527

fix(ai): frontend console error — ignore .torrent urls in probeUrl (agent)
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-28 13:51:43 -05:00
commit e24207c12d
2 files changed
+16 -14

No files matched your search

+4
View File
@@ -323,6 +323,10 @@ export default class UrlHealthController {
return { outcome: "invalid" };
}
if (trimmed.toLowerCase().endsWith(".torrent")) {
return { outcome: "invalid" };
}
const confirmPlayable = options?.confirmPlayable === true;
const defaultTimeout = this.constants.URL_PROBE_TIMEOUT_MS || 5000;
const urlHealthConstants = this.constants.urlHealthConstants || {};