aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-11-15 14:43:27 -0500
committerGitHub <noreply@github.com>2016-11-15 14:43:27 -0500
commit50b033f3aacd0664a6252410279b8c9c9b3d42d8 (patch)
treecfc936e2a43d3465bbbc1431249a196572398d39 /Emby.Server.Implementations
parent6d40ab7e1c40fdb5c18defb7a5f5521bbd0cfb2e (diff)
parentc0491fb56348c63d78b1f694f574e963f9526a9a (diff)
Merge pull request #2291 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/TV/SeriesPostScanTask.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/TV/SeriesPostScanTask.cs b/Emby.Server.Implementations/TV/SeriesPostScanTask.cs
index 2e04c883fa..3d93561f17 100644
--- a/Emby.Server.Implementations/TV/SeriesPostScanTask.cs
+++ b/Emby.Server.Implementations/TV/SeriesPostScanTask.cs
@@ -80,7 +80,7 @@ namespace Emby.Server.Implementations.TV
var group = new SeriesGroup();
FindAllLinked(series, visited, links, group);
- group.Key = group.Select(s => s.GetProviderId(MetadataProviders.Tvdb)).FirstOrDefault(id => !string.IsNullOrEmpty(id));
+ group.Key = group.Select(s => s.PresentationUniqueKey).FirstOrDefault(id => !string.IsNullOrEmpty(id));
yield return group;
}
@@ -105,11 +105,7 @@ namespace Emby.Server.Implementations.TV
private static bool ShareProviderId(Series a, Series b)
{
- return a.ProviderIds.Any(id =>
- {
- string value;
- return b.ProviderIds.TryGetValue(id.Key, out value) && id.Value == value;
- });
+ return string.Equals(a.PresentationUniqueKey, b.PresentationUniqueKey, StringComparison.Ordinal);
}
public int Order