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:
Jason Dove
2022-05-02 12:32:15 -05:00
committed by GitHub
parent 973dd4b53d
commit 8ba6374165
26 changed files with 12960 additions and 42 deletions
+1 -1
View File
@@ -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);