AntonyCorbett / JWLMerge

Utility to merge jwlibrary backup files
MIT License
194 stars 33 forks source link

Remove Favourites from the Merge file to prevent overwriting the JWL Favorites #53

Closed timjobutler closed 2 years ago

timjobutler commented 2 years ago

Is your feature request related to a problem? Please describe.

I use JW Library on my Samsung phone (Android 9), Samsung tablet (Android 11) and laptop (Windows 10). On each device, I have configured a different set of Favourites. I have found that once the JWL backup files are in JWL Merge, using the Remove Favourites options worked well (see screenshot below). JWL_Remove-Favourites However, because the Favourites section of the resulting merge file is blank, when I import the merged file into the JWL app, my Favourites configuration is wiped out.

Describe the solution you'd like

Add a setting to JWL Merge to remove the Favourites section from the resulting merged file to preventing overwriting the Favourites configuration within the JWL app.

Describe alternatives you've considered

Any other option to prevent the merge file overwriting the Favourites configuration upon restoring the merge file

Additional context

If I do not use the Remove Favourites function, all the Favourites get merged and I end up with a colossal collection of Favourites across all devices. This undoes the work that I have gone to individualise the Favourites section of the app per device.

AntonyCorbett commented 2 years ago

@timjobutler When JWL restores a backup file it entirely overwrites its database.

timjobutler commented 2 years ago

Is there any method to remove the Favourites element from the database of each backup file prior to merging them together? I either suffer the same problem as described as in issues #21 and #33 or have my Favourite mirrored on all of my devices.

Happy to explore a solution that I solely implement if it is not possible to achieve the desired results in JWL Merge.

Thanks Antony

AntonyCorbett commented 2 years ago

Is there any method to remove the Favourites element from the database of each backup file prior to merging them together?

@timjobutler Yes, that's exactly what the Remove Favourties command does.

timjobutler commented 2 years ago

As mentioned in my OP, I use the Remove Favourites function prior to merging the files together.

However, since this action has left the Favourites section of the database empty (apologies for my poor technical explanation), it overwrites the existing Favourites in the app. Is there a way include the Favourites back into the merged file?

AntonyCorbett commented 2 years ago

The Remove Favourites command only removes the favourites from the selected backup file. So, if you have 2 backups and remove the favourites from one of them, then the favourites from the other backup will be included in the resulting merge.

AntonyCorbett commented 2 years ago

@timjobutler I'm closing this issue, but if questions remain, please reopen.