Knowledgebase:
Example: Modify filename via anchor in URL
Posted by pspzockerscene psp, Last modified by pspzockerscene psp on 05 February 2021 04:25 PM

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!
2. Add Packagizer rule which modifies the filenames of all URLs matching the above pattern:

Nor 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)
(2 vote(s))
Helpful
Not helpful