UDP API DEV: Difference between revisions

2,367 bytes added ,  5 December 2005
no edit summary
No edit summary
Line 30: Line 30:
* ANIME aid={int4 id}
* ANIME aid={int4 id}
by name
by name
* ANIME name={str name}
* ANIME aname={str anime name}


'''Possible Replies:'''
'''Possible Replies:'''
Line 46: Line 46:


'''Examples:''' (html escaped code intended)
'''Examples:''' (html escaped code intended)
   > ANIME name=tmm&s=xxxxx
   > ANIME aname=tmm&s=xxxxx
   < 230 ANIME
   < 230 ANIME
   161|52|50|0|715|57|777|35|816|1|2002-2003|TV|Tokyo Mew Mew|&#26481;&#20140;&#12511;&#12517;&#12454;&#12511;&#12517;&#12454;||||TMM§mew|Cat Girls
   161|52|50|0|715|57|777|35|816|1|2002-2003|TV|Tokyo Mew Mew|&#26481;&#20140;&#12511;&#12517;&#12454;&#12511;&#12517;&#12454;||||TMM§mew|Cat Girls
   > ANIME name=&#12490;&#12523;&#12488;&s=xxxxx
 
   > ANIME aname=&#12490;&#12523;&#12488;&s=xxxxx
   < 230 ANIME
   < 230 ANIME
   239|0|140|2|1000|10|855|3750|803|36|2002-2005|TV|Naruto|&#12490;&#12523;&#12488;||&#1504;&#1488;&#1512;&#1493;&#1496;&#1493;|NARUTO§&#1606;&#1575;&#1585;&#1608;&#1578;&#1608;|naruto tv§ntv|Action,Shounen,Past,...(cut)
   239|0|140|2|1000|10|855|3750|803|36|2002-2005|TV|Naruto|&#12490;&#12523;&#12488;||&#1504;&#1488;&#1512;&#1493;&#1496;&#1493;|NARUTO§&#1606;&#1575;&#1585;&#1608;&#1578;&#1608;|naruto tv§ntv|Action,Shounen,Past,...(cut)
Line 91: Line 92:
* GROUP gid={int4 gid}
* GROUP gid={int4 gid}
by name/shortname
by name/shortname
* GROUP name={str group name}
* GROUP gname={str group name}
'''Possible Replies:'''
'''Possible Replies:'''
* XXX NO SUCH GROUP
* XXX NO SUCH GROUP
Line 100: Line 101:
   < 250 GROUP
   < 250 GROUP
   1|621|28|29|222|Animehaven|AH|#animehaven@irc.enterthegame.com|http://www.theanimehaven.com
   1|621|28|29|222|Animehaven|AH|#animehaven@irc.enterthegame.com|http://www.theanimehaven.com
   > GROUP name=a-l&s=xxxxx
 
   > GROUP gname=a-l&s=xxxxx
   < 250 GROUP
   < 250 GROUP
   566|860|398|48|503|Anime-Legion|A-L|#anime-legion@irc.irchighway.net|http://www.anime-legion.net
   566|860|398|48|503|Anime-Legion|A-L|#anime-legion@irc.irchighway.net|http://www.anime-legion.net
Line 110: Line 112:
'''Command String:'''<br>
'''Command String:'''<br>
by fid:
by fid:
* FILE fid={int4 id}[&code={int4}]
* FILE fid={int4 id}[&fcode={int4}&acode={int4}]
by size+ed2k hash:
by size+ed2k hash:
* FILE size={int4 size}&ed2k={str ed2khash}[&code={int4}]
* FILE size={int4 size}&ed2k={str ed2khash}[&fcode={int4}&acode={int4}]
by anime, group and epno
by anime, group and epno
* FILE aname={str anime name}&gname={str group name}&epno={int4 episode number}[&code={int4}]
* FILE aname={str anime name}&gname={str group name}&epno={int4 episode number}[&fcode={int4}&acode={int4}]
* FILE aname={str anime name}&gid={int4 group id}&epno={int4 episode number}[&code={int4}]
* FILE aname={str anime name}&gid={int4 group id}&epno={int4 episode number}[&fcode={int4}&acode={int4}]
* FILE aid={int4 anime id}&gname={str group name}&epno={int4 episode number}[&code={int4}]
* FILE aid={int4 anime id}&gname={str group name}&epno={int4 episode number}[&fcode={int4}&acode={int4}]
* FILE aid={int4 anime id}&gid={int4 group id}&epno={int4 episode number}[&code={int4}]
* FILE aid={int4 anime id}&gid={int4 group id}&epno={int4 episode number}[&fcode={int4}&acode={int4}]


