Mind Control Forums  

Go Back   Mind Control Forums > Public Categories > Hundred Miles Software > Hundred Miles Software: UltraID3Lib Support

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old July 23rd, 2009, 11:37 PM
AndrewC AndrewC is offline
Registered User
 
Join Date: Jul 2009
Posts: 2
Question Bug in OriginalArtist??

Hi all-

Just started with UltraID3Lib, and now that I am getting up to speed with the methods for retrieving non-"standard" frames, I am well pleased with it, and appreciative that such a professionally-written library is free.

However-- I think I may have discovered a bug. When I try to retrieve the OriginalArtist data from an ID3v2 Tag which I know has data, the GetFrame() function returns Nothing, as in "null", for the Frame. Here is the function call I am using:
Code:
Dim MyOriginalArtist As ID3v2OriginalArtistFrame = _
                            CType(Me.ID3v2Tag.Frames.GetFrame(CommonSingleInstanceID3v2FrameTypes.OriginalArtist),  _
                            ID3v2OriginalArtistFrame)
Interestingly, when I ask for the OriginalAlbum frame data, then cast it to OriginalArtist, I get the value that is actually in the OriginalArtist frame. This leads me to believe that there is a bug, of the CopyCode/PasteCode/forget-to-change-a-value variety, in the GetFrame() function. Here's the workaround code that actually works, to get OriginalArtist:
Code:
Dim MyOriginalArtist As ID3v2OriginalArtistFrame = _
                           CType(Me.ID3v2Tag.Frames.GetFrame(CommonSingleInstanceID3v2FrameTypes.OriginalAlbum),  _
                           ID3v2OriginalArtistFrame)
A quick look at the MP3 file in question in a hex editor confirms the fact that the OriginalArtist frame is present in the file, and the OriginalAlbum frame is not. So why am I getting Nothing when I ask for Artist data, but getting Artist data when I ask for Album data?

While I can work around this, due to the fact that I don't actually require the data in the OriginalAlbum frame, I'd like to confirm this one way or the other. I'm also curious, if this is a bug, about what will happen when I try to save the OriginalArtist data back to the file; I haven't actually tried that yet.


So, is this a bug, or am I missing something? AFAICT the OriginalArtist frame is not/should not be a "child" of the OriginalAlbum frame...right?


Thanks,

-Andrew
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -5. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
2003-2008 Rainlands