User:Ommina: Difference between revisions

From AniDB
Jump to navigation Jump to search
Line 4: Line 4:




=== ANIME acode replacement ===
=== ANIME: Retrieve Anime Data ===
'''Command String:'''<br>
by aid
* ANIME aid={int4 id}&amask={hexstr}
by name
* ANIME aname={str anime name}&amask={hexstr}


<center>
'''Possible Replies:'''
* 230 ANIME
: {int4 aid}|{int4 eps}|{int4 ep count}|{int4 special cnt}|{int4 rating}|{int4 votes}|{int4 tmprating}|{int4 tmpvotes}|{int4 review rating average}|{int4 reviews}|{str year}|{str type}|{str romaji}|{str kanji}|{str english}|{str other}|{str short names}|{str synonyms}|{str category list}
* 330 NO SUCH ANIME


'''amask:'''
'''Info:'''
* Fields are returned in the same order they appear in the ''amask'' field list: byte 1, bit 7 first
* Synonyms and short names are separated with '
* Category names are separated with ',' and ordered by weight (desc).
* By name: must be perfect match of romaji/kanji/english/other/synonym/short name.
* NOTE: The category list is the first data to be truncated if needed. And then: synonym list, short name list. This applies for the FILE command too.


<table border="1" cellpadding="0" cellspacing="2">
<table border="0" cellpadding="0" cellspacing="2">
<tr><td colspan="5" align="center">'''amask'''</td></tr>
  <tr>
  <tr>
   <td align="center">Byte 1</td>
   <td align="center">'''Byte 1'''</td>
   <td align="center">Byte 2</td>
   <td align="center">'''Byte 2'''</td>
   <td align="center">Byte 3</td>
   <td align="center">'''Byte 3'''</td>
   <td align="center">Byte 4</td>
   <td align="center">'''Byte 4'''</td>
   <td align="center">Byte 5</td>
   <td align="center">'''Byte 5'''</td>
  </tr>
  </tr>
  <tr>
  <tr>
Line 22: Line 36:
   <table>
   <table>
     <tr>
     <tr>
     <td>Bit</td>
     <td>'''Bit'''</td>
     <td align="right">Dec</td>
     <td align="right">'''Dec'''</td>
     <td>Data Field</td>
     <td>'''Data Field'''</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
Line 71: Line 85:
   <table>
   <table>
     <tr>
     <tr>
     <td>Bit</td>
     <td>'''Bit'''</td>
     <td align="right">Dec</td>
     <td align="right">'''Dec'''</td>
     <td>Data Field</td>
     <td>'''Data Field'''</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr>
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>str romaji name</td>
     <td>str romaji name</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>str kanji name</td>
     <td>str kanji name</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr>
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>str english name</td>
     <td>str english name</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>str other name</td>
     <td>str other name</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr>
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>str short name list</td>
     <td>str short name list</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>str synonym list</td>
     <td>str synonym list</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr>
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>str producer name list</td>
     <td>str producer name list</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
Line 120: Line 134:
   <table>
   <table>
     <tr>
     <tr>
     <td>Bit</td>
     <td>'''Bit'''</td>
     <td align="right">Dec</td>
     <td align="right">'''Dec'''</td>
     <td>Data Field</td>
     <td>'''Data Field'''</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
Line 169: Line 183:
   <table>
   <table>
     <tr>
     <tr>
     <td>Bit</td>
     <td>'''Bit'''</td>
     <td align="right">Dec</td>
     <td align="right">'''Dec'''</td>
     <td>Data Field</td>
     <td>'''Data Field'''</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr>
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>int4 rating</td>
     <td>int4 rating</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>int4 vote count</td>
     <td>int4 vote count</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr>
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>int4 temp rating</td>
     <td>int4 temp rating</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>int4 temp vote count</td>
     <td>int4 temp vote count</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr>
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>int4 average review rating</td>
     <td>int4 average review rating</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>int4 review count</td>
     <td>int4 review count</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr>
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>str award list</td>
     <td>str award list</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
Line 218: Line 232:
   <table>
   <table>
     <tr>
     <tr>
     <td>Bit</td>
     <td>'''Bit'''</td>
     <td align="right">Dec</td>
     <td align="right">'''Dec'''</td>
     <td>Data Field</td>
     <td>'''Data Field'''</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
Line 267: Line 281:
</table>
</table>


</center>
 
