music video nfo multiple artists (#780)
* support multiple artist entries in music video nfo metadata * clean up other video and song etags
This commit is contained in:
@@ -6,7 +6,7 @@ namespace ErsatzTV.Core.Metadata.Nfo;
|
||||
public class MusicVideoNfo
|
||||
{
|
||||
[XmlElement("artist")]
|
||||
public string Artist { get; set; }
|
||||
public List<string> Artists { get; set; }
|
||||
|
||||
[XmlElement("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
@@ -30,6 +30,7 @@ public class MusicVideoNfoReader : NfoReader<MusicVideoNfo>, IMusicVideoNfoReade
|
||||
case "musicvideo":
|
||||
nfo = new MusicVideoNfo
|
||||
{
|
||||
Artists = new List<string>(),
|
||||
Genres = new List<string>(),
|
||||
Tags = new List<string>(),
|
||||
Studios = new List<string>()
|
||||
@@ -39,7 +40,7 @@ public class MusicVideoNfoReader : NfoReader<MusicVideoNfo>, IMusicVideoNfoReade
|
||||
await ReadStringContent(
|
||||
reader,
|
||||
nfo,
|
||||
(musicVideo, artist) => musicVideo.Artist = artist);
|
||||
(musicVideo, artist) => musicVideo.Artists.Add(artist));
|
||||
break;
|
||||
case "title":
|
||||
await ReadStringContent(reader, nfo, (musicVideo, title) => musicVideo.Title = title);
|
||||
|
||||
Reference in New Issue
Block a user