#1
|
|||
|
|||
Packagizer: URL path to download directory
I have a list of URLs in plain text. These URLs describe a directory structure on the server, e.g. **External links are only visible to Support Staff**www.website/dir1/dir2/file.exe .
Using the normal LinkGrabber will make JDownloader write all these files into the same directory, i.e. I'd end up with website/file1.exe, website/file2.exe, and so on. Rather, I'd like to preserve the folder structure, i.e. download the file into dir1/dir2/. I am using the Packagizer with two rules: If Sourceurl contains Code:
**External links are only visible to Support Staff** Code:
<jd:source:1> Code:
**External links are only visible to Support Staff** Is there a way to fix this? |
#2
|
||||
|
||||
all / within filenames are replaced at the core as they are deemed illegal characters.
at best do not listen for it, and manually place in the path <jd:source:1>/<jd:source:2> raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
||||
|
||||
You either have to create a rule for different level of depths
like 1.) ..../([^/]+)/([^/]+) 2.)...../([^/]+)/([^/]+)/([^/]+) 3.)...../([^/]+)/([^/]+)/([^/]+)/([^/]+) or use the eventscripter and write script, see https://board.jdownloader.org/showthread.php?t=70525 that parses the path and sets the download folder as wished. in case you need help, ask/contact mpgai. He's our script master
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|