Example: Modify filename via anchor in URL
Posted by pspzockerscene psp, Last modified by pspzockerscene psp on 30 April 2021 11:36 AM

Packagizer example rule: Modify filename via anchor in URL

What this rule does:
This rule is using a wildcards to get everything behind "#filename=" and set it as a new filename.
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 filename for each of them instead of the original filename.
Original URL: http://cdn8.appwork.org/speed.zip -> Would show up with filename "speed.zip" in JD.
--> Let's say we want JD to set this filename instead:
 
1. Modify URL(s):
http://cdn8.appwork.org/speed.zip#filename=%F0%9F%98%83TestNewFilename.zip
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 filename will be set accordingly.



Attachments 
 
 packagizer_example_modify_filename_via_anchor_in_URL.packagizer (1.68 KB)
 packagizer_example_modify_filename_via_anchor_in_URL.png (84.27 KB)
 smiley_workaround.png (1.85 KB)