You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Movies/Metadata/MovieXmlParser.cs

33 lines
925 B

using System.Xml;
13 years ago
using MediaBrowser.Controller.Xml;
using MediaBrowser.Movies.Entities;
namespace MediaBrowser.Movies.Metadata
{
public class MovieXmlParser : BaseItemXmlParser<Movie>
{
protected override void FetchDataFromXmlNode(XmlReader reader, Movie item)
13 years ago
{
switch (reader.Name)
13 years ago
{
case "TMDbId":
item.TmdbId = reader.ReadString();
13 years ago
break;
case "IMDB":
case "IMDbId":
string IMDbId = reader.ReadString();
if (!string.IsNullOrWhiteSpace(IMDbId))
13 years ago
{
item.ImdbId = IMDbId;
}
break;
default:
base.FetchDataFromXmlNode(reader, item);
13 years ago
break;
}
}
}
}