#2081
|
|||
|
|||
pornhub specific script
so each time i add a pornhub link i get up to 8 files in the linkgrabber, is there a script already to make it discard the extra hits and old select the non-hls stream of the highest quality.
i've looked and not seen a bug report, or a script, on this idea, but will admit that this is a long ass thread and hard to search |
#2082
|
||||
|
||||
Event Scripter zusammengeführt / merged EventScripter scripts.
@gentle und Tobi573 Bitte hier im Thread nachfragen/ auf Antwort warten. @qwksilver No script needed. See: Settings -> Plugins -> pornhub.com -> Enable "Always only grab the best resolution available". -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2083
|
|||
|
|||
Quote:
Wie Ist der command "Start erzwingen"? How is the "force start" command? |
#2084
|
|||
|
|||
Quote:
Code:
// ForceDownload (with PLUGIN_DEFECT) // Trigger Required: "Interval" // Set interval to 60000 (60 seconds) or more var links = getAllDownloadLinks(); for (i = 0; i < links.length; i++) { var link = links[i]; if (link.getStatus()) { if (link.isEnabled() && link.getFinalLinkStatus() == "PLUGIN_DEFECT") { //OFFLINE,FAILED_TOTAL,PLUGIN_DEFECT callAPI("downloadsV2", "forceDownload", [link.getUUID()], []);//link.reset(); } } } |
#2085
|
|||
|
|||
Regrading this Thread is there property like "hash" or function setHash() on a "myCrawledLink" Object or on a similar one. I didn't find one, and myCrawledLink only has the function " myCrawledLink.getHashInfo();" or "myCrawledLink.setProperty(myString, myObject);" but for the second one it's required to know the exact required structure to set the hash of the link. Has Anyone genereally an Idea how to set the Hash with the EventScript API?
Thx in advance |
#2086
|
|||
|
|||
|
#2087
|
|||
|
|||
Thanks
|
#2088
|
||||
|
||||
@mgpai
Thanks again for helping out! Any idea how to help here? Basically: - Add button to sort after active status --> On click, sort after status "Not enough traffic available (XX MB required) -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 02.02.2022 at 17:07. Reason: Added missing link to thread |
#2089
|
|||
|
|||
Good afternoon. I want to ask you this. Is there a script that can check given links for new files and download them? I was advised here is a set of commands.
1. Add profiles of users XY every X days 2. Check agains already downloaded files/duplicates in your downloadlist and remove them. 3. Move the now remaining newly found items to the downloadlist and download them. |
#2090
|
|||
|
|||
I give up
I just spent over an hour trying everything I could to make JDownloader download webm (vp9) by default, but download h.264 if no vp9 is available. Here is my advanced settings: what am I doing wrong? It's ignoring my choices, and serves me MP4 and AAC for no apparent reason. I have the "Normal video" box checked in the YT Plugin settings, but I know I can't choose "best webm" and "best h.264" because then it will download both. Thanks in advance for the help.
https://imgur.com/H2P5DWr Quote:
Last edited by jeffr; 10.02.2022 at 23:59. |
#2091
|
|||
|
|||
In your settings 'RESOLUTION' has a higher priority than 'VIDEO_CODEC'. Most likely the highest resolution in the url you are trying to add is available only in H.264 and not VP9.
|
#2092
|
|||
|
|||
Hi,
I need a script to rewrite the host URL during a crawling job. Many hosts keep changing their domain names which break their JDownloader plugins for many weeks until a its fixed in a JDownloader update. In the meanwhile I was wondering if its possible to use an Event Script to rewrite the URLs during a crawling job? Most recently I am facing problems with clicknupload.cc which has changed to clicknupload.to |
#2093
|
|||
|
|||
Quote:
Code:
[{ "pattern" : "(https?://clicknupload.)to(/.+)", "rule" : "REWRITE", "rewriteReplaceWith" : "$1co$2" }] |
#2094
|
|||
|
|||
Quote:
Code:
/* Filter and sort by package status Trigger : Toolbar button pressed Customize toolbar > Add a new "Eventscripter Trigger" button > Rename it to "Sort by status" */ var filter = "Not enough traffic available"; if (name == "Sort by status") { callAPI("downloadsV2", "queryPackages", { status: true }).filter(function(package) { return package.status && package.status.indexOf(filter) > -1; }).sort(function(a, b) { var x = a.status.toLowerCase(); var y = b.status.toLowerCase(); return x < y ? -1 : x > y ? 1 : 0; }).reverse().forEach(function(package) { callAPI("downloadsV2", "movePackages", [package.uuid], -1); }) } Last edited by Jiaz; 06.10.2022 at 11:05. |
#2095
|
|||
|
|||
Quote:
Code:
/* Add urls Trigger : Interval Recommended : 3600000 (1 hours) or more */ var file = "c:\\downloads\\urls.txt"; // valid path separators "\\" or "/" try { var links = readFile(getPath(file)); callAPI("linkgrabberv2", "addLinks", { links: links }) !isDownloadControllerRunning() && startDownloads(); } catch (e) {}; |
#2096
|
||||
|
||||
@mgpai
Regarding post #2094: Thanks! I've forwarded that to the user. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2097
|
|||
|
|||
@psp: Most Welcome.
|
#2098
|
|||
|
|||
Quote:
Thanks works perfectly |
#2099
|
|||
|
|||
Quote:
|
#2100
|
|||
|
|||
Hi,
sometimes links are flagged as "insufficient space". I'd like to retry such links after a certain time (finished files are constantly moved off the drive, thus freeing up space). Any ideas how this can be done? |
#2101
|
|||
|
|||
EventScript Trigger for premium filehost
I want to create custom EventScript that if for my premium Filehost example rapidgator.net , my 1Gb quota is left then JD should stop download and disable that premium host.
I read the eventscript docs but not able to find which trigger I need to choose and what options/functions/parameters I have for that API etc |
#2102
|
||||
|
||||
@namyar
That suggestion might even be a good one as a general feature request. Especially when a JD is running on a headless device for which you might clear folders without even thinking about space issues it would probably be nice if JD just kept running until enough space is available -psp- EDIT @mirror51 Merged EventScripter threads.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 16.02.2022 at 21:57. |
#2103
|
|||
|
|||
Quote:
I certainly won't complain in case this does end up as a new feature |
#2104
|
||||
|
||||
I'll re-visit this next time I'm here and ask the team about it.
Although I never really ran in this issue I certainly see room for improvement here -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2105
|
|||
|
|||
Awesome, thank you for your efforts!
|
#2106
|
|||
|
|||
Quote:
Alternatively, you can a create a linkfilter rule to prevent duplicate links from even being added to JD. |
#2108
|
|||
|
|||
Quote:
Code:
/* Resume links Trigger : Interval (Reommended 60000+) */ var list = ["PLUGIN_DEFECT", "OTHER_ERROR"]; getAllDownloadLinks().forEach(function(link) { if (list.indexOf(link.finalLinkStatus) > -1) { link.resume(); } }) Use the following script to get a list of link status, select and press CTRL+C to copy the relevant status to clipboard and add it in the main script. Code:
/* Get list of final link status Trigger: None (Use test run to execute the script) */ setAdvancedAlert(true); var list = []; getAllDownloadLinks().forEach(function(link) { var status = link.finalLinkStatus; list.indexOf(status) == -1 && list.push(status); }) alert(list.join("\n")); |
#2109
|
|||
|
|||
Quote:
Code:
/* Resume links Trigger : Interval (Recmmended 600000+) */ var start = isDownloadControllerRunning(); getAllDownloadLinks().forEach(function(link) { link.skippedReason == "DISK_FULL" && (link.skipped = false); !start && (start = true); }) start && !isDownloadControllerRunning() && startDownloads(); |
#2110
|
|||
|
|||
Quote:
|
#2111
|
|||
|
|||
Quote:
|
#2112
|
|||
|
|||
Anyonme please Help.
I want that if the file status is Not enough traffic available more than 5 times Then JD stops all downloads rather than retrying till eternity |
#2113
|
|||
|
|||
Quote:
|
#2114
|
||||
|
||||
A google search (1 second) would have lead you to this support article (first google search result).
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2115
|
||||
|
||||
@namyar
I've created a ticket for your request: I won't promise anything. First I'll wait for the opinion of developer Jiaz. After all this is something you could easily do via EventScripter and I guess the issue of frequently not having enough storage available is not too common. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2116
|
|||
|
|||
Synchronous doReconnect()
I have many links to a hoster that lets me solve a captcha before JD can realize that it needs a reconnect. So, to reduce the amount of captchas by half, I want to do a reconnect after every finishing of a download. I created the following script for the trigger "Download stopped":
Code:
if (link.isFinished()) { doReconnect(); } When the script is executed synchronously instead, the downloads effectively stop (list looks like that without anything going on), the toolbar play icon is still disabled, the reconnect icon in the status bar isn't active and pressing the toolbar stop button accomplishes nothing. (I gave it time.) I have to restart JD to get it working again. Synchronous execution seems like the best solution, so no download is started only shortly, followed by abortion by a reconnect. But this first needs to be made functional. BTW: I have configured JD to run a batch file to reconnect. |
#2117
|
||||
|
||||
Quote:
For most of all of such hosts, we've already implemented a workaround. Check if you find a related setting in Settings -> Plugins -> [hosterDomain] -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2118
|
|||
|
|||
Thanks. Hoster is k2s.cc and the workaround checkbox works.
Still, I think the script should work and definitively not make JD unusable until program restart. How about having a means of seeing what scripts are running and to abort them on the script list page? Also doReconnect() should trigger the reconnect animation in the status bar. |
#2119
|
||||
|
||||
Sorry I'm not really into the EventScripter topic so I won't be able to answer your questions atm.
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#2120
|
||||
|
||||
@armin.beispiel: you cannot use asynchronously execution, as it blocks the DownloadQueue that is required for the execution of the reconnect. The "hoster problem" is a sign that your reconnect does not wait long enough for network to be back again. Your script/reconnect returns but internet not yet fully back again and thus the *hoster problem*. Update your reconnect script/settings for longer wait and then it should not happen anymore. In case you still encounter this issue, please provide a log, see https://support.jdownloader.org/Know...d-session-logs and post logID here
What reconnect method are you using? the animation should be working just fine when using doReconnect
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 03.03.2022 at 14:54. |
Thread Tools | |
Display Modes | |
|
|