Name

contentlink — provide suitable link for downloading media

Synopsis

use Wacs;
use Wacs::WacsUI;
scalar contentlink(...); 
 

Parameters

parameterdescription
setnoThe set number to provide
stypeThe type of the set to provide (I,V,etc)
srankThe rank of the set (P,S,C etc)
extThe file name extension to use (zip, wmv, mpg, etc)
serveHow to serve the file: raw - the original file, cooked - edited and combined with any continuation files
silentThis 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.
archiveThe name the resulting file should be delivered as - ie Jenny-12.zip. Defaults to set12345.zip as with earlier releases of Wacs.

Summary

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.

Availability

The contentlink function was introduced in Wacs 0.9.1 to compliment the new content caching mechanism and was not available in previous releases. It is not available in previous releases. It is available in both perl and php.