View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008280 | MMW v4 | Other | public | 2011-08-24 10:58 | 2011-10-14 01:08 |
Reporter | petr | Assigned To | |||
Priority | urgent | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 4.0 | ||||
Target Version | 4.0 | Fixed in Version | 4.0 | ||
Summary | 0008280: Devices: incorrect main tree caption | ||||
Description | With iPod Nano 5G fw 1.0.2 main tree caption is always 'Highspeed USB device' instead of real device name. | ||||
Additional Information | After 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. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Fixed in build | 1424 | ||||
|
Fixed in build 1423. |
|
Verified fixed. |
|
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'. |
|
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. |
|
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. |
|
Fixed in 1424. |
|
Verified 1444 |