fix(ai): frontend console error — ignore .torrent urls in probeUrl (agent)

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-28 18:50:36 +00:00
1 parent fa3610f4f7
commit 9f60eeaaf2
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 || {};