Onion icon indicating copy to clipboard operation
Onion copied to clipboard

Activity Tracker : update boxart after the game has been added to the database

Open schmurtzm opened this issue 2 years ago • 11 comments

Currently adding a box art (with Scraper or else) doesn't actualize the game cover in Activity Tracker.

This is due to the fact that Activity Tracker stores the image path in a db instead of generating the image path dynamically.

schmurtzm avatar Oct 20 '23 11:10 schmurtzm

I think we should just get the box art image dynamically (by checking if the png exist) - instead of having to keep a db up-to-date

Aemiii91 avatar Oct 20 '23 12:10 Aemiii91

@schmurtzm I made a fix for this issue here: https://github.com/OnionUI/Onion/pull/1305

Would love feedback! Particularly around on if we should update the db to no longer have an image path (and, if so, how to do that).

theUnBurn avatar Dec 06 '23 05:12 theUnBurn

@schmurtzm I made a fix for this issue here: #1305

Would love feedback! Particularly around on if we should update the db to no longer have an image path (and, if so, how to do that).

I love the mr https://github.com/OnionUI/Onion/pull/1305 please merge it to next onion dev release please

nenjack avatar Feb 11 '24 02:02 nenjack

@Aemiii91 how can I support MR #1305

nenjack avatar Feb 12 '24 09:02 nenjack

Would love feedback! Particularly around on if we should update the db to no longer have an image path (and, if so, how to do that).

I wouldn't remove the field in db or update it, this way:

if someone installs newer onionos, has some activities in db, then decides to downgrade, his db will still work with older onion (backwards compatibility)

nenjack avatar Feb 19 '24 22:02 nenjack

Hi, I have a problem with this PR... Curiously I'm not able to triggers the initial problem . Hum...😅 Quickly tested the actual Activity Tracker and I don't see any problem : changing the cover of a game impacts Activity Tracker too. I don't remember in which case the fact that Activity Tracker keeps the path of the image is a problem anymore. 😶

schmurtzm avatar Feb 20 '24 12:02 schmurtzm

Hi, I have a problem with this PR... Curiously I'm not able to triggers the initial problem . Hum...😅 Quickly tested the actual Activity Tracker and I don't see any problem : changing the cover of a game impacts Activity Tracker too. I don't remember in which case the fact that Activity Tracker keeps the path of the image is a problem anymore. 😶

in that case @schmurtzm at least please reopen https://github.com/OnionUI/Onion/issues/1419 because that was a bit different (missing images on games, dont update, dont show, nothing, in activity tracker, but they are scraped prior, more details in linked issue)

nenjack avatar Feb 21 '24 04:02 nenjack

the first example I recall is Tony Hawk's Pro Skater 4 on PS

nenjack avatar Feb 21 '24 04:02 nenjack

@Aemiii91 any progress on this one if this is a duplicate of 1441 as you said there?

nenjack avatar Feb 25 '24 22:02 nenjack

@schmurtzm did you try this on any PSX games like I said in my issue? did you try this with THPS4?

also, see:

https://github.com/OnionUI/Onion/assets/3052357/4ebe536c-aa32-4fcb-8f52-5d324136828a

nenjack avatar Feb 25 '24 22:02 nenjack

Thanks for the feedback, Lets keep it constructive.

XK9274 avatar Feb 27 '24 17:02 XK9274