Added API call to retrieve cover with internalId.

No need to mount imageCache over multiple containers.
This commit is contained in:
2023-09-01 21:40:56 +02:00
parent 394829ee36
commit 32036df057
4 changed files with 63 additions and 22 deletions

View File

@ -127,4 +127,9 @@ public class TrangaSettings
Directory.CreateDirectory(new FileInfo(settingsFilePath).DirectoryName!);
File.WriteAllText(settingsFilePath, JsonConvert.SerializeObject(this));
}
public string GetFullCoverPath(Manga manga)
{
return Path.Join(this.coverImageCache, manga.coverFileNameInCache);
}
}