#21
|
|||
|
|||
Quote:
Configure:
Use:
If you need any help setting it up, you can also find me in JD Chat: Code:
kiwiirc.com/nextclient/irc.freenode.net/#jdownloader Last edited by mgpai; 05.02.2020 at 20:17. Reason: Corrected the webchat link. |
#22
|
|||
|
|||
It looks like that now:
So there are to context menu items to be customized, if I see it right. By clicking the cross in the left bottom corner, I assume(?): From to I assume, that is done wrongly. Do not know how to to it rightly. I clicked "allow" here: Quote:
The JD Chat, thank you, is it more useful than doing it here? Can images be used there? |
#23
|
|||
|
|||
The checkboxes (first column) have been enabled. From the screenshot everything appears to be ok.
For security purposes, on first run, JD will request your permission to execute the script. You can safely click OK for own/known scripts. You can also change button names (for e.g. use native language). Just make sure that you use the same names in script as well as context menu. Can do the same with comment. It can be also used in the search bar to filter/view duplicate links. It is suitable for technical assistance, since you don't have to wait between replies. Sharing image/file links are also permitted. |
#24
|
|||
|
|||
Quote:
Code:
// Skip download link, if filename exists in the user-spcified list // To download the file (prevent skipping), remove "#duplicatefile" from comment // Trigger required: A Download Started var fileNamesList = "c:/myFolder/fileslist.txt"; // < Set path to text file which contain the file names. Use "\\" or "/" as path separators. var dupeFilecheck = link.getProperty("dupeFileCheck"); var linkName = link.getName(); var comment = link.getComment() || ""; var skipLink = function() { link.setSkipped(true); alert("Download Skipped: File \"" + linkName + "\" is present in files list."); } if (dupeFilecheck) { if (comment.indexOf("#duplicatefile") > -1) skipLink(); } else { var fileNames = readFile(getPath(fileNamesList)).trim().split("\r\n"); fileNames.some(function(fileName) { if (linkName == fileName.trim()) { var text = "#duplicatefile"; comment = comment ? text + " " + comment : text; link.setComment(comment); skipLink(); return true; } }) link.setProperty("dupeFileCheck", true); } I've quoted parts of text from your email for reference, without your permission. Hope it's OK. Last edited by mgpai; 10.02.2020 at 08:00. Reason: Modified script to remove leading and trailing spaces from 'fileName' |
#25
|
|||
|
|||
Yes, yes, of course.
So a new script for a new item in JD, many thanks! So it looks like this now: |
#26
|
|||
|
|||
I have added the path to the txt file containing the downloaded files in the new script:
I:\jD-Downloads\dummies.txt The files contained in the txt files look like this: Last edited by Fetter Biff; 08.02.2020 at 10:10. |
#27
|
|||
|
|||
Quote:
Slash character is missing from file path, since it was not escaped. Set it as specified in the script. Code:
Set path to text file which contain the file names. Use "\\" or "/" as path separators. Code:
"I:\jD-Downloads\dummies.txt" Code:
"I:\\jD-Downloads\\dummies.txt" Code:
"I:/jD-Downloads/dummies.txt" |
#29
|
||||
|
||||
Woow mgpai I'm impressed!
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#30
|
|||
|
|||
Quote:
Quote:
|
#31
|
|||
|
|||
@psp: Happy to be of any help.
Quote:
|
#32
|
|||
|
|||
Quote:
It seems here is no conncetion: **External links are only visible to Support Staff****External links are only visible to Support Staff** How do I have to add the "Move to history" button? |
#33
|
|||
|
|||
Quote:
Quote:
Quote:
Code:
kiwiirc.com/nextclient/irc.freenode.net/#jdownloader OR you can also install/enable/use the built-in chat extension in JD. It also connects to the same channel. Feel free to join me in chat. I am currently online there. |
#34
|
||||
|
||||
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#35
|
|||
|
|||
Vielen Dank, hat geklappt
|
#36
|
|||
|
|||
How could I add links to the history in the download list window when they are not downloaded (completely) or links without beginning downloading them?
|
#37
|
|||
|
|||
Either wait for the download to finish, or if you do no intend to download the file, use "Mark as finished" context menu command (customize menu to add it) to abort/cancel the download and then add it to history.
|
#38
|
|||
|
|||
Alright, thank you very much!
|
#39
|
|||
|
|||
Is it possible to show only one message for all of the skipped downloads respectively to show the downloads in a single message or to have an option to not to show a skipped message at all?
JD gets the focus / comes on top each time a message is shown. So if there are many skipped downloads it is quite inconvenient to e.g. use another program. And to close the messages is a little inconvenient as well. And each time JD is restarted with the same links in the download list the same messages for the same downloads occur again. Can one somehow avoid that? Last edited by Fetter Biff; 09.02.2020 at 11:30. |
#40
|
|||
|
|||
Quote:
You can delete the following line or comment it (Add "//" at the beginning of that line) out to prevent the message from being displayed: Current: Code:
alert("Download Skipped: \"" + url + "\" is present in history file."); Code:
// alert("Download Skipped: \"" + url + "\" is present in history file."); You can do it in both link check and file check scripts. Quote:
To avoid dupe checking everytime you start JD, remove the "#duplicatelink" or "#duplicatefile" from the comment (if you are plannig to redownload the file) or delete it from the list (if you don't intend to download it again). |
Thread Tools | |
Display Modes | |
|
|