mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 13:28:27 +01:00
update music user data key
This commit is contained in:
@@ -180,7 +180,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||
}
|
||||
catch (XmlException)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -661,7 +661,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||
if (!string.IsNullOrWhiteSpace(val))
|
||||
{
|
||||
val = val.Replace("plugin://plugin.video.youtube/?action=play_video&videoid=", "http://www.youtube.com/watch?v=", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
|
||||
hasTrailer.AddTrailerUrl(val, false);
|
||||
}
|
||||
}
|
||||
@@ -860,6 +860,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||
break;
|
||||
|
||||
case "collectionnumber":
|
||||
case "tmdbcolid":
|
||||
var tmdbCollection = reader.ReadElementContentAsString();
|
||||
if (!string.IsNullOrWhiteSpace(tmdbCollection))
|
||||
{
|
||||
|
||||
@@ -11,7 +11,8 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||
{
|
||||
class MovieNfoParser : BaseNfoParser<Video>
|
||||
{
|
||||
public MovieNfoParser(ILogger logger, IConfigurationManager config) : base(logger, config)
|
||||
public MovieNfoParser(ILogger logger, IConfigurationManager config)
|
||||
: base(logger, config)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -44,12 +45,18 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||
|
||||
case "set":
|
||||
{
|
||||
var val = reader.ReadElementContentAsString();
|
||||
var movie = item as Movie;
|
||||
|
||||
var tmdbcolid = reader.GetAttribute("tmdbcolid");
|
||||
if (!string.IsNullOrWhiteSpace(tmdbcolid) && movie != null)
|
||||
{
|
||||
movie.SetProviderId(MetadataProviders.TmdbCollection, tmdbcolid);
|
||||
}
|
||||
|
||||
var val = reader.ReadElementContentAsString();
|
||||
if (!string.IsNullOrWhiteSpace(val) && movie != null)
|
||||
{
|
||||
movie.TmdbCollectionName = val;
|
||||
movie.CollectionName = val;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
@@ -101,9 +101,9 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
|
||||
if (movie != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(movie.TmdbCollectionName))
|
||||
if (!string.IsNullOrEmpty(movie.CollectionName))
|
||||
{
|
||||
writer.WriteElementString("set", movie.TmdbCollectionName);
|
||||
writer.WriteElementString("set", movie.CollectionName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user