View Issue Details

IDProjectCategoryView StatusLast Update
0008280MMW v4Otherpublic2011-10-14 01:08
Reporterpetr Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version4.0 
Target Version4.0Fixed in Version4.0 
Summary0008280: Devices: incorrect main tree caption
DescriptionWith iPod Nano 5G fw 1.0.2 main tree caption is always 'Highspeed USB device' instead of real device name.
Additional InformationAfter some investigation is because iPodDB.ReadFromFile load name from hidden playlist with dataset = 2 (which isn't exist in my iPod).
Included Library.itdb where's the real iPod name.
TagsNo tags attached.
Attached Files
Library.rar (313,487 bytes)
Fixed in build1424

Activities

Ludek

2011-08-24 23:54

developer   ~0027334

Fixed in build 1423.

petr

2011-08-25 00:12

developer   ~0027335

Verified fixed.

jiri

2011-08-25 07:17

administrator   ~0027337

Just 2 improvements to be made:

1. I'd rather not call the new method for getting device title, unless it isn't found by the old method (it'll be faster this way).

2. Upon a review of few DB's I have here I think that the following would be the best way to get device title:
 2a. Read 'primary_container_id' from 'db_info' table and then get its 'name' from 'container' table.
 2b. In case 2a. fails, try to get 'name' from 'container' table, where 'distinguished_kind' is 0 (or maybe also 'null') and is_hidden is '1'.

Ludek

2011-08-25 10:21

developer   ~0027339

Last edited: 2011-08-25 10:26

Both is fixed in build 1424.

Re: 2a) just to be sure I believe you meant 'primary_container_pid' (not 'primary_container_id'). This way it works fine.

Re: 2b) 'distinguished_kind' seems to be mostly 0 (even for standard playlists) so the only attribute that distinguish is the is_hidden attribute that is '1' in case of the primary container.

jiri

2011-08-25 15:10

administrator   ~0027351

It's necessary to use both, i.e. 'is_hidden'=1 and 'distinguished_kind'=0, because only the first is true e.g. for Podcasts container.

Ludek

2011-08-26 10:01

developer   ~0027364

Fixed in 1424.

peke

2011-10-14 01:08

developer   ~0028248

Verified 1444