mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-07 21:32:51 +00:00
fix(ai): frontend console error — ignore .torrent urls in probeUrl (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
fa3610f4f7
commit
9f60eeaaf2
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