View Single Post
  #127  
Old 09.07.2017, 13:46
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,130
Default

Quote:
Originally Posted by kogepan View Post
... but couldn't find a getUUID function to get linkIds in PackagizerLinkSandbox.
UUID is not present/available for "packagizer link".

Quote:
Originally Posted by kogepan View Post
... I'd like to merge those divided links into one single package.
Although It is possible to set the package name using other properties/methods available for the "Packagizer Hook" (for e.g. Based on matching host), it could be overwritten (by plugins) when the link is added to linkgrabber. Using "Packagizer Rule" would be a better option in this case.

Other properties/methods available for the "Packagizer Hook" can be used to set the package name.
Code:
// Set Package Name based on matching host
// Trigger Required: "Packagizer Hook"

var host = "myhost.com";
var packageName = "myPackageName";

if (link.getHost() == host) link.setPackageName(packageName);

It might be simpler/easier to merge the links to a single package using a "Packagizer Rule".

Last edited by mgpai; 09.07.2017 at 15:10. Reason: Correction and adding example script.
Reply With Quote