JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 16.10.2019, 14:22
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,338
Default Need a tutorial for naming files with url names...

Need a tutorial for naming files with url names...


a two-part name and a four-part name
URL:
Code:
website.../xxx/xxx
website.../xxx/xxx/xxx/xxx
Reply With Quote
  #2  
Old 16.10.2019, 14:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

downloadURL-> contains -> .*/(xxx)/(xxx)
set filename to <jd:hoster:1><jd:hoster:2>
same with more matching groups

there are many results via search and you can do the regex by yourself
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 16.10.2019, 14:55
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,338
Default

Test:

website.x/1/2

.*/(.*)/(.*)

jd2 decrypt
12.jdeatime

shouldbe:
1_2.html
Reply With Quote
  #4  
Old 16.10.2019, 15:18
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

please provide real working example links. In your example there is no jdeatme, there is no html
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 16.10.2019, 15:54
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,338
Default

Example 1:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**


Example 2:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #6  
Old 16.10.2019, 16:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Quote:
https?://.*?/(.*?)/(.*?)(?:$|\?|#).*
<jd:hoster:1><jd:hoster:2>.html
use #.jdeatme
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 16.10.2019, 16:42
djmakinera djmakinera is offline
JD Legend
 
Join Date: May 2010
Location: Poland
Posts: 8,338
Default

All is well, with a small fix filename.

<jd:hoster:1>_<jd:hoster:2>.html
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 16:23.
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 - 2019, Jelsoft Enterprises Ltd.