#1981
|
|||
|
|||
![]() Quote:
|
#1982
|
|||
|
|||
![]()
@Jiaz dazu muss das ding dann im selben Netz sein oder gar ne Email geschickt werden,
mh wollte keine Weiteren Ports aufmachen oder ne Email schicken, aber Event Messages noch nie benutzt (MYJdownloader Account nötig oder) Aber schreib mal was du für gute Dienste kennts oder nutzt Lieber wär mir, Ja Ton Benachrichtigung, also ich hab Media human Konverter benutzt um zu konvertieren, aber ich denke das java das nicht abspielt.... habs aber nicht weiter eingrenzen können. weiss nur das es nichtgekalppt hat auch mit den einfacheren tönen in Mac OS Probiert hat kein tönchen ausgegeben.. würd mich interressieren wie das Bei WIN und co soo ist.... ob die das dort abspielen, dann würd ich es mit dem selben Programmausprobieren, auf MAC OS mhhh externen Audioplayer zum abspielen gern, aber wie das in das Script einbauen Quicktime-VLC nutzen wär klasse wenn das geht.., denke wenn du das mal auf Win oder was auch immer mal ausprobieren könntest ob das abgespielt würd und was du zum konvertieren genutzt hast, wär das mal ein ansatz. auch als ich wav file den selbennamen geben habe "Captcha".wav hat es das nicht abgespielt, auch gleichen Audio kbs werte übernommen hatte. hatte dafür MediaInfo genutzt um zu sehen was das für Audio werte sind um sie einzustellen. Beim Rest Crash und Coo muss ich noch Nachsehen, ja der RAM speicher ist mit der Zeit schnell gefüllt, aber auch als ich einen Neuen JD aufegsetzt habe hat es nicht geholfen, könntest recht haben sind mehr als 2300 Files vorhanden Das mit dem Timeout ist keine Schlechte Idee hab da was gefunde das die verbindung trennt... und wenn da JD Stoppt hätt ich einen Ton..... muss nachsehen wie ich das testen kann... Gruss und Guten Abend auch ![]() Update: hab VPN Verbindung bei inaktivität trennen gefunden, aber leider leider trennt es die Verbindung trotz Download , wird verbuggt sein. falls du noch einen anderen Workaround kennts, nur Zu.. Last edited by Marvel; 02.11.2021 at 23:26. |
#1983
|
|||
|
|||
![]() Quote:
Code:
/* Interval > Add urls Trigger : Interval (Recommended 3600000 or more) */ var file = "c:\\downloads\\urls.txt";// <- Set path to text file try { var links = readFile(getPath(file)); callAPI("linkgrabberv2", "addLinks", { links: links }) } catch (e) {}; |
#1984
|
|||
|
|||
![]() Quote:
Code:
callSync("path/to/ffplay", "path/to/audiofile", "-nodisp", "-autoexit"); |
#1985
|
||||
|
||||
![]()
@Gbyte:
Extraction.customextractionpathenabled and Extraction.customextractionpath
__________________
JD-Dev & Server-Admin |
#1986
|
||||
|
||||
![]()
@Marvel: Du musst keinerlei Ports öffnen um irgendwelche Notification Dienste zu nutzen. Du sendest ja Requests weg und willst nicht einen Port aufmachen.
Und nein, das *Ding* muss nicht im selben Netz sein. Gibt doch genug Dienste/Apps die du aufm Computer/Handy installieren kannst und dann via API Events schicken kannst welche dann angezeigt werden. Kurze Suche im Netz, zb pushover.net mobiloud.com/blog/best-push-notification-services "ja der RAM speicher ist mit der Zeit schnell gefüllt" -> Nutzt du Mac 12? Da gibts aktuell nen Memleak Bug der nahezu alle Anwendungen betrifft. Dort musst auf MacOS Update warten. Bzgl. VPN , evtl mal nen anderen Anbieter/oder Tool probieren? Sind ja meist offene/gleichen Protokolle, also könntest andere Clients nehmen
__________________
JD-Dev & Server-Admin |
#1987
|
|||
|
|||
![]()
I've been working on a script I asked about earlier to handle dealing with potential duplicates after changing the YouTube plugin Filename for Video files setting. The old setting was the default. The new setting has *CHANNEL* followed with Channel_.
*CHANNEL* Channel_*VIDEO_NAME* (*H*p_*FPS*fps_*VIDEO_CODEC*-*AUDIO_BITRATE*kbit_*AUDIO_CODEC*).*EXT* Below is what I have so far. I now need to figure out (the commented non-code below) how to check if the old file exists and if it's within 5 MB of the new file (best guess it's the same file because of YouTube's file size variations). The trigger is on a download started. I think I'm getting closer and will keep at it, but any advice would be appreciated. Thanks! Code:
var newFileName = link.getName(); var oldFileName = newFileName.substring(newFileName.indexOf("Channel_") + 8); var folderPathOnly = link.package.downloadFolder; var folderPathWithNewFile = link.getDownloadPath(); var folderPathWithOldFile = getPath(folderPathOnly + "/" + oldFileName); //if folderPathWithOldFile already exists // if old file size within 5 MB of new file size // link.setEnabled(false); // (bonus: and rename old file to newFileName) |
#1988
|
|||
|
|||
![]() Quote:
![]() Code:
var newFileName = link.getName(); var oldFileName = newFileName.substring(newFileName.indexOf("Channel_") + 8); var folderPathOnly = link.package.downloadFolder; var folderPathWithNewFile = getPath(link.downloadPath); var folderPathWithOldFile = getPath(folderPathOnly + "/" + oldFileName); var folderPathWithOldFileExists = folderPathWithOldFile.exists(); var oldFileSize = folderPathWithOldFile.getSize(); var newFileSize = folderPathWithNewFile.getSize(); if (folderPathWithOldFileExists === true ) { link.setEnabled(false); link.setComment("OLD FILE EXISTS"); package.setComment("OLD FILE EXISTS"); }; // also above if condition: old file size within 5 MB of new file size // link.setEnabled(false); // (bonus: and rename old file to newFileName) |
#1989
|
|||
|
|||
![]() Quote:
Code:
/* Dupe check Trigger: A download started */ var old = getPath(link.downloadPath.replace(/(.+\\).+Channel_(.+)/, "$1$2")); if (old.exists()) { var diff = Math.abs(link.bytesTotal - old.size); var target = 1024 * 1024 * 5; if (diff < target) { link.enabled = false; old.renameName(link.name); } } |
#1990
|
|||
|
|||
![]() Quote:
@mgpai this is absolutely perfect. Thank you so much. ![]() I'm also going to add the *VIDEOID* for new files at the end of the name before the extension to further make them unique going forward. I just need to figure out how to change your var old line to also remove the VIDEOID at the end to check the old file. *CHANNEL* Channel_*VIDEO_NAME* (*H*p_*FPS*fps_*VIDEO_CODEC*-*AUDIO_BITRATE*kbit_*AUDIO_CODEC*) ID_*VIDEOID*.*EXT* |
#1991
|
|||
|
|||
![]()
Okay, got that set. Below is pretty much the final code. Thanks so much mgpai.
Trigger is on download started. YouTube plugin file name is: *CHANNEL* Channel_*VIDEO_NAME* (*H*p_*FPS*fps_*VIDEO_CODEC*-*AUDIO_BITRATE*kbit_*AUDIO_CODEC*)_VidID*VIDEOID*IDEND.*EXT* Code:
disablePermissionChecks(); var newFileName = link.getName(); package.setName(newFileName); var oldFile = getPath(link.downloadPath .replace(/(.+\\).+Channel_(.+)/, "$1$2") .replace(/(_VidID)(.+)(IDEND)/, "") ); var newFileSize = link.getBytesTotal(); var oldFileSize = oldFile.getSize(); if (oldFile.exists()) { var diff = Math.abs(link.bytesTotal - oldFile.size); var target = 1024 * 1024 * 5; if (diff < target) { link.enabled = false; oldFile.renameName(link.name); link.setComment("Old file exists. Skipped and renamed. - Old/New size: " + oldFileSize + " / " + newFileSize); package.setComment("Old file exists. Skipped and renamed. - Old/New size: " + oldFileSize + " / " + newFileSize); alert("Old file exists. Skipped and renamed.\n\n" + oldFileSize + " (old size)\n" + " " + oldFile + "\n\n" + newFileSize + " (new size)\n" + " " + newFileName); } } |
#1992
|
|||
|
|||
![]()
Hi guys,
Good day! Is there a way to display the trigger interval countdown on the status bar or something? Just want to have an idea when the trigger would run next time. |
#1993
|
||||
|
||||
![]()
@reddy.shyam: Not yet possible/supported but I think it's a good feature request.
__________________
JD-Dev & Server-Admin |
#1994
|
|||
|
|||
![]() Quote:
Oh, Wow! Can't belive I am that smart to come up with ideas! ![]() Thank you. Will follow up the request. ![]() |
#1995
|
|||
|
|||
![]()
What kind of script? How often does it trgger?
|
#1996
|
|||
|
|||
![]()
Hi @mgpai, the script to randomize the downloads which you helped me earlier with. At the moment running every 10 minutes but I would like to see when it would trigger next time please.
|
#1997
|
|||
|
|||
![]() Quote:
Code:
/* Append next execution time to script name */ var name = "reddy.shyam"; // <- Set name of the script (case-sensitive) var scripts = getScripts(); scripts.forEach(function(script, index) { try { if (script.name.indexOf(name) > -1) { var ets = script.eventTriggerSettings; var date = new Date(ets.lastFire + ets.interval).toString().substr(4, 20); scripts[index].name = name + " | Next execution: " + date; } } catch (e) {}; }) setScripts(scripts); function getScripts() { return callAPI( "config", "get", "org.jdownloader.extensions.eventscripter.EventScripterConfig", "cfg/org.jdownloader.extensions.eventscripter.EventScripterExtension", "Scripts" ); } function setScripts(scripts) { callAPI( "config", "set", "org.jdownloader.extensions.eventscripter.EventScripterConfig", "cfg/org.jdownloader.extensions.eventscripter.EventScripterExtension", "Scripts", scripts ); } |
#1998
|
|||
|
|||
![]() Quote:
![]() Last edited by reddy.shyam; 04.11.2021 at 16:24. |
#1999
|
|||
|
|||
![]()
It is currently configured to append the next execution time to the script name. Each time it is executed, the next execution time will be appended to the script name in the eventscripter panel.
If your current script name is reddy.shyam (you have to set the current name in the script), it will be renamed to reddy.shyam | Next execution: Nov 04 2021 15:46:59. |
#2000
|
|||
|
|||
![]()
You will have to wait for Jiaz to implement it. I can provide a script which can append it to the title bar.
|
![]() |
Thread Tools | |
Display Modes | |
|
|