JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 14.08.2024, 07:37
ilovewacha ilovewacha is offline
Baby Loader
 
Join Date: May 2024
Posts: 8
Default 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".
Reply With Quote
  #2  
Old 14.08.2024, 10:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,031
Default

Quote:
Originally Posted by ilovewacha View Post
"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>"
Because you did not specify a matching group in "if sourceurl contains". you just entered a text but no placeholder/groups
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:
justthegays.com/video/*
Please try for yourself first but of course we can help in case you're struck or need help/got questions
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 14.08.2024 at 10:26.
Reply With Quote
  #3  
Old 15.09.2024, 20:21
ilovewacha ilovewacha is offline
Baby Loader
 
Join Date: May 2024
Posts: 8
Default

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!
Reply With Quote
  #4  
Old 16.09.2024, 13:47
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,990
Default

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
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #5  
Old 16.09.2024, 19:28
ilovewacha ilovewacha is offline
Baby Loader
 
Join Date: May 2024
Posts: 8
Default

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**
Attached Images
File Type: png New Bitmap image.png (193.8 KB, 1 views)
Reply With Quote
  #6  
Old 17.09.2024, 09:16
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,990
Default

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"
  }
]
Rule as plaintext:
pastebin.com/raw/4ivJpfJS
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by pspzockerscene; 17.09.2024 at 09:39. Reason: EDIT
Reply With Quote
  #7  
Old 17.09.2024, 22:51
ilovewacha ilovewacha is offline
Baby Loader
 
Join Date: May 2024
Posts: 8
Default

Awesome, it worked!

For some reason I had a rule for another site, maybe that interfered with it.

Thanks again!
Reply With Quote
  #8  
Old 18.09.2024, 12:19
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,990
Default

Thanks for your feedback.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 18:24.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.