User:Ommina: Difference between revisions

From AniDB
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:


=== FILE acode & fcode replacement ===
=== FILE acode & fcode replacement ===
=== ANIME acode replacement ===


<center>
<center>
Line 14: Line 16:
   <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>
  </tr>
  </tr>
  <tr>
  <tr>
Line 26: Line 29:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>int4 anime total episodes</td>
     <td>int aid</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>int4 highest episode number</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
Line 124: Line 127:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>str epno</td>
     <td>int4 episodes</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>str ep name</td>
     <td>int4 normal ep count</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>str ep romaji name</td>
     <td>int4 special ep count</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>str ep kanji name</td>
     <td>int4 air date</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>unused</td>
     <td>int4 end date</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>unused</td>
     <td>str url</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>unused</td>
     <td>str picname</td>
     </tr>
     </tr>
     <tr>
     <tr>
Line 173: Line 176:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>str group name</td>
     <td>int4 rating</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>str group short name</td>
     <td>int4 vote count</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>unused</td>
     <td>int4 temp rating</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>unused</td>
     <td>int4 temp vote count</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>unused</td>
     <td>int4 average review rating</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>unused</td>
     <td>int4 review count</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>unused</td>
     <td>str award list</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
     <td>reserved</td>
     <td>unused</td>
     </tr>
     </tr>
   </table>
   </table>
   </td>
   </td>
</tr>
</table>
</center>
<center>
'''fmask:'''
<table border="1" cellpadding="0" cellspacing="2">
<tr>
  <td align="center">Byte 1</td>
  <td align="center">Byte 2</td>
  <td align="center">Byte 3</td>
  <td align="center">Byte 4</td>
</tr>
<tr>
   <td>
   <td>
   <table>
   <table>
Line 239: Line 225:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>unused</td>
     <td>int4 anime planet id</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>int4 aid</td>
     <td>int4 ANN id</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>int4 eid</td>
     <td>int4 allcinema id</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>int4 gid</td>
     <td>str animenfo id</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>int4 lid</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>list other episodes</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>int2 IsDeprecated</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
     <td>int2 state</td>
     <td>reserved</td>
     </tr>
     </tr>
   </table>
   </table>
   </td>
   </td>
