public GracenoteSong(RESPONSE response)
 {
     _response = response;
     _artist   = StringCleaner.ToCleanTitleCase(response.ALBUM.ARTIST);
     _album    = StringCleaner.ToCleanTitleCase(response.ALBUM.TITLE);
     _title    = StringCleaner.ToCleanTitleCase(response.ALBUM.TRACK.TITLE);
     _track    = response.ALBUM.TRACK.TRACK_NUM;
     _year     = response.ALBUM.DATE;
     _genres   = response.ALBUM.GENRE;
 }
Beispiel #2
0
 public Dictionary <string, bool> CheckMetadataEquality(MasterFile file)
 {
     // Threw an unhandled NullReferenceException
     return(new Dictionary <string, bool>()
     {
         { "Artist", file.TagLibProps["Artist"].ToString() == StringCleaner.ToCleanTitleCase(ALBUM.ARTIST) ? true : false },
         { "Album", file.TagLibProps["Album"].ToString() == StringCleaner.ToCleanTitleCase(ALBUM.TITLE) ? true : false },
         { "Title", file.TagLibProps["Title"].ToString() == StringCleaner.ToCleanTitleCase(ALBUM.TRACK.TITLE) ? true : false },
         { "Track", Convert.ToInt32(file.TagLibProps["Track"]) == ALBUM.TRACK.TRACK_NUM ? true : false },
         { "Year", file.TagLibProps["Year"].ToString() == ALBUM.DATE ? true : false },
         { "Genres", file.TagLibProps["Genres"].ToString() == ALBUM.GENRE ? true : false }
     });
 }