View Issue Details

IDProjectCategoryView StatusLast Update
0011552MediaMonkey for AndroidSynchronizationpublic2013-12-30 23:53
Status closedResolutionfixed 
Product Version1.0.4 
Target Version1.0.4Fixed in Version1.0.4 
Summary0011552: Metadata doesn't update in MMA during the pairing process
DescriptionIf a device doesn't have an MMA database, but it does have many tracks that were synced via MMW or another application, then when MMW syncs with MMA for the first time, track metadata isn't updated. This results in any fields that aren't saved to tags (e.g. ratings, volume leveling, etc.) not being available to MMA, despite the fact that the tracks are paired. e.g.

1 Wi-Fi sync 5 playlists to MMA
2 Delete the MMA database and /MediaMonkey directory (e.g. due to corruption on the device)
3 Re-install new version of MMA and perform WiFi Sync
--> The tracks are paired as expected BUT ratings information is missing, as is volume leveling, etc.

This explains the cases in the forums where users indicate that:
-volume leveling isn't working
-ratings are missing

Edit: Note that the tracks _are_ paired, as evidenced by the fact that an edit to the metadata in a track correctly syncs to the track's pair. I did notice, though, that upon syncing for the second time, the Dialog re. First-time synchronization appeared even though it shouldn't have. This did not re-appear on subsequent syncs.
TagsNo tags attached.
Fixed in build200


related to 0011573 closedmarek 'Since this is your first time connecting...' message appears after first time 



2013-12-09 23:09

developer   ~0038629

Last edited: 2013-12-10 13:24

View 5 revisions

Assigned to me, as discussed with Marek this is a regression caused by the faster WiFi sync workflow (when MMW serves only tracks with changed metadata or new tracks).

The fix will be relatively easy and regressionless (on MMW side).

EDIT: It is regression only partially, this has never worked for tracks that were not on MMW sync-list.


2013-12-10 13:23

developer   ~0038653

Last edited: 2013-12-10 14:38

View 8 revisions

Fixed in MMW build 1678.

Neverthless note that this change has significant performance impact, MMA needs to update the metadata from MMW to MMA (which seems to take quite long according to my tests), also it re-downloads all tracks that needs auto-conversion or their size differs.
That said the pairing process takes much longer than before.

Currently if there is 3000 tracks in MMA that have not been paired yet, then on the initial sync MMA pairs all 3000 tracks although sync-list is empty.
That's probably unacceptable, MMA should pair the tracks once are added to sync-list, but that would require further workflow changes on both MMA/MMW sides.


2013-12-10 14:46

developer   ~0038657

Based on IM discussion with Rusty:

The workaround would be to communicate to the user that this is happening. e.g. "New media files have been detected on the device. Please wait while they're updated with metadata from your Library." Note: I assume that this would only be a one-time penalty whenever tracks that are unpaired are detected.

Note that only tracks that are on sync-list should be re-downloaded if their size differs (as currently designed).


2013-12-10 15:04

administrator   ~0038659

Last edited: 2013-12-10 15:08

View 3 revisions

I think that a performance penalty (within reason--e.g. .02s/track) is acceptable, provided that the user is given some feedback about what is happening. e.g. during the Analyzing phase "Matching new files on the device with the library." And provided that this is a one-time penalty that only occurs for tracks that are unpaired.

The question was also raised as to whether this pairing process should replace newly paired files so that they match the tracks in the library based on size/auto-conversion settings. e.g. if TrackX is found in MMA @320kbps and it also exists in MMW @128kbps, what should occur? I would propose that matching tracks shouldn't be replaced during the pairing process--only the metadata should be updated to avoid such problems.

Finally, my preference (although this may not be possible at this time) would be that _only metadata for items on the auto-sync list_ should be updated. It doesn't make sense--both from a performance perspective, and from the perspective of user expectations--that the pairing process should update metadata of tracks that aren't on the sync list.


2013-12-10 15:20

developer   ~0038660

Last edited: 2013-12-10 15:21

View 3 revisions

OK, I adjusted it on MMW side:

In older builds (pre 1678) MMW posted only track identifiers in the pairing reply and thus MMA updated only the track identifier into MMA DB.

Starting from build 1678 MMW posts also track metadata in the pairing reply and thus MMA can update also rating, volume levelling etc. in the same SQL update. So it shouldn't degrade performance much and in addition user will be informed about it: "New media files have been detected on the device. Please wait while they're updated with metadata from your Library."

Assigned to Marek to implement it on MMA side.


2013-12-10 15:37

administrator   ~0038663

Note: the following string would probably fit better with the other Analyzing strings: "Matching new files on the device with the library."


2013-12-10 23:52

developer   ~0038683

Fixed in build 198


2013-12-10 23:57

developer   ~0038685

Test note: needs to be tested with MMW build 1680+


2013-12-11 09:45

developer   ~0038691

Verified MMW 1680 and MMA 198 using smaller number of tracks approximately 600+ to test functionality.


