Skip to content

Commit

Permalink
Update clip regex
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Sep 7, 2023
1 parent 0f3e0b2 commit 936b140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KickDownloader/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private async void btnInfo_Click(object sender, EventArgs e)
return;
}

string clipPattern = @"https://kick\.com/.*\?clip=(?<clipid>\d+)";
string clipPattern = @"https://kick\.com/.*\?clip=(?<clipid>[^&\s]+)";
Regex clipRegex = new Regex(clipPattern);
string videoPattern = @"https://kick\.com/video/(?<uuid>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})";
Regex videoRegex = new Regex(videoPattern);
Expand Down

0 comments on commit 936b140

Please sign in to comment.