1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-20 21:55:03 -04:00

Improve HTTP file mappers

(cherry picked from commit f30207c3d130c1a37f29e214101c8ec9613d18ee)
This commit is contained in:
Mark McDowall
2026-02-24 20:13:55 -08:00
committed by Auggie
parent 89110c2cc8
commit 1a2b90bf36
16 changed files with 94 additions and 33 deletions
@@ -16,12 +16,14 @@ namespace Radarr.Http.Frontend.Mappers
_appFolderInfo = appFolderInfo;
}
public override string Map(string resourceUrl)
protected override string FolderPath => _appFolderInfo.GetUpdateLogFolder();
protected override string MapPath(string resourceUrl)
{
var path = resourceUrl.Replace('/', Path.DirectorySeparatorChar);
path = Path.GetFileName(path);
return Path.Combine(_appFolderInfo.GetUpdateLogFolder(), path);
return Path.Combine(FolderPath, path);
}
public override bool CanHandle(string resourceUrl)