Syncing problems

35 views
Skip to first unread message

Etienne

unread,
Dec 30, 2016, 11:59:23 AM12/30/16
to Autoplaylists for Google Music

Hello,

I used to use the old syncing method and it worked perfectly but I have problems with the new version since it was removed : 
- I put a limit of 500 songs and the playlist contains 1000 songs
- I've got a lot of duplicated songs (see screenshot). I am sure that these songs should appear only one time.

I don't know if it has something to do with it but there is a warning in the log.

Thanks !

Etienne


Autoplaylists for Google Music

unread,
Dec 30, 2016, 12:27:50 PM12/30/16
to Autoplaylists for Google Music, thierry.e...@gmail.com
Hi there! Sorry the switch to the new code didn't go well! There were only a handful of people still running it, so I decided to bite the bullet, haha.

The situation with duplicates is a known problem, though I haven't yet figured out the root cause: https://github.com/simon-weber/Autoplaylists-for-Google-Music/issues/120. I think we can get you back into a good state in the mean time, though:
I'm hoping that once the playlist resyncs it'll be back to what you expect. Let me know how it goes!

thierry.e...@gmail.com

unread,
Dec 30, 2016, 1:07:10 PM12/30/16
to Autoplaylists for Google Music, thierry.e...@gmail.com, autoplaylists-f...@googlegroups.com
Thank you for your answer !

I cleared the playlist and reloaded the extension.

It synchronized well one the first time but not the second time (10 minutes later) : I have 1000 songs again and it seems that each song is twice in the playlist.

Simon Weber

unread,
Dec 30, 2016, 1:27:21 PM12/30/16
to Autoplaylists for Google Music, thierry.e...@gmail.com
Huh, that's unexpected. I wonder if the songs are true duplicates (meaning that there may be an issue with the playlist cache showing it as empty during the second sync) or lookalike duplicates (eg there's one copy of the library song and one copy of the store song).

If it's not too much trouble, can you repeat the steps from above, follow the instructions at https://github.com/simon-weber/Autoplaylists-for-Google-Music/wiki/Debugging#viewing-your-logs to save your logs to a file, then send them to me? Included should be a set of lines that look like "to add...to keep...to delete..." that should point us in the right direction. Warnings and errors (besides the "mixed reorder" warning, that one's ok) are also of interest.

thierry.e...@gmail.com

unread,
Dec 30, 2016, 1:48:25 PM12/30/16
to Autoplaylists for Google Music, thierry.e...@gmail.com
I just sent the log by mail, thank you !

Simon Weber

unread,
Dec 30, 2016, 2:15:41 PM12/30/16
to Autoplaylists for Google Music, thierry.e...@gmail.com
Excellent; thanks.

Each sync added 500 songs and didn't keep or delete any tracks. Unfortunately, I don't have logging on the detected size of the current playlist during the sync, so I'm not sure if the cache is just empty or not.

I did manage to find one possible cause, though. Google's method of declaring the playlist's order is to associate an int with each entry. I had assumed these ints were unique, but it turns out they're not. So, because I'm storing the playlist as a sorted map of orderInt onto the entry, any entries with duplicate order ints will be dropped from the cache (except for the last one we see).

This is easy enough to fix, but I'm not sure it's causing your problem: I'd expect it to add only a few duplicates. I think I'll push a release shortly with this problem fixed, and also add in enough logging that we'll be able to track down your problem if it doesn't fix it for you.

Simon Weber

unread,
Dec 30, 2016, 4:27:21 PM12/30/16
to Autoplaylists for Google Music, thierry.e...@gmail.com
Ok, version 5.0.1 is going out now. It fixes the problem with identical absolutePositions, makes syncs clean up duplicate tracks, and adds some more logging around the cache.

Let me know how it works out for you.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages