fixes #324 - Server to return non-cropped images to clients

This commit is contained in:
Luke Pulverenti
2013-06-04 21:19:25 -04:00
parent 25cc19a10b
commit b010faa85b
5 changed files with 26 additions and 13 deletions

View File

@@ -54,11 +54,9 @@ namespace MediaBrowser.Controller.Entities.TV
/// <returns>System.String.</returns>
public override string GetUserDataKey()
{
if (Series != null)
if (Series != null && ParentIndexNumber.HasValue && IndexNumber.HasValue)
{
var seasonNo = Season != null ? Season.IndexNumber ?? 0 : 0;
var epNo = IndexNumber ?? 0;
return Series.GetUserDataKey() + seasonNo.ToString("000") + epNo.ToString("000");
return Series.GetUserDataKey() + ParentIndexNumber.Value.ToString("000") + IndexNumber.Value.ToString("000");
}
return base.GetUserDataKey();