[fixed] [MP2-813] Album artist filter wrong display (3 Viewers)

henso

Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    832
    Home Country
    Denmark Denmark
    No, you can access them by using the MusicBrainz.... Properties that I listed above
    I tried looking through all properties returned by the TagLib object and none of them contained the contents of the ARTISTS tag. How exactly do you mean that I can get access to the contants of the ARTISTS tag through the MusicBrainz... properties?
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    832
    Home Country
    Denmark Denmark
    Artist is always displayed.
    I tried importing an MP3 with ARTIST = "Anderson .Paak; André 3000" and ALBUMARTIST = "Anderson .Paak". In MP2 "Anderson .Paak" is the only album artists shown with album artists filter, while the artists filter shows "Anderson .Paak" and "André 3000". To me, it looks like it works like it should. Without more information I can't investigate the issue further.
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    • Thread starter
    • Moderator
    • #45
    I tried importing an MP3 with ARTIST = "Anderson .Paak; André 3000" and ALBUMARTIST = "Anderson .Paak". In MP2 "Anderson .Paak" is the only album artists shown with album artists filter, while the artists filter shows "Anderson .Paak" and "André 3000". To me, it looks like it works like it should. Without more information I can't investigate the issue further.
    Anderson paak work now if remember fine.
    But others not, what do you need for looking issue?

    Envoyé de mon LG-H870S en utilisant Tapatalk
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    I tried looking through all properties returned by the TagLib object and none of them contained the contents of the ARTISTS tag. How exactly do you mean that I can get access to the contants of the ARTISTS tag through the MusicBrainz... properties?

    Sorry about that. The MusicBrainz... properties do indeed only show specific properties from MB.
    In order to get the ARtists, you need to get the id3v2tag and then loop through the TXXX frames looking for the "ARTISTS" description.
    Something like this:

    C#:
    using System;
    using TagLib;
    using TagLib.Id3v2;
    
    namespace TaglibTest
    {
        class Program
        {
            static void Main(string[] args)
            {
                try
                {
                    TagLib.ByteVector.UseBrokenLatin1Behavior = true;
                    File file = File.Create(@"d:\Downloads\Music\01 - Come Home (Feat. André 3000).mp3");
    
                    // Get the Id3v2tag, if the fileis mp3
                    TagLib.Id3v2.Tag id3v2tag = null;
                    try
                    {
                        if (file.MimeType.Substring(file.MimeType.IndexOf("/") + 1) == "mp3")
                        {
                            id3v2tag = file.GetTag(TagTypes.Id3v2, false) as TagLib.Id3v2.Tag;
                        }
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine("File Read: Error retrieving id3tag");
                        return;
                    }
    
                    if (id3v2tag != null)
                    {
                        foreach (TagLib.Id3v2.Frame frame in id3v2tag.GetFrames())
                        {
                            var frameId = frame.FrameId.ToString();
                            if (frameId == "TXXX" && (frame as UserTextInformationFrame).Description.ToLowerInvariant() == "artists")
                            {
                                // we could have multiple of them
                                foreach (var field in (frame as UserTextInformationFrame).Text)
                                {
                                    Console.WriteLine($"MusicBrainzArtist: {field}");
                                }
                            }
                        }
                    }
                    Console.ReadLine();
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                    Console.WriteLine(ex.StackTrace);
                    Console.ReadLine();
                }
            }
        }
    }
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    @henso, if you believe this subject to be done, could then please promote/close the Jira MP2-813?
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    • Thread starter
    • Moderator
    • #50
    Wait guy's, i prépare an package with issues.


    Envoyé de mon LG-H870S en utilisant Tapatalk
     

    Users who are viewing this thread

    Top Bottom