mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
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:
2 files changed
+16
-14
No files matched your search
@@ -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 || {};
|
||||
|
||||
Reference in new issue
Block a user