Fix rg.to filename scanning and release v1.3.3
This commit is contained in:
+5
-1
@@ -126,7 +126,11 @@ function toProviderOrder(primary: DebridProvider, secondary: DebridFallbackProvi
|
||||
|
||||
function isRapidgatorLink(link: string): boolean {
|
||||
try {
|
||||
return new URL(link).hostname.toLowerCase().includes("rapidgator.net");
|
||||
const hostname = new URL(link).hostname.toLowerCase();
|
||||
return hostname === "rapidgator.net"
|
||||
|| hostname.endsWith(".rapidgator.net")
|
||||
|| hostname === "rg.to"
|
||||
|| hostname.endsWith(".rg.to");
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user