'''Possible Replies:'''
'''Possible Replies:'''
Line 123: Line 125:
: {int4 fid}|{int4 aid}|{int4 eid}|{int4 gid}|{int4 lid}|{int4 state}|{int4 size}|{str ed2k}|{str default file name}
: {int4 fid}|{int4 aid}|{int4 eid}|{int4 gid}|{int4 lid}|{int4 state}|{int4 size}|{str ed2k}|{str default file name}
* XXX FILE
* XXX FILE
: {int4 fid}|{int4 aid}|{int4 eid}|{int4 gid}|{int4 lid}|...(data list)
: {int4 fid}|...(data list)
* XXX NO SUCH FILE  
* XXX NO SUCH FILE  


'''Info:'''
'''Info:'''
* code is an integer where each bit corresponds to a data field related to the specified file (se below). The data list received is sorted in the same order as the table. code=-1 means retrieve all fields.
* fcode and acode is integers where each bit corresponds to a data field related to the specified file (se below). The data list received is sorted in the same order as the tables (and fcode before acode). {f|a}code=-1 means retrieve all fields.


'''Code:'''
'''fcode:'''
{| cellpadding="0" align="center"
{| cellpadding="0" align="center"
! width="40"|Bit
! width="40"|Bit
Line 139: Line 141:
! width="140"|Data field
! width="140"|Data field
|- style="background-color: #eee;"
|- style="background-color: #eee;"
|0 ||1 || int2 state || || 16 || 65536 || str epno
|0 ||1 || not used || || 16 || 65536 || str dub language
|-  
|-  
|1 ||2 || int4 size || || 17 || 131072 || str ep name
|1 ||2 || int4 aid || || 17 || 131072 || str sub language
|- style="background-color: #eee;"
|- style="background-color: #eee;"
|2 ||4 || str ed2k || || 18 || 262144 || str ep japname
|2 ||4 || int4 eid || || 18 || 262144 || str quality
|-  
|-  
|3 ||8 || str md5 || || 19 || 524288 || not ep kanjiname
|3 ||8 || int4 gid || || 19 || 524288 || str source
|- style="background-color: #eee;"
|- style="background-color: #eee;"
|4 ||16 || str sha1 || || 20 || 1048576 || int2 episodes
|4 ||16 || int4 lid || || 20 || 1048576 || str audio codec
|-  
|-  
|5 ||32 || str crc || || 21 || 2097152 || int2 ep count
|5 ||32 || not used || || 21 || 2097152 || int4 audio bitrate
|- style="background-color: #eee;"
|- style="background-color: #eee;"
|6 ||64 || str dub || || 22 || 4194304 || str year
|6 ||64 || not used || || 22 || 4194304 || str video codec
|-  
|-  
|7 ||128 || str sub || || 23 || 8388608 || str anime type
|7 ||128 || not used || || 23 || 8388608 || int4 video bitrate
|- style="background-color: #eee;"
|- style="background-color: #eee;"
|8 ||256 || str quality || || 24 || 16777216 || str title romaji
|8 ||256 || int2 status || || 24 || 16777216 || str video resolution
|-  
|-  
|9 ||512 || str source || || 25 || 33554432 || str title kanji
|9 ||512 || int4 size || || 25 || 33554432 || str file type (extension)
|- style="background-color: #eee;"
|- style="background-color: #eee;"
|10 ||1024 || str audio info || || 26 || 67108864 || str title english
|10 ||1024 || str ed2k || || 26 || 67108864 || int4 length in seconds
|-  
|-  
|11 ||2048 || str video info || || 27 || 134217728 || str title other
|11 ||2048 || str md5 || || 27 || 134217728 || not used
|- style="background-color: #eee;"
|- style="background-color: #eee;"
|12 ||4096 || str video resolution || || 28 || 268435456 || str short names
|12 ||4096 || str sha1 || || 28 || 268435456 || not used
|-  
|-  
|13 ||8192 || str file type || || 29 || 536870912 || str synonyms
|13 ||819 || str crc32 || || 29 || 536870912 || not used
|- style="background-color: #eee;"
|- style="background-color: #eee;"
|14 ||16384 || str group name || || 30 || 1073741824 || str genre list
|14 ||16384 || not used || || 30 || 1073741824 || not used
|-  
|-  
|15 ||32768 || str group short name || || 31 || -2147483648 || not used
|15 ||32768 || not used || || 31 || -2147483648 || not used
|}
'''acode:'''
{| cellpadding="0" align="center"
! width="40"|Bit
! width="80"|Decimal
! width="140"|Data field
! width="50"|-
! width="40"|Bit
! width="80"|Decimal
! width="140"|Data field
|- style="background-color: #eee;"
|0 ||1 || str group name || || 16 || 65536 || int4 anime total episodes
|-
|1 ||2 || str group short name || || 17 || 131072 || int4 last episode nr (highest, not special)
|- style="background-color: #eee;"
|2 ||4 || not used || || 18 || 262144 || str year
|-
|3 ||8 || not used ||  || 19 || 524288 || str type
|- style="background-color: #eee;"
|4 ||16 || not used || || 20 || 1048576 || str romaji name
|-
|5 ||32 || not used || || 21 || 2097152 || str kanji name
|- style="background-color: #eee;"
|6 ||64 || not used || || 22 || 4194304 || str english name
|-
|7 ||128 || not used || || 23 || 8388608 || str other name
|- style="background-color: #eee;"
|8 ||256 || str epno || || 24 || 16777216 || str short name list
|-
|9 ||512 || str ep name || || 25 || 33554432 || str synonym list
|- style="background-color: #eee;"
|10 ||1024 || str ep romaji name || || 26 || 67108864 || not genre list
|-
|11 ||2048 || str ep kanji name || || 27 || 134217728 || not used
|- style="background-color: #eee;"
|12 ||4096 || not used || || 28 || 268435456 || not used
|-
|13 ||819 || not used || || 29 || 536870912 || not used
|- style="background-color: #eee;"
|14 ||16384 || not used || || 30 || 1073741824 || not used
|-
|15 ||32768 || not used || || 31 || -2147483648 || not used
|}
|}
'''Examples:''' (html escaped code intended)
'''Examples:''' (html escaped code intended)
Line 177: Line 221:
15201|74|445|41|1|242772540|a53c401ed95eaa502ba85acde773040c|Ai yori Aoshi - 1 - Relation - [Zhentarim DivX].ogm
15201|74|445|41|1|242772540|a53c401ed95eaa502ba85acde773040c|Ai yori Aoshi - 1 - Relation - [Zhentarim DivX].ogm


