Fixed a potential issue in the newsletter where it wouldn't send content due to missing metadata, but would mark it as if it was sent.

This commit is contained in:
Jamie Rees 2018-04-30 14:41:41 +01:00
commit 6b2e9760e3
2 changed files with 14 additions and 5 deletions

View file

@ -51,6 +51,15 @@ namespace Ombi.Store.Entities
public string Url { get; set; }
public ICollection<EmbyEpisode> Episodes { get; set; }
[NotMapped]
public bool HasImdb => !string.IsNullOrEmpty(ImdbId);
[NotMapped]
public bool HasTvDb => !string.IsNullOrEmpty(TvDbId);
[NotMapped]
public bool HasTheMovieDb => !string.IsNullOrEmpty(TheMovieDbId);
}
public enum EmbyMediaType