=== ANIME: Retrieve Anime Data (deprecated) ===
 
'''Command String:'''<br>
by aid
* ANIME aid={int4 id}[&acode={int4}]
by name
* ANIME aname={str anime name}[&acode={int4}]
 
'''Possible Replies:'''
* 230 ANIME
: {int4 aid}|{int4 eps}|{int4 ep count}|{int4 special cnt}|{int4 rating}|{int4 votes}|{int4 tmprating}|{int4 tmpvotes}|{int4 review rating average}|{int4 reviews}|{str year}|{str type}|{str romaji}|{str kanji}|{str english}|{str other}|{str short names}|{str synonyms}|{str category list}
* 330 NO SUCH ANIME
 
'''Info:'''
* Synonyms and short names are separated with '
* Category names are separated with ',' and ordered by weight (desc).
* No support for genres.
* By name: must be perfect match of romaji/kanji/english/other/synonym/short name.
* NOTE: The category list is the first data to be truncated if needed. And then: synonym list, short name list. This applies for the FILE command too.
 
'''acode:'''
{| cellpadding="0" align="center"
! width="40"|Bit
! width="80"|Decimal
! width="160"|Data field
! width="50"|-
! width="40"|Bit
! width="120"|Decimal
! width="160"|Data field
|- style="background-color: #eee;"
|0 ||1 || int4 aid || || 16 || 65536 || str url
|-
|1 ||2 || int4 episodes || || 17 || 131072 || str picname
|- style="background-color: #eee;"
|2 ||4 || int4 normal ep count || || 18 || 262144 || str year
|-
|3 ||8 || int4 special ep count ||  || 19 || 524288 || str type
|- style="background-color: #eee;"
|4 ||16 || int4 rating || || 20 || 1048576 || str romaji name
|-
|5 ||32 || int4 vote count || || 21 || 2097152 || str kanji name
|- style="background-color: #eee;"
|6 ||64 || int4 temp rating || || 22 || 4194304 || str english name
|-
|7 ||128 || int4 temp vote count || || 23 || 8388608 || str other name
|- style="background-color: #eee;"
|8 ||256 || int4 average review rating || || 24 || 16777216 || str short name list
|-
|9 ||512 || int4 review count || || 25 || 33554432 || str synonym list
|- style="background-color: #eee;"
|10 ||1024 || int4 air date || || 26 || 67108864 || str category list
|-
|11 ||2048 || int4 end date || || 27 || 134217728 || str related aid list
|- style="background-color: #eee;"
|12 ||4096 || int4 anime planet id || || 28 || 268435456 || str producer name list
|-
|13 ||8192 || int4 anime news network id || || 29 || 536870912 || str producer id list
|- style="background-color: #eee;"
|14 ||16384 || int4 allcinema id || || 30 || 1073741824 || str award list
|-
|15 ||32768 || str animenfo id || || 31 || -2147483648 || reserved (all)
|}
 
'''Examples:''' (html escaped code intended)
  > ANIME aname=tmm&s=xxxxx
  < 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
 
  > ANIME aname=&#12490;&#12523;&#12488;&s=xxxxx
  < 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)
 
----


=== ANIME Relationship Types ===
=== ANIME Relationship Types ===

Revision as of 21:50, 30 October 2008



ANIME: Retrieve Anime Data

Command String:
by aid

  • ANIME aid={int4 id}&amask={hexstr}

by name

  • ANIME aname={str anime name}&amask={hexstr}

Possible Replies:

  • 230 ANIME
{int4 aid}|{int4 eps}|{int4 ep count}|{int4 special cnt}|{int4 rating}|{int4 votes}|{int4 tmprating}|{int4 tmpvotes}|{int4 review rating average}|{int4 reviews}|{str year}|{str type}|{str romaji}|{str kanji}|{str english}|{str other}|{str short names}|{str synonyms}|{str category list}
  • 330 NO SUCH ANIME

Info:

  • Fields are returned in the same order they appear in the amask field list: byte 1, bit 7 first
  • Synonyms and short names are separated with '
  • Category names are separated with ',' and ordered by weight (desc).
  • By name: must be perfect match of romaji/kanji/english/other/synonym/short name.
  • NOTE: The category list is the first data to be truncated if needed. And then: synonym list, short name list. This applies for the FILE command too.
