Knowledgebase:
Example: Modify Package name via anchor in URL
Posted by pspzockerscene psp, Last modified by pspzockerscene psp on 30 April 2021 01:22 PM

Packagizer example rule: Modify package name via anchor in URL

What this rule does:
This rule is using a wildcards to get everything behind "#packagename=" and set it as a new package name.
This can be useful if you e.g. have a list of many URLs and want to force JD to use a pre-defined custom package name for some of them instead of the package name which JD would otherwise auto set.
Original URL: http://cdn8.appwork.org/speed.zip -> Would show up with package name "speed" in JD.
--> Let's say we want JD to set this package name instead:
 
1. Modify URL(s):
http://cdn8.appwork.org/speed.zip#packagename=%F0%9F%A4%A3NewPackagename
Note: Make sure to properly URL encode filenames inside URLs!
You can use websites like urlencoder.org to make sure the encoding is correct.
2. Add Packagizer rule which modifies the filenames of all URLs matching the above pattern:

Now add your modified URL to JD and the package name will be set accordingly.

Note:
You can accomplish pretty much the same by using a .crawljob (FolderWatch) file and just adding this into the LinkGrabber.



Attachments 
 
 smiley_workaround_2.png (1.97 KB)
 packagizer_example_modify_packagename_via_anchor_in_URL.png (84.58 KB)
(1 vote(s))
Helpful
Not helpful