Closed KawaiiZapic closed 3 years ago
Hi there, thanks for raising/suggesting this issue. I'll have a look at things now
How downloadFile() currently works: https://github.com/yellowbluesky/PixivforMuzei3/blob/0e1a7c2ad2089596c9b46df50dfcd6975a1100a7/app/src/main/java/com/antony/muzei/pixiv/provider/PixivArtWorker.kt#L227-L228
I can change the code so that it only ever downloads to one place.
I'll try this out and will let you know of the result
Behaviour changed. Assuming a situation where "Store into external storage is checked"
Previously, copies of the artwork could be found at:
Now:
So far, I've removed one copy.
I'll see if I can also get rid of the artwork copy at /data/data/com.antony.muzei.pixiv. For this one I'm not so sure. I thought that overriding Muzei API's openFile() function in the MuzeiArtProvider() class would work, but it doesn't appear to be working??
Feature released to production.
Commit added in 8d4e975fb12cfc985e464b40bf27a975aee59786
The copy made to /data/data/com.antony.muzei.pixiv cannot be avoided, this is somethign that Muzei does
I want to review every images downloaded so I won't enable clear cache,and I wanna to share images to my friends so I enabled store image to public storage. Is there any problem to read images from public storage directly?
I think is a good way to reduce storage space, or there are a lot of duplicate images in my device.