UDP API DEV: Difference between revisions

Line 106: Line 106:
=== FILE: extend ? high ===
=== FILE: extend ? high ===
'''Description:'''<br>
'''Description:'''<br>
Retrieves most available info for a specific file defined by id or size+ed2k (and possibly others).
Retrieves most available info for a specific file defined by id, size + ed2k or anime + group + epno.


'''Command String:'''<br>
'''Command String:'''<br>
Line 113: Line 113:
by size+ed2k hash:
by size+ed2k hash:
* FILE size={int4 size}&ed2k={str ed2khash}[&code={int4}]
* FILE size={int4 size}&ed2k={str ed2khash}[&code={int4}]
 
by anime, group and epno
by <anime title> <ep#> <groupname> ? <br>
* FILE anime={int4/str anime name or aid}&group={int4/str group name or gid}&epno{int4 episode number}[&code={int4}]
by <aid> <ep#> <groupname> ? <br>
by <aid> <ep#> <gid> ?


'''Possible Replies:'''
'''Possible Replies:'''
* XXX FILE
* XXX FILE
: {int4 fid}|{int4 aid}|{int4 eid}|{int4 gid}|{int4 lid}|{int4 state}|{int4 size}|{str ed2k}|{int2 type}{str animetitle}|{str eptitle}{str groupname}
: {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}|{int4 aid}|{int4 eid}|{int4 gid}|{int4 lid}|...(data list)
Line 126: Line 124:


'''Info:'''
'''Info:'''
* See FILE
* by crc for @find command
* 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.
* 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.


Line 174: Line 170:
'''Examples:'''
'''Examples:'''
<pre>
<pre>
> FILE fid=15201
> FILE fid=15201&s=xxxxx
< 220 FILE
< 220 FILE
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
> FILE fid=15201&data=-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|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
> FILE fid=83532&data=17006624&s=xxxxx
< 220 FILE
< 220 FILE
83532|896|26316|374|e1980142|KAA|S3|Ayu Mayu Theater 03|Kimi ga Nozomu Eien
83532|896|26316|374|e1980142|KAA|S3|Ayu Mayu Theater 03|Kimi ga Nozomu Eien


> FILE anime=narutaru&group=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
</pre>
</pre>
'''Comments:'''<br>
'''Comments:'''<br>
546

edits

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