Fixed: Kodi episode metadata missing uniqueid

Fixes #3308
This commit is contained in:
Mark McDowall 2019-10-07 09:36:47 -07:00
parent ef1e8d7ef3
commit ffccc3be38
1 changed files with 5 additions and 0 deletions

View File

@ -259,6 +259,11 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
details.Add(new XElement("displayseason")); details.Add(new XElement("displayseason"));
details.Add(new XElement("displayepisode")); details.Add(new XElement("displayepisode"));
var uniqueId = new XElement("uniqueid", episode.Id);
uniqueId.SetAttributeValue("type", "sonarr");
uniqueId.SetAttributeValue("default", true);
details.Add(uniqueId);
if (image == null) if (image == null)
{ {
details.Add(new XElement("thumb")); details.Add(new XElement("thumb"));