mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 18:24:19 -04:00
fixes #512 - Read and display Zap2It id for tv series
This commit is contained in:
parent
4785623f6e
commit
d77ae74b1e
@ -605,6 +605,14 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "Zap2ItId":
|
||||||
|
var zap2ItId = reader.ReadElementContentAsString();
|
||||||
|
if (!string.IsNullOrWhiteSpace(zap2ItId))
|
||||||
|
{
|
||||||
|
item.SetProviderId(MetadataProviders.Zap2It, zap2ItId);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case "IMDB_ID":
|
case "IMDB_ID":
|
||||||
case "IMDB":
|
case "IMDB":
|
||||||
case "IMDbId":
|
case "IMDbId":
|
||||||
|
@ -83,7 +83,8 @@ namespace MediaBrowser.Providers.Savers
|
|||||||
"DeathDate",
|
"DeathDate",
|
||||||
"LockedFields",
|
"LockedFields",
|
||||||
"Chapters",
|
"Chapters",
|
||||||
"MusicBrainzReleaseGroupId"
|
"MusicBrainzReleaseGroupId",
|
||||||
|
"Zap2ItId"
|
||||||
});
|
});
|
||||||
|
|
||||||
var position = xml.ToString().LastIndexOf("</", StringComparison.OrdinalIgnoreCase);
|
var position = xml.ToString().LastIndexOf("</", StringComparison.OrdinalIgnoreCase);
|
||||||
@ -327,6 +328,13 @@ namespace MediaBrowser.Providers.Savers
|
|||||||
builder.Append("<RottenTomatoesId>" + SecurityElement.Escape(rt) + "</RottenTomatoesId>");
|
builder.Append("<RottenTomatoesId>" + SecurityElement.Escape(rt) + "</RottenTomatoesId>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var zap2It = item.GetProviderId(MetadataProviders.Zap2It);
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(zap2It))
|
||||||
|
{
|
||||||
|
builder.Append("<Zap2ItId>" + SecurityElement.Escape(zap2It) + "</Zap2ItId>");
|
||||||
|
}
|
||||||
|
|
||||||
var mbz = item.GetProviderId(MetadataProviders.Musicbrainz);
|
var mbz = item.GetProviderId(MetadataProviders.Musicbrainz);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(mbz))
|
if (!string.IsNullOrEmpty(mbz))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user