#1721
|
|||
|
|||
![]()
It seems that due to this script, links aren't always automatically transfered to the downloads tab but have to be added manually. Link crawler is set to transfer and start downloads by default, yet it fails to do so on occasion.
|
#1722
|
|||
|
|||
![]()
Hello,
Sorry to bother you, but wonder if there is a way to rename the filename to be the same as the directory when I provide the save path? Thanks. |
#1723
|
|||
|
|||
![]() Quote:
If however there is common logic/pattern in genrating the save path, for e.g. based on file name, download url, source url, etc., you can use packagizer rule or script to set them both at the same time. If you provide some working examples I can look into it. |
#1724
|
|||
|
|||
![]() Quote:
Please wait for feedback from @Jiaz. In the meanwhile, you can try increasing the following advanced setting: Code:
LinkgrabberSettings.autoconfirmdelay |
#1725
|
|||
|
|||
![]()
Hi there,
id like a modification of this script https://board.jdownloader.org/showpo...&postcount=881 The script restart JD just when JD is in idle, but my JD is never in idle ![]() Is it possible that when a new update is availible, JD doesn´t start new downloads but finish current running downloads and then do the restart? |
#1726
|
||||
|
||||
![]() Quote:
downloadsV2/setStopMark(long linkId, long packageId)
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 04.06.2021 at 14:50. |
#1727
|
|||
|
|||
![]()
New downloads can still start till the link/package with stop mark is finished.
|
#1728
|
||||
|
||||
![]()
set stopmark on disabled link and no further downloads will start, else further downloads will stop once the stopmark link is finished/failed or at least tried once
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 04.06.2021 at 15:31. |
#1729
|
|||
|
|||
![]()
Still a bit complicated since the trigger is interval. The stopmark will be set on each run. Also disabling a link just to set the stopmark is not an elegant solution. Will think of something.
|
#1730
|
|||
|
|||
![]() Quote:
Code:
/* if update is avaialble, finish running downloads and restart and update when JD is Idle Trigger Required: Interval Set Interval to 600000 or more */ var updateAvailable = callAPI("update", "isUpdateAvailable"); if ( updateAvailable && isDownloadControllerRunning() && !getProperty("skipped", false) ) { getAllDownloadLinks().forEach(function(link) { if (!link.running && !link.finished) { link.skipped = true; } }); setProperty("skipped", true, false); } if ( updateAvailable && !callAPI("linkcrawler", "isCrawling") && !callAPI("linkgrabberv2", "isCollecting") && !callAPI("extraction", "getQueue").length && isDownloadControllerIdle() ) { callAPI("update", "restartAndUpdate"); } Code:
/* if update is avaialble, finish running downloads and restart and update when JD is Idle Trigger Required: Interval Set Interval to 600000 or more */ var updateAvailable = callAPI("update", "isUpdateAvailable"); if ( updateAvailable && isDownloadControllerRunning() && callAPI("downloadsV2", "getStopMark") == -1 ) { callAPI("downloadsV2", "setStopMark", 0, 0); } if ( updateAvailable && !callAPI("linkcrawler", "isCrawling") && !callAPI("linkgrabberv2", "isCollecting") && !callAPI("extraction", "getQueue").length && isDownloadControllerIdle() ) { callAPI("update", "restartAndUpdate"); } Last edited by mgpai; 04.06.2021 at 17:40. Reason: Replaced script with one which uses new method. |
#1731
|
|||
|
|||
![]() Quote:
Code:
/toolbar/toggleStopAfterCurrentDownload |
#1732
|
||||
|
||||
![]()
@mgai: just set stopmark on any running download. I don't think that it's that impotant and the script will work fine again
I can also add new method to specifically set stopmark to stop new downloads instant, if you prefer that
__________________
JD-Dev & Server-Admin |
#1733
|
|||
|
|||
![]() Quote:
Quote:
|
#1734
|
||||
|
||||
![]()
@mgpai:I can add new set stopmark method that also supports the *don'T start any new downloads* handling.
after next core update new logic for setStopMark linkID and packageID = -1 = NONE, same as removeStopMark linkID and packageID = 0 = HIDDEN, special mode to instant stop new downloads and just finish running ones
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 04.06.2021 at 17:00. |
#1735
|
|||
|
|||
![]()
Nice. Thanks Jiaz.
![]() |
#1736
|
||||
|
||||
![]()
__________________
JD-Dev & Server-Admin |
#1737
|
|||
|
|||
![]()
Updated the script with new method. Working fine. Thanks Jiaz.
![]() |
#1738
|
||||
|
||||
![]()
@mgpai: Thanks for the feedback
![]()
__________________
JD-Dev & Server-Admin |
#1739
|
|||
|
|||
![]()
Big thanks to mgpai and Jiaz!
I added the script (the first one for my JD ![]() Im realy happy now, my JD will be up to date and i don´t have to manually set stopmarks and trigger the restart ![]() |
#1740
|
||||
|
||||
![]()
@A-Dude: All thanks goes to mgpai
![]()
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|