View Single Post
  #1314  
Old 17.04.2020, 20:56
Mnk3y Mnk3y is offline
I will play nice!
 
Join Date: Apr 2020
Posts: 2
Default

Hello, I hope I can ask my question here. Maybe there is someone who could help me with it or maybe there is already a script.

The script should do the following:

After unpacking all archives of a JDownloader package all files in this package should be renamed.

Example:

The package in JDownloader is called "Movie (2020)". JDownloader is set to create a folder named like the package. After downloading and unpacking, the files should be renamed to the package name.

For subtitles the language and if necessary "forced" should be appended. If "eng" found in file name add ".eng" else ".ger" and if "forced" found in file name add ".forced".
These files are usually in a "Subs" folder and should be moved to the root directory "Movie (2020)".

movie.2020.1080p.mkv -> Movie (2020)
subs/movie.2020.1080p-ger.sub/idx -> Movie (2020).ger.sub/idx
subs/movie.2020.1080p-ger.forced.sub/idx -> Movie (2020).ger.forced.sub/idx

Is it possible to implement this with regex via the Event Scripter?

Thanks in advance!
Reply With Quote