#1
|
|||
|
|||
Packagizer: rename files to "Download From"
I consulted this thread, but didn't address my issue: https://board.jdownloader.org/showthread.php?t=87423
I'm not able to rename files like I can with other sites. Here's an example link (heads up: explicit content): Download From url: **External links are only visible to Support Staff****External links are only visible to Support Staff** I want the file to be "122920-king-scot-pay-the-rent-amateur-gay-pov-.mp4" ===== Here's the other info on the url: Source: **External links are only visible to Support Staff****External links are only visible to Support Staff** File name: **External links are only visible to Support Staff****External links are only visible to Support Staff** Container: **External links are only visible to Support Staff****External links are only visible to Support Staff** ===== I can't get the packagizer rule to work: 1. "IF Sourceurl" contains "justthegays.com/" "THEN rename" <jd:source:1>, LinkGrabber doesn't detect the link (When I use packagizer's testing function, the renaming returns literally "<jd:source:1>") 2. "IF Sourceurl" contains "justthegays.com/" "THEN rename" <jd:orgfilename>, LinkGrabber detects the link File name becomes "4266.mp4" as it should, but not what I want. The same issue happens when I use "IF Downloadurl" instead of "IF Sourceurl". |
#2
|
||||
|
||||
Quote:
that can be referenced by :1 index. See https://support.jdownloader.org/de/k...the-packagizer Solution: you have to make the "if sourceURL" to conain either a "*" or make it better like Quote:
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 14.08.2024 at 10:26. |
#3
|
|||
|
|||
Thanks a lot!
I modified it to: If sourceurl contains "justthegays.com/*" Then file name = <jd:source:1> It does return the url name as file name in the testing function of packagizer, but then the nothing is added when I add the links to linkgrabber. This doesn't happen with other domains. Thanks for your help! |
#4
|
||||
|
||||
Jiaz' answer would only be correct for such links if we had a plugin for justthegays.com which we have not, see:
https://board.jdownloader.org/showthread.php?t=95785 To make this work the way you want it, you need such a rule: File Type -> is -> Video file Sourceurls -> contains -> justthegays.com/video/* ...then set Filename: <jd:source:1>.mp4
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
|||
|
|||
Much appreciated!
After following your instruction, the linkgrabber is still not detecting any links from that domain. Would you mind trying on your end? **External links are only visible to Support Staff****External links are only visible to Support Staff** |
#6
|
||||
|
||||
It looks like you are mixing up Packagizer rules and LinkCrawler rules.
The Packagizer can be used to set filenames/package names and so on via condiitons. If you want to make JDownloader additionally automatically detect those links, you will need to additionally add one LinkCrawler rule of type DEEPDECRYPT. See: https://support.jdownloader.org/de/k...kcrawler-rules Try it and let me know if you need help with that. EDIT Here is an example rule which should do the job: Code:
[ { "enabled": true, "logging": false, "maxDecryptDepth": 1, "name": "example rule for justthegays.com", "pattern": "**External links are only visible to Support Staff**, "rule": "DEEPDECRYPT", "deepPattern": "src=\"(https?://[^\"]+)\" type=\"video/mp4" } ] pastebin.com/raw/4ivJpfJS
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 17.09.2024 at 09:39. Reason: EDIT |
#7
|
|||
|
|||
Awesome, it worked!
For some reason I had a rule for another site, maybe that interfered with it. Thanks again! |
#8
|
||||
|
||||
Thanks for your feedback.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|