Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion DeveLanCacheUI_Backend/LogReading/Models/LanCacheLogEntryRaw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,16 @@ public void CalculateFields()
}
else if (CacheIdentifier == "epicgames")
{
DownloadIdentifier = "unknown";
var urlPart = Request.Split(' ')[1];
var splittedUrl = urlPart.Split('/');
if (splittedUrl.Length >= 3 && splittedUrl[1] == "Builds")
{
DownloadIdentifier = splittedUrl[2];
}
else
{
throw new InvalidOperationException($"Could not parse epicgamesProjectID from {Request}. URL part: {urlPart}");
}
}
else if (CacheIdentifier == "riot")
{
Expand Down