mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Corrects media library cover storage internal path
This commit is contained in:
1 parent
ecc332a91a
commit
5a2919f89a
3 files changed
+7
-3
No files matched your search
+5
-1
@@ -192,7 +192,11 @@ public class LibrarySavedDomainEventHandler : INotificationHandler<LibrarySavedD
|
||||
if (renameFileResult.IsError)
|
||||
return renameFileResult.Errors;
|
||||
|
||||
return $"cover.{imageCheckResult.Value.ToString().ToLower()}";
|
||||
// get the internal relative path for the copied file
|
||||
string relativePath = renameFileResult.Value.Path[AppContext.BaseDirectory.Length..];
|
||||
if (!relativePath.StartsWith(_pathService.PathSeparator))
|
||||
relativePath = $"{_pathService.PathSeparator}{relativePath}";
|
||||
return relativePath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user