> FILE fid=15201&data=-1&s=xxxxx
> FILE fid=15201&fdata=-1&adata=-1&s=xxxxx
< 220 FILE
< 220 FILE
15201|74|445|41|1|242772540|a53c401ed95eaa502ba85acde773040c|a69c9ca88822338685f163db95da8231|842fc9060b4338757d0197a9f7bf0c79cf39a549|01ffc5f4|842fc9060b4338757d0197a9f7bf0c79cf39a549|dual (jap/eng)|english|very high|DVD|Ogg Vorbis|101|DivX5|1182|640x480|ogm|Zhentarim DivX|zx|24|24|2002|TV|Ai yori Aoshi|藍より青し|Bluer than Indigo|Azul||aya1§AYA§AiAo|
15201|74|445|41|0|1|242772540|a53c401ed95eaa502ba85acde773040c|a69c9ca88822338685f163db95da8231|842fc9060b4338757d0197a9f7bf0c79cf39a549|01ffc5f4|842fc9060b4338757d0197a9f7bf0c79cf39a549|dual (jap/eng)|english|very high|DVD|Ogg Vorbis|101|DivX5|1182|640x480|ogm|Zhentarim DivX|zx|24|24|2002|TV|Ai yori Aoshi|藍より青し|Bluer than Indigo|Azul||aya1§AYA§AiAo|
 
