Skip to content

Commit

Permalink
Fix XBVR dms scene id regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoooi0 committed Feb 6, 2024
1 parent 9a083f6 commit c896d03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ private bool TryGetSceneId(MediaResourceInfo mediaResource, out object sceneId)
return true;
}

// <endpoint>/api/dms/file/<sceneId>
match = Regex.Match(pathAndQuery, @"api\/dms\/file\/(?<id>\d+)");
// <endpoint>/api/dms/file/<fileId>/<sceneId> - <title>
match = Regex.Match(pathAndQuery, @"api\/dms\/file\/\d+\/(?<id>\d+) - .+");
if (match.Success)
{
sceneId = match.Groups["id"].Value;
Expand Down

0 comments on commit c896d03

Please sign in to comment.