View Single Post
  #6  
Old 26.05.2020, 15:59
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,553
Default

Quote:
Originally Posted by Ryonez View Post
... dynamic variable for the packagizer that will return the plugin that was used in the download...
Quote:
Originally Posted by Jiaz View Post
... <jd:hoster:number> this placeholder will be replaced by the matching group(number) of downloadurl pattern or the host itself if number is -1 ...
While you can use <jd:hoster:-1> in packagizer to get the host name, it will break auto package name generation. This will also return only the plugin name in some cases (e.g. http links).

A better option would be to use "Split Packages By Hoster" option in the context menu. Unlike packagizer rule, you can use this to append the host name only to the selected packages. Also, it will return the actual host name even for direct http links.

By default it will create a package name in 'packagename - hostname' format. But you can invert the pattern in advanced settings (LinkgrabberSettings.splitpackagenamefactorypattern).
Reply With Quote