Posted: Sat Sep 10, 2005 10:28 am
You can make one yourself.
It's quite easy to be based on any current style.
It's quite easy to be based on any current style.
Code: Select all
e<tmpl_var name=data_ep_epno>.num = "<tmpl_if expr="(data_ep_state == 0)"><tmpl_var name=data_ep_epno></tmpl_if><tmpl_if expr="(data_ep_state == 1) || (data_ep_state == 2)">S<tmpl_var expr="substr( data_ep_epno , 1 )"></tmpl_if><tmpl_if expr="(data_ep_state == 4) || (data_ep_state == 6)">C<tmpl_var expr="substr( data_ep_epno , 3 )"></tmpl_if><tmpl_if expr="(data_ep_state == 16) || (data_ep_state == 18)"><tmpl_var name=data_ep_epno></tmpl_if><tmpl_if expr="(data_ep_state == 32) || (data_ep_state == 34)">T<tmpl_var expr="substr( data_ep_epno , 3 )"></tmpl_if><tmpl_if expr="(data_ep_state == 64) || (data_ep_state == 66)">P<tmpl_var expr="substr( data_ep_epno , 3 )"></tmpl_if><tmpl_if expr="(data_ep_state == 128) || (data_ep_state == 130)">O<tmpl_var expr="substr( data_ep_epno , 3 )"></tmpl_if>"
Using Perl 5.8.6.811 and replaced the files requested by the SDK. :/Parsing template[html-lightblue]:
* cleaning output directory... done.
* parsing mylist.tpl...ERROR: Storable binary image v2.7 more recent than I am
(v2.6) at blib\lib\Storable.pm (autosplit into blib\lib\auto\Storable\_retrieve.
al) line 323.
Also got the same problem, solved by fetching latest version of Storable with CPANDonGato wrote:I'm having this error while making the example output and don't have the single idea why it happens.
Using Perl 5.8.6.811 and replaced the files requested by the SDK. :/Parsing template[html-lightblue]:
* cleaning output directory... done.
* parsing mylist.tpl...ERROR: Storable binary image v2.7 more recent than I am
(v2.6) at blib\lib\Storable.pm (autosplit into blib\lib\auto\Storable\_retrieve.
al) line 323.
linux wrote:Start CPAN and type:Code: Select all
install Storable
(instructions for windows are guessed, but should work never the less)Windows wrote:Start PPM and type:Code: Select all
install Storable
I hate this crap...ppm> Install Storable
Error: Package 'Storable' not found. Please 'search' for it first.
ppm> Search Storable
Searching in Active Repositories
1. Tie-StorableDir [0.075] Perl extension for tying directories with Storabl~
2. Tie-StorableDir [0.075] Tie-StorableDir
crap, didn't know that...DonGato wrote:I hate this crap...ppm> Install Storable
Error: Package 'Storable' not found. Please 'search' for it first.
ppm> Search Storable
Searching in Active Repositories
1. Tie-StorableDir [0.075] Perl extension for tying directories with Storabl~
2. Tie-StorableDir [0.075] Tie-StorableDir
well, from what i found out:DonGato wrote:Yes, at last I made it work.
Now I don't understand shit about the changes.
What was exactly added (not, the small readme log doesn't help much)?
Some values were removed? Which ones?
Which values replaced which?
Maybe I should drop the style...
and here is my updated version of all ids in usage as of today.changelog wrote:Code: Select all
0.10 - 30.04.2006 - fixed file data (only 1. vid and 1&2. aud&sub stream data available) - new fields FILE: data_file_type, (int) # file type (see ids.txt) data_file_vidcnt, (int) # number of video streams data_file_ar, (int) # aspect ratio id (see ids.txt) data_file_fps, (int) # frames per second data_file_vflags, (string?) # video flags ? data_file_audcnt, (int) # number of audio streams data_file_chantype, (int) # number of channels for aud stream2 (see ids.txt) data_file_abitrate2, (int) # audio bitrate for aud stream2 data_file_acodec_id2, (int) # audio codec for aud stream2 data_file_acodec_name2, (string) # audio codec name for aud stream2 data_file_chantype2, (int) # number of channels for aud stream1 data_file_lang_id2, (int) # audio language id for aud stream2 data_file_lang_name2, (int) # audio language name for aud stream data_file_subcnt, (int) # number of subtitle streams data_file_sflags, (string?) # subtitle flags? data_file_stype, (int) # subtitle subtitle type (see ids.txt) data_file_sub_id2, (int) # subtitle stream2 id data_file_sub_name2, (string) # subtitle stream2 name data_file_sflags2, (string?) # subtitle stream2 flags data_file_stype2, (int) # subtitle stream2 type data_file_length (int) # file lenght in seconds ANIME: data_anime_annid, (int) # ann id status_anime_ann_listed, (boolean) # is ann listed data_anime_annurl, (string) # ann url data_anime_allcinemaid, (int) # allcinema id status_anime_allcinema_listed, (boolean) # is allcinema listed data_anime_allcinemaurl, (string) # allcinema url ## Categories, sorting should be done by parent Ids. loop_anime_genren, data_anime_genren_id, (int) # id of the cat data_anime_genren_name, (string) # name of the cat data_anime_genren_parentid, (string) # parent id of the cat (root = 1) data_anime_genren_ishentai, (boolean) # is cat hentai ? ## Tags (no actual usage, but in export we could search this?) loop_anime_tag, data_anime_tag_id, (int) # tag id data_anime_tag_name, (string) # tag name data_anime_tag_date, (string) # tag date ## Producers loop_anime_company, data_anime_company_id, (int) # company id data_anime_company_name, (string) # company name data_anime_company_shortname, (string) # company shortname data_anime_company_othername, (string) # company othername data_anime_company_type, (string) # company type (see ids.txt) data_anime_company_url, (string) # company url data_anime_company_picurl, (string) # company picurl data_anime_company_aptype (string) # company type of work in this anime (see ids.txt) GLOBAL: global_userstat_animeadded, (int) # total animes added global_userstat_epsadded, (int) # total episodes added global_userstat_filesadded, (int) # total files added global_userstat_groupsadded, (int) # total groups added global_userstat_lamefiles, (int) # total number of lame files global_userstat_lamefilesp, (int) # percentage of lame files ? global_userstat_independencep, (int) # independence percentage ? global_userstat_leechp, (int) # leech percentage ? global_userstat_reviews, (int) # number of reviews global_userstat_votes, (int) # total number of votes global_userstat_totalviewedp, (int) # percentage of total viewed eps ? global_userstat_totalownedp, (int) # percentage of total owned eps ? global_userstat_ownviewedp, (int) # percentage of total owned viewed eps ? global_userstat_viewedepcnt (int) # total viewed episode count ?
as for missing images, i simply downloaded the pics acording to the names, i think that mandarin and cantonese use the the chinese flag, as for the other flags, i have no ideia and no access to the ftp server to download them, maybe they don't exist?DonGato wrote:Before anything thanks for the help as it wasn't much understandable the little written in the changelog, besides all the other documentation is not updated and misleading at times.
Some problems:
Missing images (audio/subs):
finish
chinese (mandarin)
chinese (cantonese)
other
tatar
The forged data has the wrong AniDB URL (old one) so it's a pain to check some features of the template.
I don't see much use for streams for now. Is the old behavior still kept? I mean, old variables are still used and filled with the main stream?
Code: Select all
$tpl->param("global_animedburl" => "http://anidb.ath.cx/perl-bin/animedb.pl");
Code: Select all
$tpl->param("global_animedburl" => "http://anidb.info/");
$tpl->param("global_userstat_animeadded" => "1");
$tpl->param("global_userstat_epsadded" => "3");
$tpl->param("global_userstat_filesadded" => "169");
$tpl->param("global_userstat_groupsadded" => "1");
$tpl->param("global_userstat_lamefiles" => "0");
$tpl->param("global_userstat_lamefilesp" => "0%");
$tpl->param("global_userstat_independencep" => "3%");
$tpl->param("global_userstat_leechp" => "97%");
$tpl->param("global_userstat_reviews" => "1");
$tpl->param("global_userstat_votes" => "171");
$tpl->param("global_userstat_totalviewedp" => "6%");
$tpl->param("global_userstat_totalownedp" => "13%");
$tpl->param("global_userstat_ownviewedp" => "49%");
$tpl->param("global_userstat_viewedepcnt" => "3072");
Code: Select all
// Video Streams
f<tmpl_var name=data_file_id>.videoCnt = "<tmpl_var name=data_file_vidcnt>";
f<tmpl_var name=data_file_id>.video = new Array();
<tmpl_if expr="data_file_vidcnt > 0">f<tmpl_var name=data_file_id>.video[0] = new Object();
f<tmpl_var name=data_file_id>.video[0].Res = "<tmpl_var name=data_file_res_name>";
f<tmpl_var name=data_file_id>.video[0].Br = <tmpl_var name=data_file_vbitrate>;
f<tmpl_var name=data_file_id>.video[0].CodecID = <tmpl_var name=data_file_vcodec_id>;
f<tmpl_var name=data_file_id>.video[0].CodecName = "<tmpl_var name=data_file_vcodec_name>";
f<tmpl_var name=data_file_id>.video[0].AR = <tmpl_var name=data_file_ar>;
f<tmpl_var name=data_file_id>.video[0].FPS = <tmpl_var name=data_file_fps>;
f<tmpl_var name=data_file_id>.video[0].Flags = <tmpl_var name=data_file_vflags>;</tmpl_if>
// Audio Streams
f<tmpl_var name=data_file_id>.audioCnt = "<tmpl_var name=data_file_audcnt>";
f<tmpl_var name=data_file_id>.audio = new Array();
<tmpl_if expr="data_file_audcnt > 0">f<tmpl_var name=data_file_id>.audio[0] = new Object();
f<tmpl_var name=data_file_id>.audio[0].Br = <tmpl_var name=data_file_abitrate>;
f<tmpl_var name=data_file_id>.audio[0].CodecID = <tmpl_var name=data_file_acodec_id>;
f<tmpl_var name=data_file_id>.audio[0].CodecName = "<tmpl_var name=data_file_acodec_name>";
f<tmpl_var name=data_file_id>.audio[0].ChanType = <tmpl_var name=data_file_chantype>;
f<tmpl_var name=data_file_id>.audio[0].langID = <tmpl_var name=data_file_lang_id>;
f<tmpl_var name=data_file_id>.audio[0].langName = "<tmpl_var name=data_file_lang_name>";</tmpl_if>
<tmpl_if expr="data_file_audcnt > 1">f<tmpl_var name=data_file_id>.audio[1] = new Object();
f<tmpl_var name=data_file_id>.audio[1].Br = <tmpl_var name=data_file_abitrate2>;
f<tmpl_var name=data_file_id>.audio[1].CodecID = <tmpl_var name=data_file_acodec_id2>;
f<tmpl_var name=data_file_id>.audio[1].CodecName = "<tmpl_var name=data_file_acodec_name2>";
f<tmpl_var name=data_file_id>.audio[1].ChanType = <tmpl_var name=data_file_chantype2>;
f<tmpl_var name=data_file_id>.audio[1].langID = <tmpl_var name=data_file_lang_id2>;
f<tmpl_var name=data_file_id>.audio[1].langName = "<tmpl_var name=data_file_lang_name2>";</tmpl_if>
// Subtitle Streams
f<tmpl_var name=data_file_id>.subCnt = "<tmpl_var name=data_file_subcnt>";
f<tmpl_var name=data_file_id>.sub = new Array();
<tmpl_if expr="data_file_subcnt > 0">f<tmpl_var name=data_file_id>.sub[0] = new Object();
f<tmpl_var name=data_file_id>.sub[0].Type = <tmpl_var name=data_file_stype>;
f<tmpl_var name=data_file_id>.sub[0].Flags = <tmpl_var name=data_file_sflags>;
f<tmpl_var name=data_file_id>.sub[0].ID = <tmpl_var name=data_file_sub_id>;
f<tmpl_var name=data_file_id>.sub[0].Name = "<tmpl_var name=data_file_sub_name>";</tmpl_if>
<tmpl_if expr="data_file_subcnt > 1">f<tmpl_var name=data_file_id>.sub[1] = new Object();
f<tmpl_var name=data_file_id>.sub[1].Type = <tmpl_var name=data_file_stype2>;
f<tmpl_var name=data_file_id>.sub[1].Flags = <tmpl_var name=data_file_sflags2>;
f<tmpl_var name=data_file_id>.sub[1].ID = <tmpl_var name=data_file_sub_id2>;
f<tmpl_var name=data_file_id>.sub[1].Name = "<tmpl_var name=data_file_sub_name2>";</tmpl_if>
i agree with you, we got lots of info, i have more than you, but i like to have all the file info anywayDonGato wrote:Ok, I will add some data, but some is not meant to be included in the templates IMO. We already have a lot of info. If you want all the info then visit the site and/or use anidb-o-matic.