Author Topic: Wifi android device synching  (Read 429206 times)

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Haven't done a lot of testing but I did find a bug.

If you start the app and Musicbee isn't started on your PC, the app will crash or minimize when you hit sync preview.

If you start the app with Musicbee started on the PC then close Musicbee on the PC it works normally. Clicking sync preview shows a loading circle for a while and eventually a message pops up stating it can't find a host as you would expect.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10271
If you start the app and Musicbee isn't started on your PC, the app will crash or minimize when you hit sync preview.
If this is in reference to the two error logs I posted earlier today, note that MB is -always- running on my PC before I open the WiFi Sync App.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10271
Can you post a screenshot of the bottom half of the MB device settings screen (I need the bottom half because it scrolls)?
I assume you want to see the playlists storage in relation to the other paths. This was the settings used for the test earlier today


But per BoringName's suggestion a reply or two above, I'm changing it to be a folder under the music folder.


I will report back after another sync.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10271
PROGRESS! Testing with one playlist and no music file changes worked.

I set up a sync which deleted the playlist and its 155 files and added a new (different) playlist. Started the sync and the preview was correct. And then I confirmed I wanted to delete 155 files and got 155 pop-ups. Once the files were deleted (and my sprained finger soaked in ice water) the sync completed successfully. But while music files from the to-be-deleted playlist were in fact deleted, the playlist still remained.

So you've made some great progress to this point. But something really needs to done regarding the multiple pop-ups for deleting or modifying the music files.

Thanks.

Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

BoringName

  • Sr. Member
  • ****
  • Posts: 916
If you start the app and Musicbee isn't started on your PC, the app will crash or minimize when you hit sync preview.
If this is in reference to the two error logs I posted earlier today, note that MB is -always- running on my PC before I open the WiFi Sync App.

No, it's a bug I found when first testing the new version as I had forgotten to start Musicbee first.

PROGRESS! Testing with one playlist and no music file changes worked.

I set up a sync which deleted the playlist and its 155 files and added a new (different) playlist. Started the sync and the preview was correct. And then I confirmed I wanted to delete 155 files and got 155 pop-ups. Once the files were deleted (and my sprained finger soaked in ice water) the sync completed successfully. But while music files from the to-be-deleted playlist were in fact deleted, the playlist still remained.

So you've made some great progress to this point. But something really needs to done regarding the multiple pop-ups for deleting or modifying the music files.

Thanks.

The app prompts for permissions to audio files when you first install it which would include the music folder. It won't have access to anything out side of that. Well, except for the gmmp/stats.xml file that it prompts for if you have GMMP installed. I guess the app should check the folder of any file requested by Musicbee and prompt for access permission if needed. I don't know if you can give folder permissions with scoped storage.

I have mentioned the playlist file not being deleted from the device previously.

As for the delete prompt.... I think I asked before but you don't happen to have the "confirm deletion" checkbox ticked at the top of the device settings window? It's not in your screenshot.

If it isn't ticked, it might be worth ticking it, clicking save then unticking it and clicking save again.

edit: Nevermind, I just did a test with the confirm deletion box checked and it does prompt to delete the files but it just produces 1 prompt asking to confirm deletion of all 9 files (in this case). Once I clicked ok, it deleted everything without prompting again.
Last Edit: August 15, 2024, 06:01:05 AM by BoringName

Babydoll32

  • Full Member
  • ***
  • Posts: 180
In new version of GMMP, you can't set playlist folder manually (or I don't know how to do it).
I got music and synced playlists on SD, cause of 128GB internal storage.
But playlists created by GMMP are stored on internal. It seems, that's the reason why sync app can't do a reverse sync with them.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
In new version of GMMP, you can't set playlist folder manually (or I don't know how to do it).
I got music and synced playlists on SD, cause of 128GB internal storage.
But playlists created by GMMP are stored on internal. It seems, that's the reason why sync app can't do a reverse sync with them.

You can only set a custom playlist folder in the Classic version of GMMP as far as I can tell.

The default path is GMMP\Playlists. You need to put this path into the playlist path field in device settings.

But as with Phred, the sync app probably won't have permissions to sync this folder.

edit:
I can't test this out as the app will not even attempt to sync if GMMP is a trial version but you could try the following -
Set your playlists folder to music\playlists
Do a sync so the playlists are copied from musicbee to the device.
Open GMMP. This should pickup the playlists in the music\playlists folder.
In GMMP, delete one of the songs out of a playlist.
Do another sync with the reverse sync of playlists ticked and see if the deleted song gets deleted out of the playlist in Musicbee.

If that works it means you can modify existing playlists and the only issue is you will not be able to create a playlist on the device and have it sync back.
Last Edit: August 15, 2024, 09:33:00 AM by BoringName

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10271
As for the delete prompt.... I think I asked before but you don't happen to have the "confirm deletion" checkbox ticked at the top of the device settings window? It's not in your screenshot.

If it isn't ticked, it might be worth ticking it, clicking save then unticking it and clicking save again.

