|
|
|
@ -12,12 +12,9 @@ namespace Ombi.Notifications.Templates
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrEmpty(_templateLocation))
|
|
|
|
|
{
|
|
|
|
|
#if DEBUG
|
|
|
|
|
_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "bin", "Debug", "net6.0", "Templates",
|
|
|
|
|
"BasicTemplate.html");
|
|
|
|
|
#else
|
|
|
|
|
//_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "bin", "Debug", "net6.0", "Templates",
|
|
|
|
|
// "BasicTemplate.html");
|
|
|
|
|
_templateLocation = Path.Combine(Directory.GetCurrentDirectory(), "Templates", "BasicTemplate.html");
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
return _templateLocation;
|
|
|
|
|
}
|
|
|
|
@ -43,7 +40,8 @@ namespace Ombi.Notifications.Templates
|
|
|
|
|
return sb.ToString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string GetPosterContent(string imgsrc, string url) {
|
|
|
|
|
private string GetPosterContent(string imgsrc, string url)
|
|
|
|
|
{
|
|
|
|
|
string posterContent;
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(imgsrc))
|
|
|
|
|