#2141
|
||||
|
||||
![]()
@thehulk14: What host is it? does the host allow multiple downloads per IP or just one?
I don't see any problem with existing settings to balance downloads over connections, the first download should use proxy A and the next one should use proxy B.
__________________
JD-Dev & Server-Admin |
#2142
|
|||
|
|||
![]()
Hi team!
Really loving JDownloader and finally have all my scripts set up properly. Just wondering whether this one would be possible? I have a folder link which is updated every week with new episodes, is there a script to automatically refresh the link and automatically add the new file at all? Thanks! |
#2143
|
||||
|
||||
![]()
@mgpai: I need your master brain for help
![]()
__________________
JD-Dev & Server-Admin |
#2145
|
|||
|
|||
![]() Quote:
![]() Will this do? Code:
/* Remove duplicate links Trigger : Toolbar button pressed */ if (name == "Remove duplicate links") { var urls = []; getAllCrawledLinks().forEach(function(link) { var url = link.contentURL || link.pluginURL; if (urls.indexOf(url) == -1) { urls.push(url); } else { link.remove(); } }) } |
#2146
|
||||
|
||||
![]()
@mgpai: you dream in script language, don't you
![]() ![]()
__________________
JD-Dev & Server-Admin |
#2147
|
|||
|
|||
![]()
Hmm, ok will try it again and see.
|
#2148
|
|||
|
|||
![]()
haha.
![]() My pleasure. ![]() |
#2149
|
|||
|
|||
![]() Quote:
I'm not very familiar with the Packagizer function and having some trouble working out how to add 'new' links only and having them automatically download. Any further guidance on what variables I should be using? Thanks in advance! Here is my settings but I'm pretty sure it's wrong. ![]() Thanks again! |
#2150
|
|||
|
|||
![]()
Auto Confirm : Enabled (Sends links to the download list)
Enable Download : Link are enabled by default, so should not be required. |
#2151
|
|||
|
|||
![]()
When the download is complete, you will receive a message via Telegram.
It can be used normally, but Korean and Japanese other than English are broken as "???". Doesn't getPage of getBrowser() support other languages? Here is the code I'm using. Code:
/* Event Script: Telegram notification when download completes Requirements: Trigger "Package Finished" */ var browser = getBrowser(); var apiToken = 'apiToken'; var chatId = 'chatId'; var url = "**External links are only visible to Support Staff**; if (package.isFinished()) { var reName = package.name.replace(/^_/g, ""); // korean package _ delete var linkList = package.getDownloadLinks(); var msg = "JDownloader" + "%0A" //enter + reName + " Download Finished" url += apiToken + "/sendMessage?chat_id=" + chatId + "&parse_mode=html&text=" + msg; browser.getPage(url); //telegram send getPath(package.getDownloadFolder()).delete(); //temp path delete package.remove(); //link delete } |
#2152
|
||||
|
||||
![]()
@qowmq: message must be correctly urlencoded, I will check how to do this
Update: you can use encodeURIComponent("string"), eg Quote:
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 13.04.2022 at 16:33. |
#2153
|
||||
|
||||
![]()
@qowmq
Nice and simple ![]()
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2154
|
|||
|
|||
![]()
thank you. Solved.
|
#2155
|
||||
|
||||
![]()
@qowmq: Thanks for the feedback and you're welcome
![]()
__________________
JD-Dev & Server-Admin |
#2156
|
|||
|
|||
![]()
Can I get some help for a script for a headless setup for Pushover notification? I would like to send a pushover notification on file download complete.
I found this script but not sure how to convert it to work for a headless script Code:
postPage("https" + "://api.pushover.net/1/messages.json", "token=appToken&user=userKey&message=" + package.getName() + " finished."); Last edited by runjayemcee; 16.04.2022 at 08:19. |
#2157
|
||||
|
||||
![]()
@runjayemcee: most easiest way is to use JDownloader with GUI and setup your eventscripter scripts and then copy/paste them via Settings->Advanced Settings->EventScripter.scripts
see https://support.jdownloader.org/Know...event-scripter "Headless / myjdownloader"
__________________
JD-Dev & Server-Admin |
#2158
|
|||
|
|||
![]()
A way / script would be great that could find / show / list duplicates (by content) in the downloadslist not having the same URL and / or name. Or at least files that might be duplicates by its size, if the bit size exactly is the same.
https://board.jdownloader.org/showth...473#post501473
__________________
Aktuelles Windows Last edited by Dockel; 29.04.2022 at 11:07. |
#2159
|
|||
|
|||
![]() Quote:
Code:
/* List dupes by size Trigger : Toolbar button */ if (name == "List dupes by size") { var file = getPath(JD_HOME + "/tmp/dupes_by_size.htm"); var group = {}; var output = ""; getAllDownloadLinks().forEach(function(link) { var size = link.bytesTotal var name = link.package.name + " - " + link.name; group[size] = group[size] || []; group[size].push(name) }) for (x in group) { var names = group[x]; if (names.length > 0) { output += x + "\r\n\t"; output += names.sort().join("\n\t") output += "\r\n\r\n" } } if (output) { file.delete(); output = "<pre>" + output + "</pre>"; writeFile(file, output, false); } } |
#2160
|
|||
|
|||
![]()
Thank you very much! Very fast!
I have added it to the Event Scripter now: ![]() And now I have to add a button / menu item somehow e.g. in the Menu Customizer here: ![]() Sorry, I have forgotten how to do it. What do I have to do?
__________________
Aktuelles Windows |
![]() |
Thread Tools | |
Display Modes | |
|
|