2013-12-11 11:33

developer   ~0038696

Last edited: 2013-12-11 11:35

View 3 revisions

Tested MMW 1680 and MMA 198 and it does not work for me, MMA is saying "Matching new files on the device...", but after that the rating is not updated in MMA.

What is worse, that MMA is trying to match the unmatched tracks on every sync now! This is a regression. In previous MMA builds if a track couldn't be matched (does not exists in MMW) then MMA was not trying to match it again on next sync.


2013-12-11 12:13

administrator   ~0038697

Last edited: 2013-12-11 12:47

View 2 revisions

There's one more tweak needed as well: The message is shown on just one line and so it isn't shown completely.


2013-12-11 12:38

developer   ~0038698

Last edited: 2013-12-11 13:47

View 6 revisions

Hmm, it was caused by a bug on MMW side when MMW was not serving complete info (including rating) when device profile was not deleted beforehand.
this was most probably the reason why it worked fine for Peke.

Fixed in MMW 1681.


2013-12-11 14:11

developer   ~0038700

Assigned to Marek to update the progress bar.

As discussed over IM, MMA should indicate rather individiual Title/Artist, if there is thousands of tracks then the progress looks like frozen (because it e.g. downloads lyrics/artwork for each track).


2013-12-11 14:42

administrator   ~0038701

Test note: metadata pairing should be tested for all fields in MMA, including multiple attribute fields (Genre, Artist, Composer)


2013-12-11 20:05

administrator   ~0038710

Last edited: 2013-12-12 07:40

View 6 revisions

I'm still trying to figure this out, but somehow MMA/MMW deleted the content of all playlists that are on the auto-sync list--despite the fact that I never explicitly approved synchronization of Playlists from MMA to MMW.

At this point, my theory is that the device playlists were emptied somehow during the pairing process and copied to MMW--but I'm really not sure how this occurred.

EDIT: I can't seem to replicate this. Pairing seems to be working correctly for all tracks. The only possibility I can think of is that an earlier sync with build 198/and MMW 1680 caused some sort of corruption. Can any devs think of a way in which playlist content could be deleted in MMA (e.g. by terminating a sync?), and then transferred to MMW _without confirmation_?

EDIT2: when I did the initial sync it was as follows:
1 Deleted /MediaMonkey directory and App data, leaving tracks and .m3u files that had been synced by 198
2 Installed 199 and ran MMA
3 After scan, proceeded to sync
--> pairings occurred
--> prompt to Update playlists from MMA to the server!! (even though the content should have been identical to the server)
4 I _accidentally overlooked the prompt_ and accepted it
--> playlist content was transferred from MMA to MMW (and presumably deleted)


2013-12-12 06:54

developer   ~0038720

Last edited: 2013-12-12 09:54

View 15 revisions

As we discussed over IM, the pairing process in 1680 was faulty (fixed in 1681), it explained issue 0011588, but I we can't see how playlists could be emptied in MMW without confirmation. Rusty also thought about the dummy PLA: 0011550 that are created for him, but it again doesn't explain how they could get to MMW without confirmation.

In addition all the empied playlists has PC change: 2013-12-09 21:46:52 in the log, so it doesn't look like a consequence of build 1680, they were changed earlier on 2013-12-09 21:46:52 and all at once in one second. But Rusty indicated that they were not empty on 10th which contradicts, but maybe they were cleared after (the log was earlier).

EDIT: Most probable cause is that MMA picked the M3U playlists and added them to its new database, therefore new playlist were created in MMA (with new timestamp) and thus were suggested to sync back to MMW, Rusty overlooked it in the 'Updates' or 'Uploads' tab.

During the process on MMW (or MMA?) side, MMW (or MMA?) could not find/match corresponding tracks, therefore the playlists were added as empty (cleared).


2013-12-12 10:39

developer   ~0038727

Unfortunately, playlists have newer file timestamp so they are synced to MMW. Timestamp cannot be changed on non-rooted devices...this is a known Android bug ( ). This is problematic for MediaStore too. We store correct timestamp in DB. But when you delete is insolvable.


2013-12-12 14:47

administrator   ~0038733

But isn't this issue (deletion of playlist content due to a combination of the fact that playlist timestamp on the device will always show up as more recent, and failed matching of tracks on the playlist) liable to occur for users who have synced to their Android devices using MMW without having MMA installed?

If yes, would it make sense that during the initial WiFi sync the date of paired playlists is set to match the date of playlists that exist in the DB? (In fact, I'm not sure if any metadata should update to the library on an initial sync)


2013-12-12 18:33

developer   ~0038736

Fixed in build 200

Timestamp of playlists synced newly from MediaStore is set to 0 (because it is not reliable). This way these playlists are not propagated to MMW. But it is slightly slower because this kind of playlist has to be compared item by item during MediaStore sync.


2013-12-30 23:53

developer   ~0039072

Verified 213