Skip to content

Commit

Permalink
Fix alldebird mess
Browse files Browse the repository at this point in the history
  • Loading branch information
marcussacana committed Jun 1, 2024
1 parent 3718832 commit ca56767
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using System.Text.RegularExpressions;
using System.Web;
Expand Down Expand Up @@ -51,8 +52,9 @@ public override bool IsValidUrl(string URL)
return false;

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

return false;
Expand Down Expand Up @@ -83,7 +85,7 @@ struct AllDebridHostsEntry
public string type { get; set; }
public string[] domains { get; set; }
public string[] regexps { get; set; }
public string regexp { get; set; }
public object regexp { get; set; }
public bool status { get; set; }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static string? MainExecutable

const string UpdateList = "Update.ini";

public static Version CurrentVersion = new Version("6.2.9");
public static Version CurrentVersion = new Version("6.2.10");

public static Version? LastVersion = null;

Expand Down

0 comments on commit ca56767

Please sign in to comment.