JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 13.01.2021, 23:23
Lode Lode is offline
Junior Loader
 
Join Date: Jun 2020
Posts: 11
Default indexof

Good morning. I'm pretty new on JD and I need to fix a simple (maybe) problem.
I need to add a sequential number before all the files name I'm downloading in a single session.
I've read some thread about that argument, but probably I'm still wrong.
I've create a new rules and I 've checked only two voices:
Matches on any File or Link and ignores conditions below
and
Filename
into this field I've written <jd:indexof><jd:orgfilename>

then I've tested and I've obtained only this: <jd:indexof>filename

What's wrong? What is missing in the rules?

Thanks to all those who want to help me.

Lode
Reply With Quote
  #2  
Old 14.01.2021, 11:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
Originally Posted by Lode View Post
into this field I've written <jd:indexof><jd:orgfilename>
then I've tested and I've obtained only this: <jd:indexof>filename
What exactly do you mean by that?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 14.01.2021, 11:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
<jd:indexof>
is replaced in Linkgrabber by the current index of the link within it's package. When you move the link within the package, the number will change
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 14.01.2021, 12:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

I just tested and could not reproduce any issue
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 14.01.2021, 17:02
Lode Lode is offline
Junior Loader
 
Join Date: Jun 2020
Posts: 11
Default

Thank you for your quick reply.
Now, after a lot of test, I've discovered that this rule doesn't work if you use the test link at the bottom of the rule's page, but work fine when you run it with real links.
Then I've noticed that if you use the default rules the program install during setup(that I haven't disabled) the program divide all the links in a different folder and every link is numbered with '1'.

How can i fix it?

If I disable all this default rules, my rule seems to work fine but JD divide automatically the links in two different folder
The links offine and the links online and use two different numeration.

Can you help me?
Reply With Quote
  #6  
Old 14.01.2021, 17:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

The "test link" at the bottom can only replace what is known and will signal matching rule with checkmark or failed icon. the tag is dynamic can gets replaced at later time, that's why it is still shown.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 14.01.2021, 18:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Quote:
Originally Posted by Lode View Post
haven't disabled) the program divide all the links in a different folder
JDownloader will auto package similiar links (either by name, archive or plugin or manually set...) into the same package.
I need example links to tell you more. Most likely some links are offline with bad/no name and because of that auto grouping fails to find best package
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 14.01.2021, 20:24
Lode Lode is offline
Junior Loader
 
Join Date: Jun 2020
Posts: 11
Default

Thank you again.
Probably I've solved the first step.

Then I need another step to completely format the filename.
I have to split the name in 2 parts and get only the last one.

the name is always [first part alway different]/wordalwaythesame/[last part alway different]
I need to add to the number, a space or a dot, and then the [last part of always different]

Do you prefer I'll open a new thread?

Or you can help me here?
Reply With Quote
  #9  
Old 15.01.2021, 11:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

I can help here but best would be to create new thread to not mix topics.
Please either post example links into new thread or send them to support@jdownloader.org
And explain with example(dummy) filename what you want to achieve.
Should be possible via Packagizer rules on first sight
__________________
JD-Dev & Server-Admin
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 00:31.
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.