Thread: [Solved] Script to renaming
View Single Post
  #40  
Old 15.01.2021, 12:22
SMS SMS is offline
DSL User
 
Join Date: Jun 2019
Posts: 38
Default

Quote:
Originally Posted by Jiaz View Post
Example link
Code:
https://board.jdownloader.org/Nothing.zip#name=Yeah.zip
https://board.jdownloader.org/Nothing2.zip#name=Yeah2.zip
https://board.jdownloader.org/Nothing3.zip#name=Yeah3.zip
instead of
Code:
Yeah.zip:::https://board.jdownloader.org/Nothing.zip
Yeah2.zip:::https://board.jdownloader.org/Nothing2.zip
Yeah3.zip:::https://board.jdownloader.org/Nothing3.zip
ALWAYS JUST ONE SINGLE RULE
Packagizer Rule
Code:
SourceURL contains
.*#name=(.+)
enable regex checkbox

then set
filename to <jd:source:1>
This Packagizer Rule has the following inconsistent behavior:

With #name=A 'B, C.jpg, the file is renamed to A 'B, C.jpg
With #name=A 'B', C.jpg, the file is renamed to A 'B
i.e. it cuts off the file name when `'` is followed by `)` or `,` and a space but not by `B`.

Many files that I want to download are affected. How can this be fixed? A complete solution would be great, without having to tediously analyze by trial and error which other character combinations apart from `', ` and `') ` are problematic.

Edit: Same problem when the file names are like that on the server (without renaming via the Packagizer Rule). For example:
**External links are only visible to Support Staff****External links are only visible to Support Staff** 'B, C.jpg is grabbed as A 'B, C.jpg
**External links are only visible to Support Staff****External links are only visible to Support Staff** 'B', C.jpg is grabbed as A 'B

Last edited by SMS; 15.01.2021 at 12:40.
Reply With Quote