View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016870 | MMW 5 | FileMonitor / Find Missing | public | 2020-08-05 22:17 | 2020-10-16 18:07 |
Reporter | peke | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | sometimes |
Status | closed | Resolution | reopened | ||
Product Version | 5.0 | ||||
Target Version | 5.0 | Fixed in Version | 5.0 | ||
Summary | 0016870: iTunes DB do not import correctly | ||||
Description | Some statistics like Play/skip counts and Last played are not imported into MM library on scan and iTunes Library import. In ticket User Supplied MM.DB and iTunes Library XML. One of obvious files that contain needed info in XML file and not imported in MM is file under iTunes library "<key>5324</key>" that coresponds to MM.DB Track ID "5403" from MM.DB songs Table. | ||||
Additional Information | FHT-314-38967 | ||||
Tags | No tags attached. | ||||
Fixed in build | 2270 | ||||
|
The problem is representation of the path in the 'iTunes Music Library.xml' , it has path like: <key>Location</key><string>file://localhost//Sjefsdisken/media/Music/iTunes/Music/Cornelis%20Vreeswijk/M%C3%A4ster%20Cees%20Memoarer%20vol.%205/14%20Ballad%20om%20polisen.mp3</string> which MM translated to \\Sjefsdisken\media\Music\iTunes\Music\Cornelis Vreeswijk\Mäster Cees Memoarer vol. 5\14 Ballad om polisen.mp3 But in MM.DB the path of the track is represented as [media]\Music\iTunes\Music\Cornelis Vreeswijk\Mäster Cees Memoarer vol. 5\14 Ballad om polisen.mp3 where [media] seems to be a mapped drive with drive letter i.e. MM fails to pair the mapped drive with '\\Sjefsdisken\media\...' I think that the solution would be to scan the files under UNC path also in MM (paths like '\\Sjefsdisken\media\...') and then the iTunes import would start work. @Peke: Can you instruct the user how to change the mapped drive to UNC path for the import to work? |
|
Asked more info from user in ticket. |
|
If the path is scanned as UNC in iTunes (\\Sjefsdisken\media\) and as mapped drive in MM (Z:\) then MM has no way how to find that it is actually the same path/drive and thus the matching process during import has failed. Solution is to scan the files under UNC path also in MM (paths like '\\Sjefsdisken\media\...') and then the iTunes import would start work. So a KB article should cover this. |
|
re 0016870:0059825: That is not actually true and as described in 0005548 sample code it is very easy to match mapped drive letter to UNC path. Even reverse is possible to fetch local shared folders and match/translate them to UNC path see 0005548:0051461. I would rather keep this as is for now and see what we can improve for MM5.1 UNC/Local path matching can also benefit by MMS too if correctly implemented. |
|
OK, good catch Peke, I forgot about the ExpandUNCFileName function, seems that should be usable for the matching, assigned back to me. Actually we have already used the similar solution with ExpandUNCFileName in 0015191 |
|
Fixed in 2270 and tested this way: 1) Created drive Z:\ that is mapped to \\LUDEK-PC\MP3\ 2) Opened iTunes and added folder \\LUDEK-PC\MP3\ to iTunes library, created some playlists in iTunes and played some tracks 3) Exported the XML library from iTunes 4) Run MM and scanned only drive Z:\ into the MM library and import from iTunes was checked 5) At the end of scan MM asked me to select the exported iTunes XML file, so I selected the file => all tracks have been matched correctly and the iTunes playlists and playcounts have been imported The same works when the tracks are scanned as Z:\ in iTunes and as \\LUDEK-PC\MP3\ in MediaMonkey |
|
Verified 2270 Used steps from 0016870:0059859 to create test environment with 20k tracks with mixed scan (eg. some UNC some Mapped Drive letter) then removed Mapped and scanned UNC in MM5 All paired then reset DB and do that with Mapped drive letter and all as paired Correctly. FYI it works great both ways, I tried and it resolved/paired my old mapped scans to UNC path on NAS. TEST NOTE: Path must be Mapped in order that it works as MM needs to pair MApped drive letter to UNC path. |