aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/LiveTv/Listings
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-18 15:45:41 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-18 15:45:41 -0400
commitede3746ea7772b09b740ae59f19c9e7343458534 (patch)
treef5c0f9dd4accb558d6075850555bb742fe5fbdff /MediaBrowser.Server.Implementations/LiveTv/Listings
parent865b3b6fbe9dc578e5db00e21e2f1bd5b46cf71b (diff)
don't duplicate synced items
Diffstat (limited to 'MediaBrowser.Server.Implementations/LiveTv/Listings')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/Listings/Emby/EmbyListingsNorthAmerica.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/Listings/Emby/EmbyListingsNorthAmerica.cs b/MediaBrowser.Server.Implementations/LiveTv/Listings/Emby/EmbyListingsNorthAmerica.cs
index db6e8de3f6..2993740d63 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/Listings/Emby/EmbyListingsNorthAmerica.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/Listings/Emby/EmbyListingsNorthAmerica.cs
@@ -50,7 +50,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings.Emby
{
Id = info.listingID.ToString(CultureInfo.InvariantCulture),
Name = GetStringValue(info.showName),
- EpisodeTitle = GetStringValue(info.episodeTitle),
HomePageUrl = GetStringValue(info.webLink),
Overview = info.description,
IsHD = info.hd,
@@ -101,6 +100,13 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings.Emby
program.SeriesId = info.seriesID.ToString(CultureInfo.InvariantCulture);
program.IsSeries = true;
program.IsRepeat = info.repeat;
+
+ program.EpisodeTitle = GetStringValue(info.episodeTitle);
+
+ if (string.Equals(program.Name, program.EpisodeTitle, StringComparison.OrdinalIgnoreCase))
+ {
+ program.EpisodeTitle = null;
+ }
}
if (info.starRating > 0)