yellowbluesky / PixivforMuzei3

Best Pixiv plugin for Muzei 3
GNU General Public License v3.0
173 stars 15 forks source link

Don't redownload image after deleting it #190

Open mDuo13 opened 2 years ago

mDuo13 commented 2 years ago

I find that sometimes an image I don't care for gets downloaded, so I click "Delete this artwork" in the Muzei interface. A few hours later the same artwork is in use again, probably because it's the most recent post from an artist I follow.

It would be nice if the app kept a cache with IDs of recently deleted artworks and used those to skip downloading the same images again.

(I'm not sure if deleting from the Muzei interface and deleting from the Pixiv for Muzei interface work the same way in this regard.)

yellowbluesky commented 2 years ago

Deleting the artwork from Muzei and from within the app is the same thing, the Muzei deletion action is an action that the app submits for Muzei to display.

The app does indeed keep a list of deleted artworks in order to not download them again.

Can you let me know the artist id/name or artwork id of the recurring artwork?

One potential simple explanation could be the artist first posting the image on its own, and then again as part of an album

mDuo13 commented 2 years ago

It seems to happen quite consistently to me. One example image where that happened recently is https://www.pixiv.net/en/artworks/100382037 (warning: it's a risque loli swimsuit illustration; you can see why I didn't want it on my home screen). Based on this and other cases, it's not the one where the image is posted in an album.

FWIW I'm on Muzei 3.4.5-rc03 and Pixiv for Muzei 3.4.5.1, both installed from F-Droid, on Android 12.