View Issue Details

IDProjectCategoryView StatusLast Update
0020399MMASynchronizationpublic2024-07-30 22:26
Reporterrusty Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionreopened 
Product Version2.0.0 
Target Version2.0.1Fixed in Version2.0.1 
Summary0020399: Playlists .m3u files are synced only if /Playlists directory pre-exists
DescriptionSince MMA 2, whenever playlists are synced they don't appear as .m3u files on the device, which means that other apps don't have access to the playlists.

It turns out that if the /Playlists directory already exists on the device's storage locations, then MM will save .m3u files to those locations so that other apps can use the playlists. But, MM will not create the /Playlists directory if it doesn't pre-exist.
Additional InformationPossibly related: https://www.mediamonkey.com/forum/viewtopic.php?t=105239
Tagstodoc-help
Fixed in build1201

Relationships

related to 0020070 resolvedmartin Bidi Sync fails for recovery from a device or is erratic, whenever a device with an existing profile bidi syncs to a new PC 

Activities

rusty

2023-11-22 20:02

administrator   ~0073617

So I tested this out by:
1) Syncing without a /Playlists folder, then creating a Playlists folder and resyncing
--> m3u file is correctly created in the /Playlists folder
(this failed in build 1103 with a Global error2).

2 Clean install on a device with a /Playlists folder
--> m3u file is correctly created

I suppose the only issue is that MM doesn't automatically create the /Playlists folder if it's missing. Is there a way of doing this?

martin

2023-11-23 09:45

developer   ~0073619

Unfortunately, no,
MMA was creating the necessary directories before Android <=10 because it was possible to grant permissions for the entire storage.
Since Android 11 MMA has
access only to existing directories that have been granted permission.
MM only has access where MMA has access.

rusty

2024-02-14 19:01

administrator   ~0074257

I suppose that the only thing we may want to consider is:
1) Notify the user in such cases in the sync confirmation dialog e.g.:
 %directory% folder is missing. %content% will be synced to a private MediaMonkey directory and will not be available to other apps unless you manually create this directory. (note: we may already have a string for this).

2) Consider prompting for full file access in such cases. e.g.
%directory% folder is missing. %content% will be synced to a private MediaMonkey directory and will not be available to other apps. Alternatively, you can manually create this directory or grant MediaMonkey full drive access so that it can create this directory. [Grant]

Regardless, this needs to be documented.

rusty

2024-03-28 16:28

administrator   ~0074847

Last edited: 2024-03-28 16:31

The current 'Missing access' entry in the 'Sync settings' page of the sync config wizard is kind of confusing since it appears as if it's an optional configuration entry. It would be preferable if the 'Sync settins' did not have the 'missing access' option and instead, when the user clicks 'Next', the 'Grant access' dialog would appear (i.e. it should work similarly to the MMA startup wizard).

e.g.

Sync configuration wizard
--- (2) Sync settings ----- (3) Grant access ----- (4) Review settings

MediaMonkey needs access to media folders.

If permission is not granted, new content will be saved to a private MediaMonkey folder that can't be shared with other apps.

Movies . . . . ✓
Music . . . . ✓
Video . . . . _Grant_
Playlists . _Create & Grant_

[Back] . . . . . [Next]


Note:
- if the user taps 'Grant' then the 'To grant access' dialog should appear for the first 'Grant' tapped in the wizard.
- if the user taps 'Create & Grant' then the 'To create a folder and grant access' dialog should appear for the first 'Create & Grant' tapped in the wizard. The two dialogs would essentially be identical except for a single line of text
--------------------------------------
For 'Grant':

To grant access:
A file browser will open.

<Image>
Tap 'Use this folder' or 'Select' to choose the folder.

-------------------------------------
For 'Create & Grant'

To grant access:
A file browser will open.

Tap the 'Create folder' button, and enter or 'Paste' the new folder name (MediaMonkey copies the folder name to the clipboard).

<Image>
Tap 'Use this folder' or 'Select' to choose the folder.
--------------------------------------

Note: there are slight changes to the text in the dialogs. The changes have been made so that the strings can apply to all three usecases: 1) Grant access in the startup wizard 2) Grant access in the sync wizard 3) Create & Grant access in the sync wizard.

martin

2024-03-28 19:36

developer   ~0074849

Fixed in build 2.0.0.1168

rusty

2024-03-29 16:54

administrator   ~0074863

This seems to be working well (Tested on Android 12 and 14, and with folders pre-existing/not pre-existing and internal/external storage).

The only issue is that the permissions dialog appears _after_ 'Review settings' which means that the 'Review Settings' dialog is incorrect as to the location to which files are synced, depending on whether or not the permissions are granted. Is it possible for this to appear prior to 'Review Settings'?

martin

2024-07-19 14:04

developer   ~0076352

Fixed in build 2.0.1.1201

peke

2024-07-30 22:26

developer   ~0076487

Verified 1202