Skip to content

Commit

Permalink
Match Stash dlna regex to XBVR
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoooi0 committed Feb 6, 2024
1 parent c896d03 commit 7327df8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private bool TryGetSceneId(MediaResourceInfo mediaResource, out int sceneId)
var pathAndQuery = mediaResourceUri.GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped);

// <endpoint>/res?scene=<sceneId>
var match = Regex.Match(pathAndQuery, @"scene=(?<id>\d+?)");
var match = Regex.Match(pathAndQuery, @"scene=(?<id>\d+?)(?>$|&)");
if (match.Success)
{
sceneId = int.Parse(match.Groups["id"].Value);
Expand Down

0 comments on commit 7327df8

Please sign in to comment.