[Feature Request] Migrate From Anime Boxes App
Suggesting the ability to migrate an export from Anime Boxes https://www.animebox.es/ It's not currently FOSS which is my issue with it, but I have thousands of stuff saved so it would be nice to be able to import those favorites.
Also suggesting the ability to favorite stuff and search through favorites (obviously as that would defeat the purpose of above)
How does the favourites work on animeboxes?
Mmm not entirely sure you're best to go and look for yourself. I could be wrong, but I think it stores them via the link to the image. So like you browse a booru then see an image and favorite it, it favorites the link, doesn't download the image. Could be wrong though.
It does allow logging in to sync favorites to booru accounts, I would've suggested just implementing that and it could pull all favorites, but only a small few boorus actually sync favorites for whatever reason, so this may not import a large majority of Animeboxes favorites.
So I have like thousands of photos just sitting in Anime boxes that I either download all and uninstall or just use until another app can import my favorites from Anime boxes.
I realize this is a 2 year old necro (apologies) but has there been any updates to this? As it stands, since Anime Boxes is the only other booru app with pretty much any use, it would be a massive boon to be able to migrate from it - as I'm guessing many others (like me) are bouncing off this due to a large existing favorite-base, even though this app is better in nearly every other way (and actively developed, for that matter).
Pretty old issue, but I may have some useful information. No idea where Animeboxes stores its data normally, but on export it saves everything into a json (extension is .abbj). It is really simple but stores way more than you probably need (like all the tags for all favorite images).
Here is the structure of the backup:
{
"backupTime": "1999-01-01T12:12:12+0800",
"backupVersion": "1.0",
"bannedTags": [],
"creatorName": "Anime boxes (Android)",
"creatorVersion": "1.7.7",
"favorites": [
{
"blacklisted": false,
"dateAdded": "1999-01-01T12:12:12+0800",
"disableStorage": false, //no idea what it is, but it seems to be false by default
"enforceOriginalImage": false, //load full image instead of sample
"file": {
"contentType": 0, //seems to be always 0
"errorLoadCount": 0, //seems to be always 0
"ext": "png",
"height": 2117,
"url": "main_file_url",
"width": 2000
},
"has_children": false,
"has_comments": false,
"has_notes": true,
"imageIsVisible": true, //seems to be always true
"isFavorite": true,
"isVisible": false, //seems to be always false
"jpeg": { //pretty much the same as 'file'
"contentType": 0,
"errorLoadCount": 0,
"ext": "png",
"height": 2117,
"url": "main_file_url",
"width": 2000
},
"md5": "main_file_hash",
"parent_id": "parent_id_if_has",
"ppostId": "post_id",
"ppostUrl": "post_url",
"preview": {
"contentType": 0,
"errorLoadCount": 0,
"ext": "jpg",
"height": 150,
"url": "preview_url",
"width": 141
},
"rating": "s",
"sample": {
"contentType": 0,
"errorLoadCount": 0,
"ext": "jpg",
"height": 899,
"url": "sample_url",
"width": 850
},
"score": 27,
"source": "link to single (maybe first) source",
"tag_artist": "artists seperated by spaces",
"tag_character": "characters seperated by spaces",
"tag_copyright": "copyright tags seperated by spaces",
"tag_general": "general tags seperated by spaces ",
"tags": "all of the above tags seperated by spaces"
},
],
"homePins": [
{
"key": "cf35e932-7048-407c-8c76-00a168519398", //no idea what it is
"query": {
"disableAutoLoad": false, //no idea
"extraParams": { //no idea
"SOURCE_POSITION": "1"
},
"includeBlacklisted": false,
"initialPage": 0,
"text": "server specific tags",
"title": ""
},
"type": probably_server_id,
"url": "server_url"
},
],
"searchHistory": [
{
"itemId": 0, //seems to be always 0
"searchDate": "1999-01-01T12:12:12+0800",
"searchText": "server specific tags",
"starred": false //starred searches stay on top in search history
},
],
"servers": [
{
"apiKey": "",
"apikey": "",
"isDefault": false,
"isSelected": false,
"password": "",
"ratingFilterEnabled": false,
"realURL": "same as url below?",
"serverId": 1,
"serverName": "whatever",
"type": 1, //probably server type (gelbooru, danbooru, ...)
"url": "server_url",
"useNativeAutocomplete": false,
"userName": ""
},
]
}
Using python, it is pretty easy to "import" the favorites and other stuff from the animeboxes to the database and then restore it.