> FILE fid=83532&data=17006624&s=xxxxx
< 220 FILE
83532|896|26316|374|e1980142|KAA|S3|Ayu Mayu Theater 03|Kimi ga Nozomu Eien


> FILE aname=narutaru&gname=triad&amp;aone&epno=2&s=xxxxx
> FILE aname=narutaru&gname=triad&amp;aone&epno=2&s=xxxxx
Line 202: Line 242:


== Mylist General ==
== Mylist General ==
=== MYLIST : extend ===
'''Command String:'''<br>
by anime + group + epno
* MYLIST aname={str anime name}&gname={str group name}&epno={int epno}
'''Possible Replies:'''<br>
when multiple files found
* XXX MULTIPLE FILES FOUND
: {str eps with state unknown}|{str eps with state on hhd}|{str eps with state on cd}|{str eps with state deleted}|{str watched eps}|{str group 1 short name}|{str eps for group 1}|...|{str group N short name}|{str eps for group N}
'''Info:'''
* eps is a list of episodes, e.g. "1-12,14-16,T1"
'''Example:'''
  > MYLIST aname=gits sac&s=xxxxx
  <322 MULTIPLE FILES FOUND
  |1-26,S2-S27|1-26|||V-A|S2-S27|LMF|20-26|KAA|1-12,21-23|anime_fin|1-26|AonE|1-19|Anime-MX|1-3,17-20


=== MYLISTSTATS : new ===
=== MYLISTSTATS : new ===
Line 274: Line 329:
* MYLISTADD aid={int4 anime id}[&gid={int4 group id}&epno={int4 episode number}][&state={int2 state}&viewed={boolean viewed}&source={str source}&storage={str storage}&other={str other}][&edit=1]
* MYLISTADD aid={int4 anime id}[&gid={int4 group id}&epno={int4 episode number}][&state={int2 state}&viewed={boolean viewed}&source={str source}&storage={str storage}&other={str other}][&edit=1]
'''Possible Replies:'''<br>
'''Possible Replies:'''<br>
when edit=1
* XXX MYLIST ENTRY EDITED
: {int4 number of entries edited}
when edit=0
when edit=0
* XXX MYLIST ENTRY ADDED
: {int4 number of entries added}
* XXX MULTIPLE FILES FOUND
* XXX MULTIPLE FILES FOUND
: {int4 fid 1}|{int4 group name 1}
: {int4 fid 1}|{int4 group name 1}
Line 281: Line 341:
'''Info:'''
'''Info:'''
* epno=0 means all eps (default), negative numbers means upto. (-12 -> upto 12)
* epno=0 means all eps (default), negative numbers means upto. (-12 -> upto 12)
* group is optional only when edit=1
* group is optional only when edit=1, meaning you can't add every file for an anime


=== MYLISTDEL : extend ===
=== MYLISTDEL : extend ===
Line 290: Line 350:
* MYLISTDEL aid={int4 anime id}[&gname={str group name}&epno={int4 episode number}]
* MYLISTDEL aid={int4 anime id}[&gname={str group name}&epno={int4 episode number}]
* MYLISTDEL aid={int4 anime id}[&gid={int4 group id}&epno={int4 episode number}]
* MYLISTDEL aid={int4 anime id}[&gid={int4 group id}&epno={int4 episode number}]
'''Possible Replies:'''<br>
'''Possible Replies:'''<br>
when epno>0
* XXX ENTRY DELETED
* XXX MULTIPLE FILES FOUND
: {int4 number of entries}
: {int4 fid 1}|{int4 group name 1}
: ...
: {int4 fid n}|{int4 group name n}
 
'''Info:'''
'''Info:'''
* epno=0 means all eps (default), negative numbers means upto. (-12 -> upto 12)
* epno=0 means all eps (default), negative numbers means upto. (-12 -> upto 12)
* group is optional
* group is optional
* command will delete all enties found


== Misc ==
== Misc ==
546

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.