Closed tegraion closed 1 year ago
can you show me the console by opening devtools
Sorry about that. This is my first time using github.
do you have any sort of special track in any of your playlists that isn't a normal song?
What do you mean? What kind of song? My library has about 3500 liked songs and more than 100 playlists (each has 100-200 songs in them), some I made, some I follow from Spotify or other users. But can't think of any track that isn't a normal song.
As of the moment I don't know why the issue is happening but I suspect its because of the amount of songs you have in your library. Ill try and fix this soon.
I have the exact same issue and I have lots of songs and playlists in my library too, so I guess it's the amount of songs.
:(
@Cry4775 How many songs do you think you have, just as an estimate?
~3000 liked songs and ~100/150 playlists
oh wow, that must be the reason then, I'll try and find a fix for this, would probably involve waiting a while for everything to be fetched but atleast it would work.
I'm having the same problem as the rest My liked count being 3,495 songs 😔
try installing the latest release that I just made and see if that fixes anything. It might not, but since I cant replicate the issue its difficult to fix.
still broken unfortunately
ok then can you send a ss of the devtools, i just updated the error logging so it should be clearer where the issue happened. send the ss of what happens after you click into the library page after a good few seconds and you can see an error relating to stats.
not sure if it's any help but it's also stuck for me but I only have like 100 liked songs and 10 playlists which is significantly less than other people :)
yep definitely helps, now I know that the problem isn't actually related to the length but something else that's in the playlists themselves. Can you think of anything in your playlists that isn't a normal song/track. also could you try and show the error In the console
yea i defo have some songs in a playlist that isn't from spotify - songs downloaded from youtube than put into itunes then onto spotify somehow, cant really remember exactly how tbh. also extremely new and not sure how to show the error, will do if someone can explain sorry!
in the cmd line type spicetify enable-devtools, then once spotify opens you should be able to right click on an empty part of the page and select inspect element. From there go into the console tab. Then go into the stats library page and you should see an error eventually come up, should have something to with stats in the error. Just send a ss of that.
okay loads came up so i screenshotted it all just in case, hope it helps! :)
These are my logs instead
yeah from what I can see atleast 3 of your songs have something wierd going on with them, could you try and copy the url of the failed requests. Like the whole url which is quite long, and then just paste it here.
I apparently found the problem, it's caused by some very old local songs I had added in some playlists. If I delete them, it should work, I tried deleting one and one of the 3 errors disappeared. I'll wait to delete the others so I can test eventual fixes for you.
You can read a lot of artists names at the end of it, it gathers them from the local files metadata, they come from this playlist:
oh right yeah that makes sense, I can see some of the songs have either weird ids or just no id at all, which is probably affecting the artists metadata as well actually. Ill let you know when I do the fix so that you can test it.
Could removed songs still in my liked and playlists affect it?
like this one
yep probably, currently i havent implemented liked songs but if their in your playlists that will cause an error.
@Cry4775 @ApothisXD @sian57 could you all try out the updated code in the dist branch, im hoping itll fix the issue. If you're still getting an error, let me know.
It's kinda strange but last time I deleted 2 out of 3 playlists that were causing the issues, also to clean up my library from old playlists, and yesterday I randomly noticed that statistics are now working, even though I left one of the playlists that were causing the issue, in fact on console it still prints the errors about that playlist. I tried replicating the issue again, but I couldn't, I also tried the new version to see if the errors in console were still printing at least and yes, nothing changed there. I have no idea how it happened, but I feel like it's loading up some kind of cache too, because if I like a song and add it to library and playlists, the library screen doesn't change, the counter doesn't go up even if I refresh (idk if I'm doing something wrong). Odd things happen :(
yeah it does cache, and I'm assuming it's not updating because of the same error. Is it the exact same error though? I filtered the id's so technically the url should be fine now. Could you paste it here again just to see.
oh right yeah I'm an idiot and made a silly mistake, so the filter didnt actually apply. I'll update it in the morning
ok try it now, hopefully this finally fixes it
still not working
your error must've been a different one then, could you show your logs?
Yeah sure, gimme a sec
there ya go
Now it works perfectly for me!
@ApothisXD try filtering the errors by writing "stats" in the filter bar that's above, because the screenshots are cluttered with a lot of errors that are not relevant, so it's easier for him to locate the issue
Nice, finally.
@ApothisXD you've still got the older code installed, could you try reinstalling it with the link in the README. Make sure you replace the old files and everything.
Ight will do
It works :D
Thanks @harbassan it's working for me too.
@Cry4775 @ApothisXD @sian57 could you all try out the updated code in the dist branch, im hoping itll fix the issue. If you're still getting an error, let me know.
sorry completely forgot about this forum, is there anything you needed to me to try sorry?
Just update and it should work
lol the percentages are totally messed up, def need to fix that
Other tabs works properly. Library tab doesn't show anything.
Installed the app as directed in the readme.md
Spotify for Windows 1.2.10.760.g52970952 Spicetify v2.17.2 Theme: Nord / Nord Extensions: popupLyrics.js, bookmark.js, listPlaylistsWithSong.js, playlistIntersection.js, spotifyGenres.js, romaja_lyrics.js, romaji_lyrics.js, fullScreenWrapper.js, adblock.js, theme.js Custom apps: marketplace, lyrics-plus, eternal-jukebox, spicetify-stats-dist