This should probably be in the stickied post about 2 way syncing but this thread seems to get the most eyes on it so I will post it here and link to it from the stickied thread.
The link below is a working version of the wifi api that allows 2 way syncing with both of the supported music players, GoneMad and PowerAmp.
MB Wifi PowerAmp Sync enabledThis was tested on an Android 14 device with the trial version of PowerAmp.
My partner has been using it with GoneMad for a long time now, although that device is Android 12 I'm confident it will also work on Android 14 devices.
When you first launch the app it will ask for file permissions. It will not work without them. You need to click allow then select the MusicBee app and enable the toggle for allow access to all files. Then click the back arrow a couple of times to get back to the app.
There are a few issues listed below.
1. GoneMad needs to be unlocked for the reverse syncing of playcounts and ratings to work. You can reverse sync playlists without unlocking it, more on that further down. PowerAmp does not seem to have any restrictions in the trial version other than it runs out after 15 days.
2. This uses the all file access permission so google will not accept it in the play store. It has to be installed manually. Hopefully kimt1688 will be able to provide a play store version in the near future.
3. PowerAmp has a very silly issue with playcounts. It will only record a playcount if it shifts to playing another song. eg) if it's playing Song A and when that ends it starts playing Song B, Song A will get a play count recorded. If it's playing Song A and stops playing when it ends, Song A will not get a play count recorded but it does update the last played time (its pretty dumb and has been an issue for years). if you set a playlist to play through and it stops playing after the last song in the playlist has played, the last song in that playlist will not get a play count.
On the main player window, under the song name there is a repeat button (second from the right) if you hold your finger on this and select Advance Category this will make PowerAmp always start playing another song when the current playing song ends, this should mitigate the problem most of the time. If you are playing a playlist, advance category will make it start playing the next playlist. If it's the last playlist on the device it will go back to playing the first playlist.
4. Ratings in PowerAmp default to thumbs up/down, these do not sync back. You need to change the PowerAmp settings "Rating Type" to "5 stars". They sync back fine after that. You can test by changing a rating and doing a sync preview, even if the play count or last played hasn't changed it will register the rating change.
PlaylistsPowerAmpReverse syncing of playlists can't be done with PowerAmp as any playlists created in the app are not saved into a separate folder. They are just stored in the PowerAmp database, this can be queried but I wouldn't know where to start to have this work correctly. PowerAmp does monitor the music folder for Playlists and adds them as a playlist file. These can be added and deleted during the sync, you just can't add a playlist in PowerAmp and have it appear in MusicBee. You can remove a song from an existing playlist in Poweramp but when you do that it changes the layout and Musicbee thinks the playlist file is now empty. So reverse syncing of playlists for PowerAmp will remain disabled.
GoneMadThere are 2 versions of GoneMad on the play store. Classic and Standard. Both are trial versions and need to be unlocked to reverse sync ratings and play counts.
GoneMad saves playlists in a default folder. In standard this can't be changed but it can be changed in the Classic Version.
For standard you need to set the "Playlists Path" in MusicBee's device settings for your device to gmmp\playlists
For Classic you can set it the same or you can specify your own, like Music\playlists\ but you need to make sure you set GoneMad Classic to the same folder.
In the GoneMad app go to Settings->Playlists->Playlist Storage Path
Unfortunately it doesn't have a folder selection dialog so you have to enter the path manually and it has to be the full path like this -
storage/emulated/0/Music/Playlists
Reverse syncing for playlists in GoneMad seems to work fine. I was able to alter playlists by removing songs or create brand new playlists and they all synced back to Musicbee ok.
Other IssuesBecause playcounts are not actually stored in the file in Musicbee, the music players do not receive the initial play count. When you first load the app all songs have a play count of zero. I can't find the play count listing in GoneMad but you can see the play count for each song in PowerAmp. The playcount listed in the apps will only be the number of times the song has been played through the app. The wifi sync just appends this playcount to the play count in Musicbee whenever a song has been played. I don't know how Musicbee keeps track of what are new playcounts, I guess it must compare last played timestamps and work out the difference.
The way it works can cause a problem though. I noticed if I had a song in PowerAmp with a play count that had already been updated in Musicbee, that play count would get duplicated if I uninstalled the Musicbee wifi app and reinstalled it and did a sync. So if you reinstall the Musicbee wifi app for any reason, make sure you reset the music player database otherwise you will get a lot of duplicated play counts.
There is a bug with "delete files that are not on the auto-sync list from device". if you have this option ticked for your device in Musicbee and delete a playlist from Musicbee. When you do a preview sync in the Wifi App that playlist will get deleted. It only seems to be an issue with playlists, any songs that need deleting will display in the preview window and will not be deleted until you do a full sync. But playlists will get deleted even with just a preview.
I believe this is a bug on Musicbee's end and not the app as Musicbee sends it commands on what to delete etc...I will check with Steven.The above issue has been fixed with the patched version listed here -
https://getmusicbee.com/forum/index.php?topic=41468.msg225443#msg225443