[fixed] [MP2-813] Album artist filter wrong display (1 Viewer)

henso

Development Group
  • Team MediaPortal
  • February 16, 2012
    2,256
    776
    Denmark Denmark
    Country flag
    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,256
    776
    Denmark Denmark
    Country flag
    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,636
    5,267
    France - IDF
    France France
    Country flag
    • 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,558
    2,352
    Vienna, Austria
    Austria Austria
    Country flag
    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,431
    2,334
    Germany Germany
    Country flag
    @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,636
    5,267
    France - IDF
    France France
    Country flag
    • 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

    Similar threads
    OP Title Forum Replies Date
    M MP2 - V2.3 MP2 & USB Problems Submit: Bug Reports 29
    L MP2 - V2.3 Troubles upgrading from MP2 2.2.3 to 2.3 General 0
    T MP2 - V2.3 MP2 x64 won't run Submit: Bug Reports 5
    J Copying Old VHS tapes Newcomers Forum 8
    W MP2 - V2.3 MP2 2.3 Import von Audioquellen / Datenbankprobleme Allgemeines Support- und Diskussionsforum 26
    G MP2 - V2.3 New install and crashing MP2-2.3 General 6
    S MP2 - V2.3 MP2 No video General 6
    W MP2 - V2.3 MP2 Server stürzt immer nach kurzer Zeit ab Allgemeines Support- und Diskussionsforum 77
    toricred MP2 - V2.3 MP2 2.3 Client won't start General 6
    Grisu002 MP2 - V2.3 MP2 2.3 Client startet nicht - bleibt beim Laden hängen Allgemeines Support- und Diskussionsforum 61
    M [solved] MP2 PROBLEME Standby Allgemeines Support- und Diskussionsforum 2
    Scheibes Was passiert bei MP2? Allgemeines Support- und Diskussionsforum 42
    S Programmierte Aufnahme in MP2 - kein Aufwachen des PC Allgemeines Support- und Diskussionsforum 5
    morpheus_xx [Finished] "What's New" plugin for MP2 upgrades MediaPortal 2 20
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    morpheus_xx [Evaluate] Checking MP2 code portability to .Net Core MediaPortal 2 15
    da3dsoul Does MP2 not have any active devs? General 8
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    R [solved] Kein Player registriert Allgemeines Support- und Diskussionsforum 1
    -Merkur- MP2 Client startet nicht, "libXBMC_addon.dll" fehlt Allgemeines Support- und Diskussionsforum 1
    mp2-ulrich [solved] MP 2.2.3 spielt nur manche Sender Allgemeines Support- und Diskussionsforum 2
    H MP2 database won't keep in synch with recordings General 8
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    ge2301 [WiP] MP2Web - A platform independent web client for MP2 MediaPortal 2 72
    F Problems with new install of MP2 Newcomers Forum 3

    Similar threads

    Top Bottom