Guerra24 / LRReader

A feature-complete reader and client for LANraragi
GNU General Public License v3.0
88 stars 5 forks source link

Ability to sync duplicate exceptions between multiple computers #37

Closed ChronoStriker1 closed 5 months ago

ChronoStriker1 commented 1 year ago

There may be a way to do this but I didn't see anything that jumped out at me. I occasionally do a deduplication from two different computers. Due to some Manga being released in chapters setting exceptions can be a large task. Since I am doing it from two computers I have to do the same exceptions multiple times, when a series have 20 chapters released as volumes I'd like to only have to do this once (granted it would be nice to be able to group a series of volumes or chapters into a single entry, but that's more of a request for lanraragi itself then lrreader.)

Guerra24 commented 1 year ago

Hello!

This used to be a thing when MS still hadn't "Killed" UWP, but now... It's quite hard. I could take a hit at it and make my own account/settings/sync platform thing, but I don't really have the time. I have thought about it, tho.

As of right now, what you could do is go to the following paths and copy the entire profile json or only the field MarkedAsNonDuplicated for each profile which holds the exceptions.

For store C:\Users\<user>\AppData\Local\Packages\63705Guerra24.LRReader_pd6jswmanqqw0\LocalState

For sideload C:\Users\<user>\AppData\Local\Packages\Guerra24.LRReader_3fr0p4qst6948\LocalState

ChronoStriker1 commented 1 year ago

That will work fine for me but a quick and dirty way that I think most people would be ok with is if we can manually set the path, that way in my situation I would sync it to a google drive location or even a network share that both computers have access to.

On Sep 23, 2023, at 1:30 PM, Guerra24 @.***> wrote:

Hello!

This used to be a thing when MS still hadn't "Killed" UWP, but now... It's quite hard. I could take a hit at it and make my own account/settings/sync platform thing, but I don't really have the time. I have thought about it, tho.

As of right now, what you could do is go to the following paths and copy the entire profile json or only the field MarkedAsNonDuplicated for each profile which holds the exceptions.

For store C:\Users\\AppData\Local\Packages\63705Guerra24.LRReader_pd6jswmanqqw0\LocalState

For sideload C:\Users\\AppData\Local\Packages\Guerra24.LRReader_3fr0p4qst6948\LocalState

— Reply to this email directly, view it on GitHub https://github.com/Guerra24/LRReader/issues/37#issuecomment-1732370903, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASR7CB7Y3RWHDF6WKI7CX3X34MDXANCNFSM6AAAAAA4QSZ3XQ. You are receiving this because you authored the thread.

Guerra24 commented 1 year ago

After checking some docs, this seems doable. I could let users pick a file path where the profile config would be stored. The main issue is retaining read/write access to it, but that appears to be covered already. I will take a look.

For reference so I don't forget: https://learn.microsoft.com/en-us/uwp/api/windows.storage.accesscache.storageitemaccesslist?view=winrt-22621

Guerra24 commented 1 year ago

It should work with local drives, network drives, network paths and One Drive/Google Drive. You can try it on the nightly version. It might be missing an option to use an existing file, but we will see if it is really needed.

image

Guerra24 commented 5 months ago

v1.8.2 is now out with this change!