#2181
|
||||
|
||||
![]()
@Wolfin2010
You're wrong in this thread! Please report this issue in this subforum and provide all required details such as a problem description, example links and a log. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2182
|
|||
|
|||
![]() Quote:
Code:
/* Set package expanded state Trigger : JDownloader Started */ getAllFilePackages().forEach(function(package) { var single = package.downloadLinks.length == 1; single && package.expanded && package.setExpanded(false); !single && !package.expanded && package.setExpanded(true); }) |
#2183
|
|||
|
|||
![]() Quote:
Is it possible if we grouped the links of the same size into a specified folder in the linkgrabber? For the folder name, maybe can just use the name file from the first link checked. Also is there another way to check duplicates beside of the file name and the file size? Thank you |
#2184
|
|||
|
|||
![]() Quote:
Grouping only by size can break multi-part archives. Links belonging to different archives could end up (wrongly) in the same package. JD already tries to detect mirrors and group them in the same package. This auto-grouping feature can break if the package name is set by a custom rule. Can you provide any example url where you want the resulting links to be grouped in the same package, but they currently end up in separate packages? Checksums can also be used, but unfortunately not all hosters provide them. In some cases, grouping the links by container url (originating from same url) may help. |
#2185
|
|||
|
|||
![]()
In the following script:
- Is there a way to get the "PackageName" path ( instead each links path...) and move the complete PackageName ? ( in other words, move the complete sub-folder packagename ) ( The below script works but the subfolder(PackageName ...package sub folder is not moved. Only files inside package are moved to destfolder. So I am looking to find a solution to get move the complete package...) Thanks in advance Code: // Move finished non-archive files, to user defined folder // Trigger required: "A Download Stopped" var destFolder = "D:/Jdl_Finished_packages"; if (link.isFinished() && !link.getArchive()) { getPath(link.getDownloadPath()).moveTo(destFolder); } |
#2186
|
|||
|
|||
![]()
Hey I need a script that'll copy and paste the source URL to comments since we can't search through URLs. Thanks!
|
#2187
|
||||
|
||||
![]()
@RedNapalm: what *source URL* are you referring to? In JDownloader there are several sources known, see https://support.jdownloader.org/Know...iew-added-urls
eg source can be the browser tab URL, also can be the container url or the linkshortener. can you explain what you have in mind/what you're trying to achieve, then we can help you better.
__________________
JD-Dev & Server-Admin |
#2188
|
|||
|
|||
![]()
Um, hi. I would like to ask for a script that would insert a folder into mega.nz folder structure if possible.
Specifically, what I'm trying to download from mega is structured in a\b\c\d. I want to insert a folder and make it like this: a\INSERT FOLDER HERE\b\c\d. The name there will be a static folder name. Is that possible? Thank you. |
#2189
|
||||
|
||||
![]()
@mgpai: see my idea https://board.jdownloader.org/showpo...36&postcount=2 for @onyhow
__________________
JD-Dev & Server-Admin |
#2190
|
|||
|
|||
![]() Code:
/* Set download folder Trigger: Packagizer Hook */ if (state == "AFTER" && link.host == "mega.co.nz") { var insert = "string"; var folder = link.downloadFolder.split("/"); folder.splice(1, 0, insert); link.downloadFolder = folder.join("/"); } |
#2191
|
||||
|
||||
![]()
@mgpai: don't you have to reassign to folder?
Quote:
__________________
JD-Dev & Server-Admin |
#2192
|
|||
|
|||
![]()
No. The splice() method overwrites the original array.
|
#2193
|
||||
|
||||
![]()
Once reason why I ...don't like it :p
__________________
JD-Dev & Server-Admin |
#2194
|
|||
|
|||
![]() Quote:
Could you please help modify this script to give HIGHEST priority for files smaller than 100MB (and if possible, give HIGHER priority for files size from 100MB to 1GB), then other files (bigger than 1GB) are random download order (random "HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST" priorities). I want Jdownloader to download small files such as ebooks and audio files first, then movie later. Downloading big file take long wait time, especially with free download, so it would be great to get the big files later when all other small files have been downloaded. Thank you! Last edited by TomNguyen; 31.05.2022 at 19:05. |
#2195
|
|||
|
|||
![]() Quote:
Code:
/* Set priority Trigger: Download controller started */ getAllDownloadLinks().forEach(function(link) { if (!link.finished && link.bytesTotal > -1) { var size = link.bytesTotal / 1e6; var priority = size < 100 ? "HIGHEST" : size < 1000 ? "HIGHER" : random(); link.priority != priority && (link.priority = priority); } }) function random() { var array = ["HIGH", "DEFAULT", "LOW", "LOWER", "LOWEST"]; var index = Math.floor(Math.random() * array.length); return array[index]; } |
#2196
|
||||
|
||||
![]()
@mgpai: mgpai shooting scripts as it's "The Easiest Thing in the World"
![]()
__________________
JD-Dev & Server-Admin |
#2197
|
|||
|
|||
![]() Quote:
It works great, script master! Quote:
Thanks again, mgpai! |
#2198
|
|||
|
|||
![]() Quote:
Update: It works! Thanks! Last edited by onyhow; 01.06.2022 at 17:37. Reason: Update |
#2199
|
|||
|
|||
![]()
my sc card crashed a few days ago and i had to restore an backup from 2021 where i used jdownloader without event scripter. now i can't install/enable it. i opened the webinterface of my jdownloader headless install (raspberry pi 3) and clicked to "install". now it loading and loading and loading. jdownloader was updated and restarted before.
can i install/enable event scripter using the command line? |
#2200
|
||||
|
||||
![]()
@Tomrich: I would recommend to check/fix the installation, see https://support.jdownloader.org/Know...r-installation
then install the eventscripter via webinterface , hit the button, and then restart JDownloader
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|