aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Dto
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-15 22:37:06 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-15 22:37:06 -0400
commit37d7db4bc459f30b9c0d415e72b320590a5328a2 (patch)
treea24e59d7999f705aa17ca202dbf58a2e598f983c /MediaBrowser.Server.Implementations/Dto
parent825f0f3507d9daa00f2caea80f834db7219675f5 (diff)
support xmltv gzip
Diffstat (limited to 'MediaBrowser.Server.Implementations/Dto')
-rw-r--r--MediaBrowser.Server.Implementations/Dto/DtoService.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
index a2d895e2c1..31a35eec9c 100644
--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs
+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
@@ -486,10 +486,15 @@ namespace MediaBrowser.Server.Implementations.Dto
dto.UserData.Played = dto.UserData.PlayedPercentage.HasValue && dto.UserData.PlayedPercentage.Value >= 100;
}
- else
+ else if (item.SourceType == SourceType.Library)
{
dto.UserData = _userDataRepository.GetUserDataDto(item, user);
}
+ else
+ {
+ var userData = _userDataRepository.GetUserData(user, item);
+ dto.UserData = GetUserItemDataDto(userData);
+ }
if (item.SourceType == SourceType.Library)
{