edit: Nevermind, I just did a test with the confirm deletion box checked and it does prompt to delete the files but it just produces 1 prompt asking to confirm deletion of all 9 files (in this case). Once I clicked ok, it deleted everything without prompting again.
Yes, I do have "confirm deletion" checked in device settings. On my other two devices, which use the (first) compiled APK fork of the sync app, it asks once to confirm that xxx number of files will be deleted and that's the end of being prompted. On your version, I get the first request for permission and then I get one for each and every file that's to be deleted or modified. I will disable "confirm deletion" for the tablet and see what happens.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

Babydoll32

  • Full Member
  • ***
  • Posts: 180
But as with Phred, the sync app probably won't have permissions to sync this folder.

edit:
I can't test this out as the app will not even attempt to sync if GMMP is a trial version but you could try the following -
Set your playlists folder to music\playlists
Do a sync so the playlists are copied from musicbee to the device.
Open GMMP. This should pickup the playlists in the music\playlists folder.
In GMMP, delete one of the songs out of a playlist.
Do another sync with the reverse sync of playlists ticked and see if the deleted song gets deleted out of the playlist in Musicbee.

If that works it means you can modify existing playlists and the only issue is you will not be able to create a playlist on the device and have it sync back.

Yes. Seems that you‘re right. Switching to GMMP\Playlists it loops a long time, but no reverse sync. Changing back to Music\Playlists and delete songs from existing playlist works.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10271
Not good.  :-(

I disabled "confirm deletion" in MB's device settings and ran a sync that would delete two playlists and the files within.
- I got prompted to delete xx number of files. I confirmed.
- I got the pop-up prompt for each and every file deletion.
- The two "deleted" playlists are still present on the device.

Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Not good.  :-(

I disabled "confirm deletion" in MB's device settings and ran a sync that would delete two playlists and the files within.
- I got prompted to delete xx number of files. I confirmed.
- I got the pop-up prompt for each and every file deletion.
- The two "deleted" playlists are still present on the device.



Go to Settings->Apps->Special App Access->Media Management apps

You might have to use the 3 dots menu within apps to get to the special app access part or you could just search settings for "special".

Click on Musicbee wifi sync and make sure the toggle is enabled.


kimt1688

  • Jr. Member
  • **
  • Posts: 109
Haven't done a lot of testing but I did find a bug.

If you start the app and Musicbee isn't started on your PC, the app will crash or minimize when you hit sync preview.

If you start the app with Musicbee started on the PC then close Musicbee on the PC it works normally. Clicking sync preview shows a loading circle for a while and eventually a message pops up stating it can't find a host as you would expect.



I dropped MusicBee at the connection point and started the application.

I got an error screen like the screenshot.

Since I am using it in a Japanese environment, I'll put the English version of the error message in red.

“Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee.”

should appear at the bottom of the screen in red.

I also checked the source.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10271
Go to Settings->Apps->Special App Access->Media Management apps

You might have to use the 3 dots menu within apps to get to the special app access part or you could just search settings for "special".

Click on Musicbee wifi sync and make sure the toggle is enabled.
Hmmm ... this looks promising. MB WiFi Sync was disabled and is now enabled. Will test within the next half hour. A thank you in advance, BoringName.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10271
Hmmm ... this looks promising. MB WiFi Sync was disabled and is now enabled. Will test within the next half hour. A thank you in advance, BoringName.
It is with deep sadness that I withdraw my thanks to BoringName :-)
I still get the "permission" pop-ups for each music file to be deleted. As a test, I did not tap on 'Allow' nor 'Deny' for any of them. The sync proceeded as if I had allowed, and the files were indeed gone. The playlist file still remains.

Twenty minutes later...
EUREKA!!!
I decided to give it one more try today and did something I learned many, many years ago when dealing with a stubborn tech problem. I powered off the tablet and restarted it. No more pop-up!! I then enabled the 'confirm deletion' in MB's device settings for the tablet and got the initial, one-time, "x number of files will be deleted."  Which they were all without the pop-up.

For me, the only remaining issue is that playlists that are scheduled to be deleted, which the music files referenced in said playlist, -do- get removed, the playlist file itself does not.

All in all, I'm a (mostly) happy person.

Thanks to BoringName and kimt1688.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

BoringName

  • Sr. Member
  • ****
  • Posts: 916
I dropped MusicBee at the connection point and started the application.
I got an error screen like the screenshot.
Since I am using it in a Japanese environment, I'll put the English version of the error message in red.
“Server not found. Ensure MusicBee is running and Windows firewall is not blocking MusicBee.”
should appear at the bottom of the screen in red.
I also checked the source.

If I clear the app cache and start it without musicbee being started, it does give me a message about the server not being able to be found.

But I can repeat the bug by doing the following.
Start musicbee
Perform a sync.
Close Musicbee and completely close the musicbee wifi app.
Open the wife app and attempt to sync or click preview.

The first time this gives me an android message that musicbee wifi app has crashed. Any repeated attempts just seem to minimise the app. If I tap the square button on the phone it lists the musicbee wifi app as if it's still running and if I tap it the sync options screen displays but repeated attempts to sync just minimise it again. Even if I force close the app and try again I get the same result.

I powered off the tablet and restarted it.

Showing your knowledge of the mystic arts!

It doesn't solve as much as it used to but it is still effective occasionally. It always reminds me of the great TV show "The IT Crowd".