#3081
|
|||
|
|||
Okay, seems that my previous attempts with scripts broke something, loaded a backup and it works flawlessly.
Thank you! |
#3082
|
|||
|
|||
You're welcome.
|
#3083
|
|||
|
|||
Is there a reason there's not a separate subforum just for Event Scripter discussions?
https://board.jdownloader.org/showth...366#post541366 |
#3084
|
|||
|
|||
I've come across a number of sites that now include #hashtag text in the filenames. I don't want those, as they tend to make the pathname excessively long.
I raised the question on this thread. I wrote this script to strip them out. It's called via a Packagizer Hook: Code:
if (linkcheckDone) { var myPackagizerLink = link; var fileName = myPackagizerLink.getName(); var re, ext, newName; if (fileName !== null && fileName.includes("#")) { ext = fileName.slice((fileName.lastIndexOf(".") - 1 >>> 0) + 2); if (ext !== "") { ext = "." + ext.toLowerCase(); } fileName = fileName.substr(0, (fileName.length - ext.length)); rgx = new RegExp("#[a-zA-Z0-9_]+", "gi"); newName = fileName.replace(rgx, ""); rgx = new RegExp("\\s\\s+", "gi"); newName = newName.replace(rgx, " "); newName = newName.trim(); myPackagizerLink.setName(newName + ext); } } |
#3085
|
||||
|
||||
New separate subforum for EventScripter scripts:
https://board.jdownloader.org/forumdisplay.php?f=52
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3086
|
||||
|
||||
Moved EventScripter thread in our new EventScripter subforum and pinned it there.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
08.12.2024, 17:49 |
StefanM |
Message deleted by pspzockerscene.
Reason: User requested deletion of this post
|
08.12.2024, 17:51 |
StefanM |
Message deleted by pspzockerscene.
Reason: User requested deletion of this post
|
Thread Tools | |
Display Modes | |
|
|