#1961
|
|||
|
|||
![]() Quote:
Last edited by dawebbreb; 28.10.2021 at 02:02. |
#1962
|
|||
|
|||
![]() Quote:
Code:
[{ "abstractType": "BOOLEAN", "interfaceName": "org.jdownloader.gui.views.linkgrabber.addlinksdialog.LinkgrabberSettings", "type": "boolean", "key": "AutoExtractionEnabled" }] |
#1963
|
|||
|
|||
![]()
@dawebbreb
Try this.. Code:
//disable captcha sound at night //Trigger "Interval" var date = new Date(); var hours = date.getHours(); if (0); else if (hours > 21) setCaptchaSoundEnabled( false); else if (hours > 7) setCaptchaSoundEnabled( true); function isCaptchaSoundEnabled() { var key = "captchasoundenabled"; var interfaceName = "org.jdownloader.settings.SoundSettings"; var value = callAPI("config", "get", interfaceName, null, key); //bool return value; } function setCaptchaSoundEnabled( truefalse) { var key = "captchasoundenabled"; var interfaceName = "org.jdownloader.settings.SoundSettings"; var value = callAPI("config", "set", interfaceName, null, key, truefalse); //bool return value; } |
#1964
|
|||
|
|||
![]()
@mgpai
I tried, you nailed it, thank you very much! o) I never expected this setting to be somewhere in the linkgrabber stuff. |
#1965
|
|||
|
|||
![]() Quote:
I will report back! |
#1966
|
|||
|
|||
![]()
Yes, correct. o) Maybe enhance the time testing conditions a bit, to also make the script switch the captcha sound OFF between 0 and 8 o'clock actively, not just between 22 and midnight. Like so..
Code:
else if (hours > 21 || hours <= 7) setCaptchaSoundEnabled( false); else if (hours > 7) setCaptchaSoundEnabled( true); |
#1967
|
|||
|
|||
![]() Quote:
|
#1968
|
||||
|
||||
![]()
@mgpai and @tb21: great to see two masters working hand in hand
![]() @tb21: whenever you need help or got questions, you can also contact us via support@jdownloader.org
__________________
JD-Dev & Server-Admin |
#1969
|
|||
|
|||
![]()
Thank you @tb21 and @Jiaz. Happy to report script worked just as expected and I was able to sleep fine last night!!
![]() |
#1970
|
|||
|
|||
![]() Quote:
Quote:
Quote:
![]() |
#1971
|
|||
|
|||
![]()
I have a script request or an idea request for another way.
For the YouTube plugin filename setting for videos, I have the default setting: *3D* *360* *VIDEO_NAME* (*H*p_*FPS*fps_*VIDEO_CODEC*-*AUDIO_BITRATE*kbit_*AUDIO_CODEC*).*EXT* Over time this file naming has become non-unique enough for one location that it causes "filename already exist" issues. To compound this issue, YouTube videos seem to vary slightly in file size depending on when you download it. It seems to range around 20 megs or so; so it's not always the exact size even though it's the same video. Moving forward, I want to have the filename for all new videos to include the channel name, like: *3D* *360* *VIDEO_NAME* *CHANNEL* (*H*p_*FPS*fps_*VIDEO_CODEC*-*AUDIO_BITRATE*kbit_*AUDIO_CODEC*).*EXT* However because of files already existing, I'm looking for a way to avoid duplicate files but still have new downloads with the new naming that includes the channel name. I was thinking a script that checks with the old naming first, and if it exists, it checks to make sure the file size is within a certain range (something like 20 megs or so) for a best guess that it is the same video and then skip the download. If it's not within the file size range, the best guess is it's a new video and it should name the file with the new naming that includes the channel name. Not sure if this is possible. Any ideas? |
#1972
|
|||
|
|||
![]()
Hi Guys Need Help for (Four Script)
Okay I tried in English, I have read in in event Scripter, and found some "Simila" things here, but not works what I tried to configure, I have litte understood how it event scripts in downloader works, but I doo not understood scripting. And I hope you can help me. If you from Germany you can write and explain me in German if not, then English Thanks. 1) Okay that what I need, I need a Notification Trigger if Download speed drops Longer than 1 min under 50 kbit. And play some WAV better a mp3 file. I have tried to make my own wav file and convert sound from Mac OS built in sound, but it not works with the build in Examples, if download stops or extract scripts, it only works with the original wav File captcha sound. I don’t know why ? The example scripts in JD2 work well. And the sound also. (The Example scripts) Okay Second 2) some Downloads that never Stops and not running by 0/kbs hang up. Some times the VPN connection hang up. And the downloads not stopping and running over by 0/kbs. the build in notifications examples is not working there. To make Notification Sound Trigger. (some from „Mega“ downloads stops and not running anymore, without stopping in jdownloader) Third 3) I need a Script, if Download Speed Drops Longer than 2 min under 500 kbit, - play some Sound and Notification trigger- stop and Disable File - Spring to Next Download (package) and start download 4) Unziping File with Downloader, If I Unzip File In JD, example more than 50 Files I take time,(25-30 min to unzip all), is it Possible to make Notification Sound trigger if Only All Packages Unzip, (with a Unique Sound Hope mp3 Sound is Possible) 50 Files is just a example guys. (I Only Found the example in JD2 Trigger that make Wav sound, File By File) (Best if Possible a mp3 Sound) please explain witch Programm I need to convert a Sound in wav if mp3 not working. I have use mediaHuman Audio converter to convert it in wav, but not working. I got stuck and Google and Youtube couldn't find any further templates and instructions. Can someone help me and write a script that I can then copy into Jdownloader? Thanks in advance for the effort Greatings Marvel |
#1973
|
||||
|
||||
![]()
@mrjjones: You could also add the video ID to the filename and then use script to filter out already existing links. rename should be possible but sounds little more complex though
__________________
JD-Dev & Server-Admin |
#1974
|
||||
|
||||
![]()
@Marvel:
1.) Whats the idea behind sound notification on low speed? what do you want to achieve then? 2.) do you use VPN or proxy? sounds like the read is blocking within OS and thus blocked. Does this happen on all downloads or just some? Can you please create a log, see https://support.jdownloader.org/Know...d-session-logs when this happens and then post logID here 4.) you want notification if extraction is finished? not clear for me (PS: du kannst auch gerne nochmal in Deutsch erklären ![]()
__________________
JD-Dev & Server-Admin |
#1975
|
|||
|
|||
![]() Quote:
Great point about the video ID as many of the duplicates come from the same channel. I added that to my new filename mission. Thanks. A rename shouldn't be necessary the more I think about it. Below is my logic as a non-programmer ![]() ![]() Code:
**NOT ACTUAL CODE** I don't know what I'm doing, just trying to make sense: newFileName: *CHANNEL*_*VIDEO_NAME* (*H*p_*FPS*fps_*VIDEO_CODEC*-*AUDIO_BITRATE*kbit_*AUDIO_CODEC*)_*VIDEOID*.*EXT* oldFileName: *3D* *360* *VIDEO_NAME* (*H*p_*FPS*fps_*VIDEO_CODEC*-*AUDIO_BITRATE*kbit_*AUDIO_CODEC*).*EXT* if newFileName already exists skip end if newFileName OR oldFileName does not exist add link with newFileName end if oldFileName already exists if current file size within 10MB of new file size skip end if current file size not within 10MB of new file size add link with newFileName end |
#1976
|
|||
|
|||
![]()
Good evening,
does anybody know what the variable name is that contains the Extraction Path for the Event Scripter? I know that it existed and i had it befor but after the complete los of my config i cant find it anymore. With best regards, me |
#1977
|
||||
|
||||
![]()
@Gbyte: can you please be more specific? extraction path of? generic path? of a specific archive?
__________________
JD-Dev & Server-Admin |
#1978
|
|||
|
|||
![]()
@Jiaz
Gott Sein Dank in Deutsch, ist schön "Tricki" das auf English zu erklären Also ich Brauch einen Notification Trigger wenn Der Monitor aus ist und Jdownloader Weiter im Hintergrund läuft., und ne Meldung ausgibt aus den eingebauten Lautsprechern 1 ) manchmal Reduziert der Hoster wieso auch immer die Geschwindigkeit bei einem File ( nicht bei allen), wenn ich dann, später wieder am Rechner bin hoff ich natürlich das Files fertig sind, leider passiert es dann das JD an dem File hängen geblieben ist und es nur 50kbit runterlädt. Das File kann ich auch bei einem Anderen Hoster schneller Runterladen, das merk ich natürlich erst wenn ich wieder am Rechner sitze und den Monitor anmache. Und Manuell stope und ein anderes File zum download starte. Der Notification Trigger ist nur ein Hinweis Geber das ich wenn ich zeit habe nochmal einschalte und ein anderes Paket Manuell wähle. 2) Das Passiert nur bei nur Bei Mega Files , aber nutze ne VPN App, die Beendet die Verbindung nicht sonder Springt von Grün (VPN) auf Orange, und das nicht bei jeder Verbindung nur bei einigen Ländern, Doof nur wenn das Passiert und wenn man dann wieder zurück kommt an den Rechner. (ROT würde VPN Beendet und JD würde ja stoppen.) Ich hab ihr zwar ein ähnliches Problem gefunden von einem hab das aber soo für mich nicht übernehmen können als script. Im Event-script Bereich Mir würde das aber auch schon gut reichen wenn der DOWNLOAD DANN EINFACH STOPPEN WÜRDE, und nicht bei 0Kbs hänglen bliebe. Notification-Sound in JD gibt ne Meldung aus, So kann ich Die VPN App Verbindung Manuell Disconnecten und ne Neue Verbindung aufbauen. Ich hab ihr zwar ein ähnliches Problem gefunden von einem hab das aber soo für mich nicht übernehmen können als script. Im Event-script Bereich 4) Ja, bitte, und zwar hab ich das eingebaute Example genutzt was gut funktioniert, File by File,aber manchmal dauert es seine Zeit, solche Pakete zu entpacken, den ich mache was anderes In der Zeit, und hab dann den Monitor aus. Denn ich entpacke die Pakete immer dann wenn ich den Rechner nicht brauche, gleichzeitig und während dem Surfen ist der Arbeitsspeicher bereits bedient. Und soo gut wie unbenutzbar. Download und entpacken Gleichzeitig, hab ich festgestellt reduzieren die Geschwindigkeit des Downloads und Leider auch ist JD, dann auch, Crash anfälliger. Und Die eingebauten Lautsprecher Triggern mir dann und sagen bescheid wenns fertig ist. Man kann auch TV Sehen und weiss "Beep "fertig alles im Hintergrund. Und Monitor ist aus. Dann weiss man wann man wieder an den Rechner muss. Also ich benutze Amphetamine ein Notification Trigger App, wenn JDownloader läuft und Der Monitor aus ist und ab und An Passiert es, das während der Download läuft, JD im Crasht. Wenn er das dann aber triggert kann ich gleich JD Neustarten. Dann hör ich ein mp3 Lied was ich voreingestellt habe. Früher hab ich erst nach 40 min gar na nachstunden erstgemerkt, natürlich erst wenn ich wieder am Rechner war das JD gecrasht ist und eigentlich kein Download lief, was zum Kotzen war. Also im Grossen ganzen geht es beim Notification Triggern nur darum das ich weiss wenns ein Problem gibt und ich dann Manuell die Sachen Fixxe. und kein Monitor laufen lassen muss. Ich hab schon einiges ausprobiert an Notification Apps die alle nicht gut liefen, wenn der JD sich selbst melden würde und selbst wechseln wär das Klasse ( damals gabs noch Growl was aber eingestellt wurde)… Nutze MAC OS Sooo ich hoffe ich konnt mich verständlich ausdrücken. Und es gibt genug Kontext zum ersten Post. Und DANKE Schön ❗ Last edited by Marvel; 02.11.2021 at 20:07. |
#1979
|
||||
|
||||
![]()
@Marvel: Ich brauch für Punkt 2.)
Quote:
Evtl kannst du im VPN Client was verstellen? Zb TCP/UDP oder VPN Protokol? Quote:
Das klingt mir sehr nach : a.) nicht genug Speicher für Java.Zb viele Links im JDownloader oder viele MaxDownloads/MaxChunks. Bitte mal einen Screenshot des About Dialogs vom JDownloader und bei crashes muss es hs_err Dateien im JDownloader Ordner geben. Diese bitte an support@jdownloader.org b.) hardware/treiber/xy Probleme. @Marvel: Warum nicht per Handy erinnern lassen? Gibt ja genug Dienste/Apps zu denen man Events/Messages schicken kann und die dann auf dem Handy/der Uhr angezeigt werden. Anstatt per Sound Notification?
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 02.11.2021 at 20:33. |
#1980
|
||||
|
||||
![]()
@Marvel: Kurz: du willst einfach per Ton bei bestimmten Events benachrichtig werden?
mp3 in wav solltest du relativ easy mit ffmpeg konvertieren können und du kannst, sofern der Ton nicht via Java abgespielt wird, jedes Format nehmen und musst dafür lediglich einen externen AudioPlayer nehmen, evtl gibts da was *einfaches* für MacOS?
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 02.11.2021 at 20:36. |
![]() |
Thread Tools | |
Display Modes | |
|
|