Table of Contents
Warning | |
---|---|
In Wacs 0.9.2 the exisitng WacsId module was split into two - this part WacsID contains the good routines that are expected to remain as part of the Wacs API in the long term. Those routines that were more questionable and likely to be re-written have been moved to WacsDnl. You need to include both to replicate the pre-0.9.2 functionality |
Table 11.1. Function Summary: Identification Module
function | description |
---|---|
reset_attr | reset the global attribute table |
id_get_flag | get previously determined flag |
id_set_attr | store specified attribute for reuse later |
id_get_info | get previously determined catinfo (ssetflag) |
id_get_photog | get previously determined photographer |
id_get_dnldno | get download record number |
id_get_modelno | get the model number |
id_get_modelname | get the model's name |
id_get_vendor | get the vendor reference |
id_get_dbhandle | get the current DB handle |
id_get_key | get the current models id at the current vendor |
id_get_setkey | get the set key at the current vendor |
id_get_setname | get the name of the most recent set |
id_get_status | get the status of the most recent set |
id_get_notes | get the current value of the notes field |
id_get_setno | get the current value of the setno field |
id_get_srank | get the current value of the srank field (New in 0.9.0) |
id_get_sprev | get the current value of the sprev field (New in 0.9.0) |
id_get_sduplicates | get the current value of the sduplicates field (New in 0.9.0) |
id_get_saltmedia | get the current value of the saltmedia field (New in 0.9.0) |
id_get_sdownload | get the current value of the sdownload field (New in 0.9.0) |
id_get_attr | get the specified attribute for the specified object (New in 0.9.2) |
info_addupdate | adds or updates an exising info.xml file with the information provided (New in 1.0.0) |
info_setexists | searches the info.xml file for the specified set number (New in 1.0.0) |
media_scan | scan the specified media file for sizes, codecs, etc (New in 0.9.2) |
media_get_attr | retrieve the requested parameter for the specified media file (New in 0.9.2) |
media_thumbs | generate appropriate thumbnails for use with video sets (New in 0.9.2) |
media_settings | provides the current settings for thumbnailing, dimension descriptions, etc (New in 0.9.2) |
dnld_markdone | mark the download record as successfully done |
dnld_checkadd | checks or adds a new download record |
dnld_update | update the download record with new information |
vend_dnld | return the download location for the specified vendor |
vid_getsize | get the size of the specified video file |
find_namestem | look for when known image naming conventions |
id_gen_proto2struct | process a prototype link url and work out what tokens it contains. |
id_gen_tokenmatchstring | looks for the specified token |
id_gen_trymatch | iterates through trying to find matches for the tokens given |
id_vid_trymatch | special version of id_gen_trymatch which looks only for videos |
id_gen_findobj | find what the target object is actually called |
id_gen_getvarval | generalised matching routine used in id_gen_findobj |
chk_vid_type | check if type extension is a known video file type |
chkid_existing | see if we already have this idmap for this model/site combination |