BDAddons icon indicating copy to clipboard operation
BDAddons copied to clipboard

[FavoriteMedia]: Local Database Cache All Media doesn't work.

Open SoCalledFunnyman opened this issue 1 year ago • 1 comments

Discord Build

Stable

Discord Version

stable 315432 (4e1f4fc)

Plugin Version

1.10.1

Steps To Reproduce

1 - Click "Local Database" 2 - Click "Cache All Media"

Describe the bug

It just straight up doesn't work.

I've left it running overnight multiple times, and it hasn't done anything at all. I've tried restarting Discord and doing it multiple times, and it hasn't done anything at all. The "Cache All Media" thing permanently remains as the spinning blocks, and all media previews remain as the default X that Discord uses or the "missing image" placeholder (the one that looks like a sheet of paper with a diagonal slash through the bottom right of it). See attached screenshots for what I mean.

Maybe this is only a me thing. Maybe I'm just doing something wrong. But I followed the instructions I was given to the best of my knowledge and ability, and it didn't work.

Honestly I'd prefer if the Refresh URLs thing came back, but from what I read in the other bug reports that seemed related to this, that was apparently something that was just a temporary measure that stopped working as Discord updated.

Screenshots

image image

SoCalledFunnyman avatar Aug 05 '24 21:08 SoCalledFunnyman

I have been waiting to see this fixed but it is so annoying and i honestly would rather go back too because this i cant even see what im clicking on and its like Russian roulette fix pls

Rexxxyxyxy avatar Aug 11 '24 20:08 Rexxxyxyxy

bro i think he abandoned this

Rexxxyxyxy avatar Aug 23 '24 04:08 Rexxxyxyxy

@SoCalledFunnyman Can you share your config.json so that I can test out thx

Dastan21 avatar Aug 23 '24 09:08 Dastan21

mines does the same do you want me to share mine

Rexxxyxyxy avatar Aug 25 '24 13:08 Rexxxyxyxy

Please do

Dastan21 avatar Aug 25 '24 13:08 Dastan21

[FavoriteMedia.config.json]

Rexxxyxyxy avatar Aug 25 '24 13:08 Rexxxyxyxy

@Rexxxyxyxy Using your config.json, caching worked fine on my computer, it has cached a total of 943. A few previews won't load but it's because they're completely dead. And while caching, my RAM and CPU% were normal. Idk tbh...

Dastan21 avatar Aug 25 '24 14:08 Dastan21

image

Rexxxyxyxy avatar Aug 25 '24 14:08 Rexxxyxyxy

still wont for me what do i delete and readd or what?

Rexxxyxyxy avatar Aug 25 '24 14:08 Rexxxyxyxy

image

If the caching is working, it should display a progress.

Dastan21 avatar Aug 25 '24 14:08 Dastan21

mines would just crash tbh

Rexxxyxyxy avatar Aug 25 '24 14:08 Rexxxyxyxy

when i try to look at cache it would just instant crash

Rexxxyxyxy avatar Aug 25 '24 14:08 Rexxxyxyxy

Nothing shows up in the console when it crashes ?

Dastan21 avatar Aug 25 '24 14:08 Dastan21

@SoCalledFunnyman Can you share your config.json so that I can test out thx

Sorry for such a late response. Here you go. At least this SHOULD be it, I think. [FavoriteMedia.config.json] Tested again today. Same thing. No progress tracker at all. Just the endlessly spinning squares.

SoCalledFunnyman avatar Sep 07 '24 23:09 SoCalledFunnyman

really weird... image

[FavoriteMedia] Saved 1922/1922 medias in the database in 635.37s

Dastan21 avatar Sep 08 '24 08:09 Dastan21

Wait, maybe I did not understand correctly, you have never seen this button? image

With no error in the console?

Dastan21 avatar Sep 08 '24 09:09 Dastan21

Wait, maybe I did not understand correctly, you have never seen this button? With no error in the console?

I'm not exactly sure what you mean by that? That's the menu I go into, and it looks completely the same in that image as it does when I use it. I press the Cache All Medias button, and as previously stated, nothing ever happens.

As for the console, admittedly I haven't checked it (or at least I don't think I have anyways) since I'm not sure how to do so. If you let me know how to do that, I'll put down whatever gets shown in it here. But I've never had any crashes or anything, just the caching never seems to start after I press the button.

SoCalledFunnyman avatar Sep 08 '24 17:09 SoCalledFunnyman

Ctrl+shift+i

Dastan21 avatar Sep 08 '24 18:09 Dastan21

Ctrl+shift+i

Alright, just did that, here's what I got after hitting the "Cache All Medias" button. image Basically, just a whole lot of this. Also got this as well. image

SoCalledFunnyman avatar Sep 08 '24 18:09 SoCalledFunnyman

FavoriteMedia.plugin.js.zip @SoCalledFunnyman try with this version, and show the console logs too, because it might show why every red request fails

Dastan21 avatar Sep 11 '24 07:09 Dastan21

my version just loads infinite no cache all medias and just flops can we please return to the old version image and then crashes with nothing else

Rex753 avatar Sep 11 '24 08:09 Rex753

@Rex753 @Rexxxyxyxy FavoriteMedia.plugin.js.old.zip

Dastan21 avatar Sep 11 '24 11:09 Dastan21

this is js not python can i still install it?

Rex753 avatar Sep 11 '24 11:09 Rex753

oops forgot to rename it, rename to FavoriteMedia.plugin.js and replace in the plugins folder

Dastan21 avatar Sep 11 '24 11:09 Dastan21

sick now it works dubbz

Rex753 avatar Sep 11 '24 11:09 Rex753

FavoriteMedia.plugin.js.zip @SoCalledFunnyman try with this version, and show the console logs too, because it might show why every red request fails

This one was mostly the same as the last one, a ton of Bad Requests intermittently broken by "Could not load media". It seemed to actually work after a bit this time though. So whatever you changed, apparently that made it work. At least for me, anyways.

SoCalledFunnyman avatar Sep 12 '24 04:09 SoCalledFunnyman