#2241
|
||||
|
||||
Quote:
It would make more sense in extracting the archive and then compress it again to multipart with max 900 mb parts
__________________
JD-Dev & Server-Admin |
#2242
|
|||
|
|||
Quote:
|
#2243
|
||||
|
||||
@xefeg: why is 1gb too big? where do you upload too that does not accept/support larger files?
As I said, spliting the files without taking care of the whole archive will break manual/auto extraction of the whole archive.
__________________
JD-Dev & Server-Admin |
#2244
|
|||
|
|||
Quote:
After the download is completed, I split the folder ABC with WinRAR with filesize 999 MB and upload. I just want this process to be automatic using a script or something if Jdownloader supports. |
#2245
|
||||
|
||||
@xefeg: you can disable the ABC subfolder, see https://support.jdownloader.org/Know...ackage-feature
You will have to ask mgpai for a script for eventscripter that copies file and splits it (with some 3rd party command line tool on your system).
__________________
JD-Dev & Server-Admin |
#2246
|
|||
|
|||
Script Request - Rename or Replace filename after download, if the string is found
1. Downloaded filename is delete_OriginalFilename.rar 2. If string 'delete' is found, replace it with 'A' 3. Else do nothing 4. Output = A_OriginalFilename.rar Last edited by xefeg; 09.06.2022 at 13:53. |
#2247
|
||||
|
||||
@xefeg: can also be done via Packagizer, see https://support.jdownloader.org/Know...paketverwalter
filename - contains - delete_* filename - set - <jd:orgfilename:1>
__________________
JD-Dev & Server-Admin |
#2248
|
|||
|
|||
Quote:
However, if the file is OriginalFilename_delete.rar It seems to remove all the strings. How to remove if the unwanted string is at the end. Please help. eg. OriginalFilename_delete.rar Output = OriginalFilename.rar |
#2249
|
|||
|
|||
Code:
if > filename > contains : *_delete* then set > file name > <jd:orgfilename:1><jd:orgfilename:2> |
#2250
|
||||
|
||||
@xefeg
Quote:
create two rules, one will remove leading, the other will remove trailing *delete* @or use the super nice solution from mgpai BIG THUMBS UP!
__________________
JD-Dev & Server-Admin |
#2251
|
||||
|
||||
@mgpai
Side question: Do you have any kind of current overview of all your scripts? Just wondering because we do not have a good place for them but you could e.g. put them into a github library which I think you did sometimes in the past.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2252
|
||||
|
||||
Quote:
Thanks! Created that EventScripter button and renamed it to 'Export link info' Installed the script I can click that button, confirmed permission. But what about that file, the script should create? Did I forget something? Last edited by StefanM; 09.06.2022 at 15:39. |
#2253
|
||||
|
||||
@StefanM: trigger must be set to "Downloadlist contextmenu button pressed"
__________________
JD-Dev & Server-Admin |
#2254
|
|||
|
|||
Quote:
Btw, on the filename can we add two arguments? *delete*, *newdelete* Or we need to create two rules? |
#2255
|
||||
|
||||
@xefeg
Quote:
__________________
JD-Dev & Server-Admin |
#2256
|
|||
|
|||
A file in 'timestamp.tsv' format will be created in JD folder. Example (j:\Apps\Jdownloader\1654782759265.tsv)
Code:
var file = JD_HOME + "/" + Date.now() + ".tsv"; It is also possible to create a script which can export the entire list using a different trigger, for example on toolbar button press, without having to select any links. |
#2257
|
|||
|
|||
A. Only possible with downloads or while feeding origin links.
B. Eventscripter does not have access to crawling process. C. Can use sleep. (Will post example script when @Jiaz adds the new method) One more option which can help with rate limiting is reduce the linkchecker/linkcrawler threads in advanced settings. Default is 4 and 12. (I use 4 for both) The best approach is to control it at the plugin level, as suggested by @Jiaz/@psp. Does it help with rate limit? I thought that is triggered only after crawling/collectiing process is completed. |
#2258
|
||||
|
||||
Yes, because the packagizer script then *blocks* the linkcrawler thread
__________________
JD-Dev & Server-Admin |
#2259
|
||||
|
||||
Quote:
Maybe it's better to wait until a real use case exists.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2260
|
|||
|
|||
Quote:
Since we cannot post any urls or upload any files in the forum, perhaps JD team can host an official repo to share scripts, rules etc. |
#2261
|
|||
|
|||
Quote:
It is indeed difficult to create a one-size-fits-all script for edge cases. |
#2262
|
|||
|
|||
You will have to use external programs which support CLI and call it in eventscripter. If you need help adding them to a script, post the terminal commands which you are currently using.
|
#2263
|
||||
|
||||
Quote:
Should have searched there in the first place Yes, it would be nice to have another button (another script) which exports the entire list. And a few more questions, if I may... 1. Would it be possible to use below format instead? 2022-06-09-16-09-30-868.tsv 2. I believe, this Code:
var file = JD_HOME + "/" So, I could add a fixed path instead of JD_HOME, right? 3. If this is not too much, could you please add code to create some sort of popup confirmation about the file being written successfully. 4. Or would it even be possible to jump to the file automatically? Thanks for any efforts taken in advance! Last edited by StefanM; 09.06.2022 at 18:59. |
#2264
|
||||
|
||||
I'm dreaming about that too :D
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2265
|
|||
|
|||
|
#2266
|
||||
|
||||
@mgpai
Do you see any chance to create a script (delays at least for LinkGrabber) now that Jiaz mentioned use of packagaizer hook here to add sleep/wait in linkcrawler.? Quote:
Quote:
|
#2267
|
||||
|
||||
List of JD-specific terms for scripts
@mgpai or anyone who knows...
Where can I find a list of JD-specific terms to use in Event Scripter-scripts? Examples:
Just tried to figure out from working scripts... Right now I would like to know below terms (taken from Edit Menu Node for Copy Information button): (if not already included in the above list)
Thanks for any efforts taken... |
#2268
|
|||
|
|||
Quote:
Quote:
Quote:
You can test it yourself. No extensive code as such. Create a new script with the following and use it with "Packagizer Hook". (You can restart to kill the script thread if JD stalls) Code:
sleep(3000); // Delay in milliseconds Wait for @Jiaz to respond, in case he meant to use it differently. |
#2269
|
||||
|
||||
@StefanM
I'd recommend using a system-wide solution to limit requests to certain hosts. Looks like doing that via EventScripter will be complicated. I do not have a hint for such applications atm. but I'm quite sure such applications do exist.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2270
|
||||
|
||||
You'll find a list of all available Objects/Methods in the helper window above the source editor.
__________________
JD-Dev & Server-Admin |
#2271
|
||||
|
||||
Quote:
and... ... what does this (just an example) mean? Code:
var myString = myCrawlerJob.getText() What I was looking for, is a list, that I could use to search for strings to be used. Even if we look at a simple things such as the program folder... If I wouldn't know, what JD_HOME stands for, I would search for
This one I would have found, but others I would not. Anyway, as you mentioned that these scripts are only meant for developers, who are familiar with Java... Those developers would probably have it easier... Will study the list and learn how to find things... The most important thing is: After 12 years of using JD, you guys finally made me use Event Scripter - first time in 12 years... |
#2272
|
||||
|
||||
Quote:
The scripts are Javascript syntax.
__________________
JD-Dev & Server-Admin |
#2273
|
||||
|
||||
When you add links to JDownloader a CrawlerJob contains the links and other information and .getText is a way to access that
__________________
JD-Dev & Server-Admin |
#2274
|
||||
|
||||
Quote:
Quote:
__________________
JD-Dev & Server-Admin |
#2275
|
||||
|
||||
Quote:
I know. And maybe I will learn Javascript syntax some day. In the meantime I learn by copying, pasting, trial, and error... |
#2276
|
||||
|
||||
Quote:
But I just mentioned that example to point out that from that list in Event Scripter's 'Help' you cannot really see, what things mean... But maybe it's clear for somebody familiar with Javascript... |
#2277
|
||||
|
||||
Quote:
those placeholder is formatted filesize in different units
__________________
JD-Dev & Server-Admin |
#2278
|
||||
|
||||
Yes, as I said, I would have found this one by searching for different search strings, with one of them being 'installation directory'.
Just want to try to make you aware of the problems, a user can get encountered with. To give you another example: https://support.jdownloader.org/Know...to-jdownloader It is a great help. But it was written from the point of view of somebody (psp), who already had Event Scripter installed. What would the user do? They would follow the instructions to find out that Event Scripter Trigger from here: is not available. Why is it not available? I had to ask this myself! One important information is missing in that article: Before you start, you have to install Event Scripter extension... This is just another example for what I tried to explain before: For any developer it is more or less difficult, to put themselves in the shoes of a user. |
#2279
|
||||
|
||||
@StefanM
at the beginning of https://support.jdownloader.org/Know...to-jdownloader Quote:
__________________
JD-Dev & Server-Admin |
#2280
|
||||
|
||||
Quote:
Why would you read the "Add custom EventScripter buttons" article first without even knowing what the EventScripter is? I do not see any need to adjust the article you've linked. Instead, I updated our "Uninstall extensions" Article which now also covers the installation of extensions: https://support.jdownloader.org/Know...all-extensions I then cross-linked that in the "What is the EventScripter" Article: https://support.jdownloader.org/Know...event-scripter ...going by your logic we'd have to back-link every article which is part of a specific category. Sorry that makes no sense to me. If you're viewing an article and you're lost/need more info, just go to the root of the category and check out the other articles. In case of the EventScripter that would be here: https://support.jdownloader.org/Know...event-scripter Quote:
Don't get me wrong I know it is hard to get the view of our users but really why would you add an EventScripter trigger: - Without knowing what the EventScripter is --> Without then at least searching for "EventScripter" in our knowledgebase/forum Those articles are not- and will never be perfect but in my opinion most of them are understandable although I have to admit in the past we didn't get a lot of feedback about them (neither positive nor negative).
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 10.06.2022 at 17:54. Reason: Fixed typos |
Thread Tools | |
Display Modes | |
|
|