Quote:
Originally Posted by mirino
My new questions...
|
5. No. link.host or link.getHost(), returns the plugin host. link.getLinkInfo() returns for e.g., the following:
Code:
{
"group" : "VideoExtensions",
"desc" : "Video File",
"partNum" : -1
}
Since the host is a video host, the script just queries the 'host name', instead of 'file type'.
6. 'true' = append, 'false' = do not append (this will not overwrite the file, but throw an error if a file with same name exists on disk).
7. The contentURL method for this host always returns the download url so fallback option is not required. For some hosts where the contentURL is protected (e.g. filecrypt), you can use pluginURL as fall back. For e.g.:
Code:
var downloadUrl = link.contentURL || link.pluginURL;
8. Correct.
Happy scripting.