</tr>
</table>
</center>
=== ANIME Relationship Types ===
%adb_seq_subs::seq_type = (
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'
);
=== MYLISTEXPORT: Schedule a MyList Export ===
Queues a [http://anidb.net/perl-bin/animedb.pl?show=export MyList Export] by the AniDb Servers.  As with a manual export request, exports are only done during periods when server load is low.  As a result, exports may take up to 24 hours.  The client submitting the request will receive an AniDb message when the export is ready to be collected.
Only one export can be in the queue at a time.
'''Command String:'''
* MYLISTEXPORT [template={str template_name}|cancel=1]
'''Possible Replies:'''
* 217 Export Queued
* 218 Export Cancelled
* 317 No Such Template
* 318 Export Already In Queue
* 319 No Export In Queue or Export In Progress
'''Info:'''
* ''template_name'' must match an available export template on the [http://anidb.net/perl-bin/animedb.pl?show=export MyList Export] page.
* ''cancel'' will cancel any pending export request, queued either through UDP or the web server.
* Clients can subscribe the message notifications if they wish to be notified when an export is complete.
=== Empty Table ===
<table>
<tr>
  <td colspan="3" align="center">Byte 1</td>
</tr>
<tr>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
</tr>
<tr>
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
</tr>
<tr>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
</tr>
<tr>
  <td>2</td>
  <td align="right">4</td>
  <td>String</td>
</tr>
<tr>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
</tr>
<tr>
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
</tr>
<tr>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
</tr>
<tr>
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
</tr>
<tr>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
</tr>
</table>
=== FILE: Retrieve File Data ===
'''Command String:'''<br>
by fid:
* FILE fid={int4 id}[&fcode={int4}&acode={int4}]
by size+ed2k hash:
* FILE size={int8 size}&ed2k={str ed2khash}[&fcode={int4}&acode={int4}]
by anime, group and epno
* 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}[&fcode={int4}&acode={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}[&fcode={int4}&acode={int4}]
'''Possible Replies:'''
* 220 FILE
: {int4 fid}|{int4 aid}|{int4 eid}|{int4 gid}|{int4 state}|{int8 size}|{str ed2k}|{str anidbfilename}
* 220 FILE
: {int4 fid}|...(data list)
* 322 MULTIPLE FILES FOUND
: {int4 fid 0}|{int4 fid 1}|...|{int4 fid n}
* 320 NO SUCH FILE
'''Info:'''
* 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.
* anidbfilename is the anidb filename for the file.
: However this name does not contain all the extra information of the filenames on AniDB and might be composed slightly different.
* 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.
* Only the first matching file is returned when aname, gname and epno is used.
'''State:'''
<pre>
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_UNC: file is uncensored
8 / 128 FILE_CEN: file is censored
examples:
state ==== 9 ==> FILE_CRCOK+FILE_ISV3 ==> file matched official crc and is version 3
state ==== 0 ==> - ==> file was not crc checked and is version 1
state ==== 34 ==> FILE_CRCERR+FILE_ISV5 ==> file DID NOT match official crc and is version 5
state ==== 1 ==> FILE_CRCOK ==> file matched official crc and is version 1
state ==== 8 ==> FILE_ISV3 ==> file was not crc checked and is version 3
</pre>
<center>
'''amask:'''
<table border="0" cellpadding="0" cellspacing="2">
<tr>
  <td align="center">Byte 1</td>
  <td align="center">Byte 2</td>
  <td align="center">Byte 3</td>
  <td align="center">Byte 4</td>
</tr>
<tr>
   <td>
   <td>
   <table>
   <table>
Line 288: Line 442:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>int8 size</td>
     <td>int4 anime total episodes</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>str ed2k</td>
     <td>int4 highest episode number</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>str md5</td>
     <td>str year</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>str sha1</td>
     <td>str type</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>str crc32</td>
     <td>str related aid list</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>unused</td>
     <td>str related aid type</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>unused</td>
     <td>str category list</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
     <td>unused</td>
     <td>reserved</td>
     </tr>
     </tr>
   </table>
   </table>
Line 334: Line 488:
     <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>reserved</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 source</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 audio codec</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>int4 audio bitrate</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 video codec</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>int4 video bitrate</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 video resolution</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>
     <td>str file type (extension)</td>
     <td>str producer id list</td>
     </tr>
     </tr>
   </table>
   </table>
Line 386: Line 540:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>str dub language</td>
     <td>str epno</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>str sub language</td>
     <td>str ep name</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>int4 length in seconds</td>
     <td>str ep romaji name</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>str description</td>
     <td>str ep kanji name</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>int4 release date</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr>
     <tr>
Line 421: Line 575:
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
     <td>str anidb file name</td>
     <td>unused</td>
     </tr>
     </tr>
   </table>
   </table>
   </td>
   </td>
</tr>
</table>
</center>
=== ANIME acode replacement ===
<center>
'''amask:'''
<table border="1" cellpadding="0" cellspacing="2">
<tr>
  <td align="center">Byte 1</td>
  <td align="center">Byte 2</td>
  <td align="center">Byte 3</td>
  <td align="center">Byte 4</td>
  <td align="center">Byte 5</td>
</tr>
<tr>
   <td>
   <td>
   <table>
   <table>
Line 452: Line 586:
     <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>int aid</td>
     <td>str group 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>unused</td>
     <td>str group short 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 year</td>
     <td>unused</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 type</td>
     <td>unused</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 related aid list</td>
     <td>unused</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 related aid type</td>
     <td>unused</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 category list</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr>
     <tr bgcolor="#eee">
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
Line 494: Line 628:
   </table>
   </table>
   </td>
   </td>
</tr>
</table>
</center>
<center>
'''fmask:'''
<table border="1" cellpadding="0" cellspacing="2">
<tr>
  <td align="center">Byte 1</td>
  <td align="center">Byte 2</td>
  <td align="center">Byte 3</td>
  <td align="center">Byte 4</td>
</tr>
<tr>
   <td>
   <td>
   <table>
   <table>
Line 504: Line 655:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>str romaji name</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>str kanji name</td>
     <td>int4 aid</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>str english name</td>
     <td>int4 eid</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>str other name</td>
     <td>int4 gid</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>str short name list</td>
     <td>int4 lid</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>str synonym list</td>
     <td>list other episodes</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>str producer name list</td>
     <td>int2 IsDeprecated</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
     <td>str producer id list</td>
     <td>int2 state</td>
     </tr>
     </tr>
   </table>
   </table>
Line 553: Line 704:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>int4 episodes</td>
     <td>int8 size</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>int4 normal ep count</td>
     <td>str ed2k</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>int4 special ep count</td>
     <td>str md5</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>int4 air date</td>
     <td>str sha1</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>int4 end date</td>
     <td>str crc32</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>str url</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>str picname</td>
     <td>unused</td>
     </tr>
     </tr>
     <tr>
     <tr>
Line 602: Line 753:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>int4 rating</td>
     <td>reserved</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>int4 vote count</td>
     <td>str source</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>int4 temp rating</td>
     <td>str audio codec</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>int4 temp vote count</td>
     <td>int4 audio bitrate</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>int4 average review rating</td>
     <td>str video codec</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>2</td>
     <td>2</td>
     <td align="right">4</td>
     <td align="right">4</td>
     <td>int4 review count</td>
     <td>int4 video bitrate</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>1</td>
     <td>1</td>
     <td align="right">2</td>
     <td align="right">2</td>
     <td>str award list</td>
     <td>str video resolution</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
     <td>unused</td>
     <td>str file type (extension)</td>
     </tr>
     </tr>
   </table>
   </table>
Line 651: Line 802:
     <td>7</td>
     <td>7</td>
     <td align="right">128</td>
     <td align="right">128</td>
     <td>int4 anime planet id</td>
     <td>str dub language</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>6</td>
     <td>6</td>
     <td align="right">64</td>
     <td align="right">64</td>
     <td>int4 ANN id</td>
     <td>str sub language</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>5</td>
     <td>5</td>
     <td align="right">32</td>
     <td align="right">32</td>
     <td>int4 allcinema id</td>
     <td>int4 length in seconds</td>
     </tr>
     </tr>
     <tr>
     <tr>
     <td>4</td>
     <td>4</td>
     <td align="right">16</td>
     <td align="right">16</td>
     <td>str animenfo id</td>
     <td>str description</td>
     </tr>
     </tr>
     <tr bgcolor="#eee">
     <tr bgcolor="#eee">
     <td>3</td>
     <td>3</td>
     <td align="right">8</td>
     <td align="right">8</td>
     <td>unused</td>
     <td>int4 release date</td>
     </tr>
     </tr>
     <tr>
     <tr>
Line 686: Line 837:
     <td>0</td>
     <td>0</td>
     <td align="right">1</td>
     <td align="right">1</td>
     <td>reserved</td>
     <td>str anidb file name</td>
     </tr>
     </tr>
   </table>
   </table>
Line 695: Line 846:
</center>
</center>


=== ANIME Relationship Types ===
'''Examples:''' (html escaped code intended)
 
<pre>
%adb_seq_subs::seq_type = (
> FILE fid=15201&s=xxxxx
1 => 'sequel',
< 220 FILE
2 => 'prequel',
15201|74|445|41|1|242772540|a53c401ed95eaa502ba85acde773040c|Ai yori Aoshi - 1 - Relation - [Zhentarim DivX].ogm
 
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'
);
 
=== MYLISTEXPORT: Schedule a MyList Export ===
Queues a [http://anidb.net/perl-bin/animedb.pl?show=export MyList Export] by the AniDb Servers.  As with a manual export request, exports are only done during periods when server load is low.  As a result, exports may take up to 24 hours.  The client submitting the request will receive an AniDb message when the export is ready to be collected.


Only one export can be in the queue at a time.
> FILE fid=15201&fcode=33554432&acode=1049346
< 220 FILE
15201|ogm|zx|01|Relation|Ai yori Aoshi


'''Command String:'''
> FILE aname=narutaru&gname=triad&amp;amp;aone&epno=2&s=xxxxx
* MYLISTEXPORT [template={str template_name}|cancel=1]
< t001 220 FILE
15459|782|8772|380|1|171298816|2c8a3b53d94d8579b9b81941c549e108|Narutaru - 02 - Catastrophe During the Daytime - [Triad & AonE].avi
</pre>


'''Possible Replies:'''
----
* 217 Export Queued
* 218 Export Cancelled
* 317 No Such Template
* 318 Export Already In Queue
* 319 No Export In Queue or Export In Progress
 
'''Info:'''
* ''template_name'' must match an available export template on the [http://anidb.net/perl-bin/animedb.pl?show=export MyList Export] page.
* ''cancel'' will cancel any pending export request, queued either through UDP or the web server.
* Clients can subscribe the message notifications if they wish to be notified when an export is complete.
 
 
 
=== Empty Table ===
 
<table>
<tr>
  <td colspan="3" align="center">Byte 1</td>
</tr>
<tr>
  <td>Bit</td>
  <td>Decimal</td>
  <td>Data Field</td>
</tr>
<tr>
  <td>0</td>
  <td align="right">1</td>
  <td>String</td>
</tr>
<tr>
  <td>1</td>
  <td align="right">2</td>
  <td>String</td>
</tr>
<tr>
  <td>2</td>
  <td align="right">4</td>
  <td>String</td>
</tr>
<tr>
  <td>3</td>
  <td align="right">8</td>
  <td>String</td>
</tr>
<tr>
  <td>4</td>
  <td align="right">16</td>
  <td>String</td>
</tr>
<tr>
  <td>5</td>
  <td align="right">32</td>
  <td>String</td>
</tr>
<tr>
  <td>6</td>
  <td align="right">64</td>
  <td>String</td>
</tr>
<tr>
  <td>7</td>
  <td align="right">128</td>
  <td>String</td>
</tr>
</table>

Revision as of 03:31, 30 October 2008


FILE acode & fcode replacement

ANIME acode replacement

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 Relationship Types

%adb_seq_subs::seq_type = ( 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' );

MYLISTEXPORT: Schedule a MyList Export

Queues a MyList Export by the AniDb Servers. As with a manual export request, exports are only done during periods when server load is low. As a result, exports may take up to 24 hours. The client submitting the request will receive an AniDb message when the export is ready to be collected.

Only one export can be in the queue at a time.

Command String:

  • MYLISTEXPORT [template={str template_name}|cancel=1]

Possible Replies:

  • 217 Export Queued
  • 218 Export Cancelled
  • 317 No Such Template
  • 318 Export Already In Queue
  • 319 No Export In Queue or Export In Progress

Info:

  • template_name must match an available export template on the MyList Export page.
  • cancel will cancel any pending export request, queued either through UDP or the web server.
  • Clients can subscribe the message notifications if they wish to be notified when an export is complete.


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

FILE: Retrieve File Data

Command String:
by fid:

  • FILE fid={int4 id}[&fcode={int4}&acode={int4}]

by size+ed2k hash:

  • FILE size={int8 size}&ed2k={str ed2khash}[&fcode={int4}&acode={int4}]

by anime, group and epno

  • 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}[&fcode={int4}&acode={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}[&fcode={int4}&acode={int4}]

Possible Replies:

  • 220 FILE
{int4 fid}|{int4 aid}|{int4 eid}|{int4 gid}|{int4 state}|{int8 size}|{str ed2k}|{str anidbfilename}
  • 220 FILE
{int4 fid}|...(data list)
  • 322 MULTIPLE FILES FOUND
{int4 fid 0}|{int4 fid 1}|...|{int4 fid n}
  • 320 NO SUCH FILE

Info:

  • 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.
  • anidbfilename is the anidb filename for the file.
However this name does not contain all the extra information of the filenames on AniDB and might be composed slightly different.
  • 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.
  • Only the first matching file is returned when aname, gname and epno is used.

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_UNC: file is uncensored
8 / 128		FILE_CEN: file is censored

examples:
state ==== 9 ==> FILE_CRCOK+FILE_ISV3 ==> file matched official crc and is version 3
state ==== 0 ==> - ==> file was not crc checked and is version 1
state ==== 34 ==> FILE_CRCERR+FILE_ISV5 ==> file DID NOT match official crc and is version 5
state ==== 1 ==> FILE_CRCOK ==> file matched official crc and is version 1
state ==== 8 ==> FILE_ISV3 ==> file was not crc checked and is version 3

amask:

Byte 1 Byte 2 Byte 3 Byte 4
Bit Dec Data Field
7 128 int4 anime total episodes
6 64 int4 highest episode number
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 str epno
6 64 str ep name
5 32 str ep romaji name
4 16 str ep kanji name
3 8 unused
2 4 unused
1 2 unused
0 1 unused
Bit Dec Data Field
7 128 str group name
6 64 str group short name
5 32 unused
4 16 unused
3 8 unused
2 4 unused
1 2 unused
0 1 reserved

fmask:

Byte 1 Byte 2 Byte 3 Byte 4
Bit Dec Data Field
7 128 unused
6 64 int4 aid
5 32 int4 eid
4 16 int4 gid
3 8 int4 lid
2 4 list other episodes
1 2 int2 IsDeprecated
0 1 int2 state
Bit Dec Data Field
7 128 int8 size
6 64 str ed2k
5 32 str md5
4 16 str sha1
3 8 str crc32
2 4 unused
1 2 unused
0 1 unused
Bit Dec Data Field
7 128 reserved
6 64 str source
5 32 str audio codec
4 16 int4 audio bitrate
3 8 str video codec
2 4 int4 video bitrate
1 2 str video resolution
0 1 str file type (extension)
Bit Dec Data Field
7 128 str dub language
6 64 str sub language
5 32 int4 length in seconds
4 16 str description
3 8 int4 release date
2 4 unused
1 2 unused
0 1 str anidb file name

Examples: (html escaped code intended)

> FILE fid=15201&s=xxxxx
< 220 FILE
15201|74|445|41|1|242772540|a53c401ed95eaa502ba85acde773040c|Ai yori Aoshi - 1 - Relation - [Zhentarim DivX].ogm

> FILE fid=15201&fcode=33554432&acode=1049346 
< 220 FILE 
15201|ogm|zx|01|Relation|Ai yori Aoshi

> FILE aname=narutaru&gname=triad&amp;aone&epno=2&s=xxxxx
< t001 220 FILE
15459|782|8772|380|1|171298816|2c8a3b53d94d8579b9b81941c549e108|Narutaru - 02 - Catastrophe During the Daytime - [Triad & AonE].avi