Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to download switch titles db" #91

Open
seriouslyunderappreciated opened this issue Jun 30, 2022 · 6 comments
Open

"Unable to download switch titles db" #91

seriouslyunderappreciated opened this issue Jun 30, 2022 · 6 comments

Comments

@seriouslyunderappreciated

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.

@giwty
Copy link
Owner

giwty commented Aug 26, 2022

The link is still valid (https://tinfoil.media/repo/db/titles.json), can you attach the logs ?

@seriouslyunderappreciated
Copy link
Author

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/[email protected]/window.go:431
github.com/asticode/go-astilectron.(*dispatcher).dispatch.func1
/Users/twig/go/pkg/mod/github.com/asticode/[email protected]/dispatcher.go:62

@seriouslyunderappreciated
Copy link
Author

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.

@giwty
Copy link
Owner

giwty commented Sep 11, 2022

Thanks for the additional info, will look into this bug, happy to hear its working for you.

@mspykerez
Copy link

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 #87 (comment) 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.

@giwty
Copy link
Owner

giwty commented Nov 20, 2022

Yep, will modify to use the ones from github, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants