dinoex / aniupdate

UDP client for AniDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-----------------------------------------------------------------------------
from http://www.anidb.net/client/udp-api.html

the mylist state field provides information about the location and sharing state of a file in mylist.
state:
  o 0 - unknown - state is unknown or the user doesnt want to provide this information
  o 1 - on hdd - the file is stored on hdd (but is not shared)
  o 2 - on cd - the file is stored on cd
  o 3 - deleted - the file has been deleted or is not available for other reasons (i.e. reencoded)
  o 4 - shared - the file is stored on hdd and shared
  o 5 - release - the file is stored on hdd and shared on release priority


fid, aid, eid, gid are the unique ids for the file, anime, ep, group entries at anidb.
You can use those to create links to the corresponding pages at anidb.
 
file state:
 bit / int value         meaning
  1 / 1   FILE_CRCOK: file matched official crc (displayed with green background in anidb)
  2 / 2   FILE_CRCERR: file DID NOT match official crc (displayed with red background in anidb)
  3 / 4   FILE_ISV2: file is version 2
  4 / 8   FILE_ISV3: file is version 3
  5 / 16  FILE_ISV4: file is version 4
  6 / 32  FILE_ISV5: file is version 5
  7 / 64  FILE_ISUNCUT: file is uncensored/uncut
  8 / 128 FILE_ISCUT: file is censored/cut

server status:

200 LOGIN ACCEPTED
201 LOGIN ACCEPTED - NEW VERSION AVAILABLE
203 LOGGED OUT
210 MYLIST ENTRY ADDED
211 ENTRY DELETED
220 FILE
221 MYLIST
270 NOTIFICATION ENABLED
271 {int4 notify_packet_id} NOTIFICATION
272 {int4 notify_packet_id} NOTIFICATION
280 PUSHACK CONFIRMED
281 NOTIFYACK SUCCESSFUL
282 NOTIFYACK SUCCESSFUL
290 NOTIFICATION
291 NOTIFYLIST
292 NOTIFYGET
293 NOTIFYGET
294 SENDMSG SUCCESSFUL

300 PONG
310 FILE ALREADY IN MYLIST
311 MYLIST ENTRY EDITED
320 NO SUCH FILE 
321 NO SUCH ENTRY 
370 NOTIFICATION DISABLED 
380 NO SUCH PACKET PENDING 
381 NO SUCH ENTRY 
382 NO SUCH ENTRY 
392 NO SUCH ENTRY
393 NO SUCH ENTRY
394 NO SUCH USER

410 NO SUCH FILE
411 NO SUCH MYLIST ENTRY
411 NO SUCH ENTRY

500 LOGIN FAILED
501 LOGIN FIRST
502 ACCESS DENIED 
503 CLIENT VERSION OUTDATED
504 CLIENT BANNED - {str reason}
505 ILLEGAL INPUT OR ACCESS DENIED
506 INVALID SESSION
598 UNKNOWN COMMAND 

601 ANIDB OUT OF SERVICE - TRY AGAIN LATER 
6xx INTERNAL SERVER ERROR

-----------------------------------------------------------------------------

Databases layouts:

mylist.db:

Key:
<size>|<ed2khash>

Val:
<local time>|<lid>|<fid>|<eid>|<aid>|<gid>|<date>|<state>|<viewdate>|<storage>|<source>|<other>

$ makemap -u hash mylist.db     
245432320|283212f32f413383e8b19c994c9ec45b      1102915998|4080652|85717|21385|1544|1249|1102799587|1|1102845252|||

files.db:

Key:
<size>|<ed2khash>

Val:
<local time>|<fid>|<aid>|<eid>|<gid>|<state>|<size>|<ed2khash>|<anidbfilename>

$ makemap -u hash files.db     
245432320|283212f32f413383e8b19c994c9ec45b	1102917183|85717|1544|21385|1249|5|245432320|283212f32f413383e8b19c994c9ec45b|Elfen Lied - 01 - Chance Meeting - Begegnung - [SL].avi

-----------------------------------------------------------------------------

edit database by hand:

$ makemap -u hash files.db >files
$ vim files
$ makemap hash files.db <files

delete entrys by hand:

$ editmap -x hash files.db '<size>|<ed2khash>'

-----------------------------------------------------------------------------

About

UDP client for AniDB


Languages

Language:Objective-C 37.8%Language:C 37.4%Language:Ruby 22.8%Language:Makefile 1.9%Language:Shell 0.1%