contentlink — provide suitable link for downloading media
use Wacs;
use Wacs::WacsUI;
scalar contentlink( | ...) ; |
parameter | description |
---|---|
setno | The set number to provide |
stype | The type of the set to provide (I,V,etc) |
srank | The rank of the set (P,S,C etc) |
ext | The file name extension to use (zip, wmv, mpg, etc) |
serve | How to serve the file: raw - the original file, cooked - edited and combined with any continuation files |
silent | This function can either return the desired link as a string and
optionally print it out. If silent is set to y or
yes , then it will ONLY be returned and not printed. |
archive | The name the resulting file should be delivered as - ie Jenny-12.zip. Defaults to set12345.zip as with earlier releases of Wacs. |
The contentlink function is used to create links to allow downloading of the actual content from WACS. This is designed to make a determination as to whether to simply provide a link to wacszip as in previous WACS releases, or to provide a link into the new content caching areas introduced in WACS 0.9.1.