Problem getting track info from freedb (1 Viewer)

IkeV70

Portal Pro
April 28, 2008
55
3
Netherlands Netherlands
I think there is a problem with the freedb track info retrieval function in MP.
I've been trying to find the reason wy MP sometimes hangs for 1.5 minutes when opening an Audio CD and then displays the correct track title of only the first few tracks, the rest is just displayed as "Track 03", "Track 04", etc.. This is what I found out:

In Plugins/WindowsPlugins/GUIMusic/GUIMusicFiles.cs, in the OnRetrieveMusicInfo( ) method, there is some code that checks if the CD or Drive has changed:

Code:
                // Disk changed (or other drive)
                if (GUIMusicFiles.MusicCD != null)
                {
                  if (freedb.GetCDDBDiscID(driveLetter).ToLower() != GUIMusicFiles.MusicCD.DiscID)
                  {
                    GUIMusicFiles.MusicCD = null;
                  }
                }
The problem is that two different DiscID's are compared. FreeDB sometimes returns multiple DiscID's. E.g. for my copy of Supertramp - Crime of the Century. The freedb.GetCDDBDiscID() method will return only 1 discid, GUIMusicFiles.MusicCD.DiscID contains multiple comma-separated ID's.
If this situation occurs then GUIMusicFiles.MusicCD will be reset to NULL for each track, The Disc info is therefore retrieved again from freedb for each track. This will be ok for two or three times, but after that the WebRequest to freedb will time out (after 100 seconds -> the 1.5 minute freeze).

Example URL that returns multiple DiscID's:
http://freedb.freedb.org/~cddb/cddb...808&hello=ike+IKE-HP+MediaPortal+1.0+&proto=5

I can reproduce this problem with 0.2.3.0 and with 1.0 RC1, latest SVN files.


Apart from fixing this problem I also suggest setting te WebRequest timeout to something less than 100 seconds. Best thing ofcourse would be to only do asynchronous webrequests to prevent freeze problems alltogether.


Steps to reproduce:
1. Insert audio CD Supertramp - Crime of the century
2. Open Music - Audio CD to see the tracklist in MP


Thanks,

Ike.




TV-Server Version:
MediaPortal Version: 1.0 RC1
MediaPortal Skin:
Windows Version:
CPU Type:
HDD:
Memory:
Motherboard:
Video Card:
Video Card Driver:
Sound Card:
Sound Card AC3:
Sound Card Driver:
1. TV Card:
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
h.264 Video Codec:
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote:
TV:
TV - HTPC Connection:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
F Problems with new install of MP2 Newcomers Forum 3
A [solved] DiseqC problems after upgrade to 1.25 General Support 1
M Problems with VFD Display after standby- Futaba DM140GINK Mini Display 0
R Connection (api) problems with thetvdb.com General 3
123vak123 [solved] 5008: The problem with scrolling text in the "listcontrol" in 4K General Support 22
framug 1.24.0 1.25.0 pre : problem with build ? 1.24 Pre Release 89
J Problems with 1.24 StreamedMP 19
Rob Hexenmeister Navigation problems adding menu buttons to EPG General Support 1
404 [solved] EPG problem after Win10 'upgrade' General Support 1
framug [EPG] Some problems with DVB EPG Improvement Suggestions 49
C strange tuner(?) problem TV-Cards 0
R Problems accessing MySQL database remotely MediaPortal 1 Talk 0
T [solved] Startup problem General 6
G Problems with DRR MediaPortal 1 Talk 1
rsbrux 1.23.0 MPE Manager Problem with LAV Filters Bugreports 2
S Problem with Remote Control One-for-all Streamer Newcomers Forum 6
joecrow Default Wide HD Xmas Theme Problem General Support 3
K Sleep mode problem after formating General Support 2
P IPTV Channel Problem TV-Server 0
C Problem playing videos created on IPhone X and Samsung S9 General Support 2
nominefi Problem scanning channels. General Support 0
E Swedish subtitles problem General 2
G Newb trying MP2, trouble with guide data General 5
G MP1 TV Server "failed to upgrade the database" using MS Sql Server Installation, configuration support 3
geotwticher [solved] Fatal Error 0x80070643 during MP2 installation General 7
Top Bottom