Import only imports half of the items in an import file
This bug was logged in 2023 but for some reason was closed and never fixed. It is still there now. I have an export file from Heimdall that I want to import into a new install and it only imports half of the items in the list.
I have tried importing a single item and that does not work either. The export created this example entry, which fails to import properly.:
[ { "title": "Sonarr", "colour": "#161b1f", "url": "Http://192.168.1.xxx:8989", "description": "{"enabled":true,"override_url":null,"apikey":"myapikey"}", "appid": null, "appdescription": null } ]
I don't know if the problem is with the export or the subsequent import, but whatever it is it's not working as intended.
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
From a quick look, it looks like you have a config set, but no corresponding appid, additionally the description field isn't escaped (I don't know if this is just a pasting issue) and the url is messed up (.xxx). There is a bug where it's not handling null vs "null", but that is something different
From a quick look, it looks like you have a config set, but no corresponding appid, additionally the description field isn't escaped (I don't know if this is just a pasting issue) and the url is messed up (.xxx). There is a bug where it's not handling null vs "null", but that is something different
The URL isn't messed up, I just chose to hide the last digits of the IP address. The data I have comes from a Heimdall export, so there's the bug: the exporter isn't filling in the appid properly.
The import and export is frankly crap, and needs some work doing on it, I didn't add the initial implementation and it isn't a high priority for me. See if the updated code works any better, but if not your best bet might be to just keep a backup of the database until someone looks at improving the import/export.