Skip to content

Commit

Permalink
#H5IS
Browse files Browse the repository at this point in the history
Thought for sure that I had tested this properly :o
  • Loading branch information
abjerner committed Dec 10, 2021
1 parent 482f181 commit 6840506
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public virtual bool IsMatch(string source, out IVideoOptions options) {
options = null;

Match m1 = Regex.Match(source, "^(http|https)://([a-zA-Z0-9-\\.]+)/manage/video/([0-9]+)$", RegexOptions.IgnoreCase);
Match m2 = Regex.Match(source, "(http|https|)://(.+?)/(v|[0-9]+)\\.ihtml/player\\.html\\?token=([a-z0-9]+)&source=embed&photo%5fid=([0-9]+)");
Match m2 = Regex.Match(source, "(http:|https:|)//(.+?)/(v|[0-9]+)\\.ihtml/player\\.html\\?token=([a-z0-9]+)&source=embed&photo%5fid=([0-9]+)");
Match m3 = Regex.Match(source, "<script src=\"(http|https)://(.+?)/spot/([0-9]+)/([a-z0-9]+)/include\\.js");

// From manage URL
Expand All @@ -58,7 +58,7 @@ public virtual bool IsMatch(string source, out IVideoOptions options) {
// From <iframe>
if (m2.Success) {

string scheme = m2.Groups[1].Value;
string scheme = m2.Groups[1].Value.Trim(':');
string domain = m2.Groups[2].Value;
string playerId = m2.Groups[3].Value;
string token = m2.Groups[4].Value;
Expand Down

0 comments on commit 6840506

Please sign in to comment.