User:Ommina: Difference between revisions

From AniDB
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{TOCright}}
=== ANIMEDESC: Retrieve Anime Description ===
=== ANIMEDESC: Retrieve Anime Description ===
'''Command String:'''<br>
'''Command String:'''<br>
Line 25: Line 26:
Note to anybody reading this -- this command is still mildly buggy, and may return a "6xx SERVER ERROR" under certain circumstances.  Once these errors are fixed, the text will be moved to the UDP specification page proper.
Note to anybody reading this -- this command is still mildly buggy, and may return a "6xx SERVER ERROR" under certain circumstances.  Once these errors are fixed, the text will be moved to the UDP specification page proper.


----
=== FILE acode & fcode replacement ===


'''fcode:'''
'''fcode:'''


byte1 - IDs
byte1 - IDs<br>
1
1<br>
2 int4 aid
2 int4 aid<br>
3 int4 eid
3 int4 eid<br>
4 int4 gid
4 int4 gid<br>
5 int4 lid
5 int4 lid<br>
6 int2 IsDeprecated
6 int2 IsDeprecated<br>
7
7<br>
8 int2 state
8 int2 state<br>
 
<br>
 
byte2
1 int8 size
2 str ed2k
3 str md5
4 str sha1
5 str crc32
6
7
8


byte3
byte2<br>
1 str quality
1 int8 size<br>
2 str source
2 str ed2k<br>
3 str audio codec
3 str md5<br>
4 int4 audio bitrate
4 str sha1<br>
5 str video codec
5 str crc32<br>
6 int4 video bitrate
6<br>
7 str video resolution
7<br>
8 str file type (extension)
8<br>


byte3<br>
1 str quality<br>
2 str source<br>
3 str audio codec<br>
4 int4 audio bitrate<br>
5 str video codec<br>
6 int4 video bitrate<br>
7 str video resolution<br>
8 str file type (extension)<br>
<br>


byte4
byte4<br>
1 str dub language
1 str dub language<br>
2 str sub language
2 str sub language<br>
3 int4 length in seconds
3 int4 length in seconds<br>
4 str description
4 str description<br>
5
5<br>
6
6<br>
7
7<br>
8 str anidb file name
8 str anidb file name<br>




'''acode:'''
'''acode:'''


byte1
byte1<br>
1 int4 anime total episodes
1 int4 anime total episodes<br>
2 int4 last episode nr (highest, not special)
2 int4 last episode nr (highest, not special)<br>
3 str year
3 str year<br>
4 str type
4 str type<br>
5 str related aid list
5 str related aid list<br>
6 str category list
6 str category list<br>
7
7<br>
8
8<br>


byte2
byte2<br>
1 str romaji name
1 str romaji name<br>
2 str kanji name
2 str kanji name<br>
3 str english name
3 str english name<br>
4 str other name
4 str other name<br>
5 str short name list
5 str short name list<br>
6 str synonym list
6 str synonym list<br>
7 str producer name list
7 str producer name list<br>
8 str producer id list
8 str producer id list<br>


byte3
byte3<br>
1 str epno
1 str epno<br>
2 str ep name
2 str ep name<br>
3 str ep romaji name
3 str ep romaji name<br>
4 str ep kanji name
4 str ep kanji name<br>
5
5<br>
6
6<br>
7
7<br>
8
8<br>


byte4
byte4<br>
1 str group name
1 str group name<br>
2 str group short name
2 str group short name<br>
3
3<br>
4
4<br>
5
5<br>
6
6<br>
7
7<br>
8
8<br>

Revision as of 04:53, 2 September 2008

ANIMEDESC: Retrieve Anime Description

Command String:
by aid

  • ANIMEDESC aid={int4 id}&part={int4 partno}

Possible Replies:

  • 233 ANIMEDESC
{int4 current part}|{int4 max parts}|{str description}
  • 330 NO SUCH ANIME

Info:

  • The maximum length of the anime description is roughly 5000 characters, but the maximum length of a UDP packet is 1400 bytes
  • Multiple calls to ANIMEDESC may be necessary to retrieve the complete text, retrieving separate 1400 byte parts with each call
  • part is zero-based
  • Note: No support, at present, for retrieving descriptions by title. aid only


Examples: (html escaped code intended)

 > ANIMEDESC aid=3169&part=0&s=xxxxx
 < 233 ANIMEDESC
   0|1|As summer break arrives for the students, Jun Sakurada is busily studying on his own in the library, making up for time lost <cut>

Note to anybody reading this -- this command is still mildly buggy, and may return a "6xx SERVER ERROR" under certain circumstances. Once these errors are fixed, the text will be moved to the UDP specification page proper.

FILE acode & fcode replacement

fcode:

byte1 - IDs
1
2 int4 aid
3 int4 eid
4 int4 gid
5 int4 lid
6 int2 IsDeprecated
7
8 int2 state

byte2
1 int8 size
2 str ed2k
3 str md5
4 str sha1
5 str crc32
6
7
8

byte3
1 str quality
2 str source
3 str audio codec
4 int4 audio bitrate
5 str video codec
6 int4 video bitrate
7 str video resolution
8 str file type (extension)

byte4
1 str dub language
2 str sub language
3 int4 length in seconds
4 str description
5
6
7
8 str anidb file name


acode:

byte1
1 int4 anime total episodes
2 int4 last episode nr (highest, not special)
3 str year
4 str type
5 str related aid list
6 str category list
7
8

byte2
1 str romaji name
2 str kanji name
3 str english name
4 str other name
5 str short name list
6 str synonym list
7 str producer name list
8 str producer id list

byte3
1 str epno
2 str ep name
3 str ep romaji name
4 str ep kanji name
5
6
7
8

byte4
1 str group name
2 str group short name
3
4
5
6
7
8