amask
Byte 1 Byte 2 Byte 3 Byte 4 Byte 5
Bit Dec Data Field
7 128 int aid
6 64 unused
5 32 str year
4 16 str type
3 8 str related aid list
2 4 str related aid type
1 2 str category list
0 1 reserved
Bit Dec Data Field
7 128 str romaji name
6 64 str kanji name
5 32 str english name
4 16 str other name
3 8 str short name list
2 4 str synonym list
1 2 str producer name list
0 1 str producer id list
Bit Dec Data Field
7 128 int4 episodes
6 64 int4 normal ep count
5 32 int4 special ep count
4 16 int4 air date
3 8 int4 end date
2 4 str url
1 2 str picname
0 1 unused
Bit Dec Data Field
7 128 int4 rating
6 64 int4 vote count
5 32 int4 temp rating
4 16 int4 temp vote count
3 8 int4 average review rating
2 4 int4 review count
1 2 str award list
0 1 unused
Bit Dec Data Field
7 128 int4 anime planet id
6 64 int4 ANN id
5 32 int4 allcinema id
4 16 str animenfo id
3 8 unused
2 4 unused
1 2 unused
0 1 reserved


ANIME: Retrieve Anime Data (deprecated)

Command String:
by aid

  • ANIME aid={int4 id}[&acode={int4}]

by name

  • ANIME aname={str anime name}[&acode={int4}]

Possible Replies:

  • 230 ANIME
{int4 aid}|{int4 eps}|{int4 ep count}|{int4 special cnt}|{int4 rating}|{int4 votes}|{int4 tmprating}|{int4 tmpvotes}|{int4 review rating average}|{int4 reviews}|{str year}|{str type}|{str romaji}|{str kanji}|{str english}|{str other}|{str short names}|{str synonyms}|{str category list}
  • 330 NO SUCH ANIME

Info:

  • Synonyms and short names are separated with '
  • Category names are separated with ',' and ordered by weight (desc).
  • No support for genres.
  • By name: must be perfect match of romaji/kanji/english/other/synonym/short name.
  • NOTE: The category list is the first data to be truncated if needed. And then: synonym list, short name list. This applies for the FILE command too.

acode:

Bit Decimal Data field - Bit Decimal Data field
0 1 int4 aid 16 65536 str url
1 2 int4 episodes 17 131072 str picname
2 4 int4 normal ep count 18 262144 str year
3 8 int4 special ep count 19 524288 str type
4 16 int4 rating 20 1048576 str romaji name
5 32 int4 vote count 21 2097152 str kanji name
6 64 int4 temp rating 22 4194304 str english name
7 128 int4 temp vote count 23 8388608 str other name
8 256 int4 average review rating 24 16777216 str short name list
9 512 int4 review count 25 33554432 str synonym list
10 1024 int4 air date 26 67108864 str category list
11 2048 int4 end date 27 134217728 str related aid list
12 4096 int4 anime planet id 28 268435456 str producer name list
13 8192 int4 anime news network id 29 536870912 str producer id list
14 16384 int4 allcinema id 30 1073741824 str award list
15 32768 str animenfo id 31 -2147483648 reserved (all)

Examples: (html escaped code intended)

 > ANIME aname=tmm&s=xxxxx
 < 230 ANIME
 161|52|50|0|715|57|777|35|816|1|2002-2003|TV|Tokyo Mew Mew|東京ミュウミュウ||||TMM'mew|Cat Girls
 > ANIME aname=ナルト&s=xxxxx
 < 230 ANIME
 239|0|140|2|1000|10|855|3750|803|36|2002-2005|TV|Naruto|ナルト||נארוטו|NARUTO'ناروتو|naruto tv'ntv|Action,Shounen,Past,...(cut)

ANIME Relationship Types

1 => 'sequel', 2 => 'prequel',

11 => 'same setting', 12 => 'same setting',

21 => 'alternative setting', 22 => 'alternative setting',

31 => 'alternative version', 32 => 'alternative version',

41 => 'character', 42 => 'character',

51 => 'side story', 52 => 'parent story',

61 => 'summary', 62 => 'full story',

100 => 'other'


WISHLIST: Retrieve Wishlist Date

WISHLISTADD: Add Anime to Wishlist

WISHLISTDEL: Remove Anime from Wishlist

Empty Table

Byte 1
Bit Decimal Data Field
0 1 String
1 2 String
2 4 String
3 8 String
4 16 String
5 32 String
6 64 String
7 128 String