Skip to content

Commit

Permalink
Fix Alldebrid
Browse files Browse the repository at this point in the history
  • Loading branch information
marcussacana committed Jun 1, 2024
1 parent ca56767 commit b47673b
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ public override bool IsValidUrl(string URL)

foreach (var Host in Info?.data.hosts) {
foreach (var exp in Host.Value.regexps)
if (new Regex(exp).IsMatch(URL))
return true;
{
try
{
if (new Regex(exp).IsMatch(URL))
return true;
}
catch { }
}
}

return false;
Expand Down

0 comments on commit b47673b

Please sign in to comment.