Close
How does /create work ?
Im trying to figure out how to upload via unix...

How the hell does this create.xml work? Api documentation lacks examples...

http://moe.imouto.org/post/create?post[tags]="test"&post[source]="http://.urlhere..jpg"
doesnt work
I'm not sure, I'll have to take a look later
Small workaround :

upload page
put http://...jpg link into source
some tags

upload = fast!

however, source still contains link to the site then... :/
You can use the api to delete the source of that post just uploaded
Batchimport von danbo kram scheiße :

use curl with following "setup" :

curl A "B" C

where
A = -b cookies.txt
the path to your mozilla cookies for logging in and stuff

B = post[tags]=tag1 tag2 tag3&post[source]=http://....jpg
tag+url info

C = http://moe.imouto.org/post/create.xml
the link to your create.xml

So the full command looks like :

curl -b cookies.txt -d "post[tags]=X&post[source]=http://Y" http://moe.imouto.org/post/create.xml

Now the hax :
use a little java script or something to generate a list with all tag+url links (+";")
so to generate the X and Y dynamically...

after that just use
bash liste.txt or other commands under unix to execute the command list

done...

With this kona is importing to danbo now
So with 2 commands I could import whole konachan and danbooru to moe...

200k images with real tags! :D
lol
too tired for it sry, maybe tmrw or so
<?xml version="1.0" encoding="UTF-8"?>
<response success="true" location="http://moe.imouto.org/post/show/12930"/>

works :]
If you're going to upload whole artbooks parent/child them, and perhaps make a pool for it
admin2 said:
If you're going to upload whole artbooks parent/child them, and perhaps make a pool for it
i think theres a pool problem atm with danbo (100post limit?)

not sure how to do parenting while uploading
try passing post[parent] while uploading

I'll take a look at pool importing later I guess.

Looks like parent doesn't work. I'll have to see the API
post[parent] should be part of update.xml
not create.xml

kinda sucks

i´d need the id and do an update

edit: hm doesnt work either

curl -b cookies.txt -d "id=13017&post[parent]=13095" http://moe.imouto.org/post/update.xml;
I've added parenting to update.xml although I'm not 100% sure if it works.
curl -b cookies.txt -d "id=13017&post[parent_id]=13095" http://moe.imouto.org/post/update.xml;
<?xml version="1.0" encoding="UTF-8"?>
<response success="true"/>

uhm , you mean create right?
it should be in update already

post[parent_id] was right syntax

edit
overwriteing dupes with added parent_id had no effect :/
MDGeist said:
i think theres a pool problem atm with danbo (100post limit?)

not sure how to do parenting while uploading
Set to 500 now.
admin2 said:
I've added parenting to update.xml although I'm not 100% sure if it works.
You can do "parent:12345" in any tag input (create, update). I'm not sure if there's a way to use the update.xml API to do this without querying the current tags first, though (overwrites all tags too, so you have to specify them all).

I don't know if this is new. Works in tag scripts, too, to reparent lots of posts.