Open seriouslyunderappreciated opened 2 years ago
The link is still valid (https://tinfoil.media/repo/db/titles.json), can you attach the logs ?
2022-09-03T12:41:50.849+0100 INFO nsp-update/main.go:39 [SLM starts] 2022-09-03T12:41:50.850+0100 INFO nsp-update/main.go:40 [Executable: D:[BACKUPS]\Nintendo Switch\Switch Library Manager\Switch-Library-Manager.exe] 2022-09-03T12:41:50.850+0100 INFO nsp-update/main.go:41 [Working directory: D:[BACKUPS]\Nintendo Switch\Switch Library Manager] 2022-09-03T12:41:51.750+0100 INFO db/utils.go:47 file [https://tinfoil.media/repo/db/titles.json] was not downloaded, reason - [no new updates] 2022-09-03T12:41:51.751+0100 INFO db/utils.go:60 Local file is empty, or corrupted 2022-09-03T12:41:51.751+0100 ERROR nsp-update/gui.go:291 failed to download switch titles [reason:unable to download switch titles db] main.(GUI).handleMessage /Users/twig/IdeaProjects/nsp-update/gui.go:291 github.com/asticode/go-astilectron.(Window).OnMessage.func1.1 /Users/twig/go/pkg/mod/github.com/asticode/go-astilectron@v0.16.0/window.go:431 github.com/asticode/go-astilectron.(*dispatcher).dispatch.func1 /Users/twig/go/pkg/mod/github.com/asticode/go-astilectron@v0.16.0/dispatcher.go:62
To give this some context, I think at some point I knew there were some new things (updates/dlc) that were out but weren't present in the db, so I assumed it wasn't being able to update titles db or versions db, so I deleted my local files to see if it would download them again like on a fresh install, and it errored out.
But it looks like if there is no settings file in the SLM folder then it downloads these files okay, and presumably it updates them afterwards since it's checking for differences between the local and remote file, but bizarrely if you have a settings json AND no title db, then it spits out an error.
All in all it appears to be a minor issue that only affects people who delete their title db and not their settings. My bad.
Thanks for the additional info, will look into this bug, happy to hear its working for you.
The link is still valid (https://tinfoil.media/repo/db/titles.json), can you attach the logs ?
@giwty long time no see... as I mentioned here https://github.com/giwty/switch-library-manager/issues/87#issuecomment-1127928881 the author of titledb is using a new standard file and does not guarantee that the ones SLM currently grabs will always work therefore it is recommended to point SLM to the new standard files.
Yep, will modify to use the ones from github, thanks
If I had to guess it's because at some point blawar removed the file from his repo altogether, and it now requires you to run NUT to generate it.
Could use an update to rely on a different source for titles.json, or implementing NUT into the program or something.