JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #3041  
Old 11.09.2024, 14:19
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 700
Default

I have never seen such happen here. What settings does it?



So after a reconnect is executed and the router / modem does not get an Internet connection JD automatically reconnects after a special time?
__________________
Aktuelles Windows
Reply With Quote
  #3042  
Old 11.09.2024, 14:31
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 72,894
Default

I don't know but afik:
- It definitely tries multiple times
- If you got the same IP after a reconnect, a retry will also be triggered

If you want to discuss this topic in a deeper way, please open a new thread and describe your current problem.
As script really shouldn't be needed in this case.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #3043  
Old 11.09.2024, 14:37
Dockel Dockel is offline
JD Legend
 
Join Date: Feb 2020
Posts: 700
Default

Quote:
- It definitely tries multiple times
Not here, I would say.

Quote:
If you want to discuss this topic in a deeper way, please open a new thread and describe your current problem.
Okay, mache ich nachher.
__________________
Aktuelles Windows
Reply With Quote
  #3044  
Old 14.09.2024, 11:01
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by StefanM View Post
format hh:mm:ss.xxx
Code:
/*
    generate "video_duration_formatted" property from "video_duration" property
    trigger: packagizer hook
    Enable "synchronous execution of script" checkbox in top panel
*/

if (linkcheckDone && state == "BEFORE") {
    var duration = link.getProperty("video_duration");

    if (duration != null) {
        var fmt = function(n) {
            return ("0" + parseInt(n)).slice(-2);
        }
        var [seconds, milliseconds] = ("" + duration).split(".");
        var hours = fmt(seconds / 3600);
        seconds %= 3600;
        var minutes = fmt(seconds / 60);
        seconds = fmt(seconds % 60);
        milliseconds = ((milliseconds || "000") + "000").slice(0, 3);
        duration = ([hours, minutes, seconds].join(":") + "," + milliseconds)
        link.setProperty("video_duration_formatted", duration);
    }
}

Last edited by mgpai; 03.10.2024 at 07:10.
Reply With Quote
  #3045  
Old 19.09.2024, 02:12
Fierro3612 Fierro3612 is offline
Baby Loader
 
Join Date: Jul 2024
Posts: 7
Smile [EventScripter] Downloadlist cleanup / Aufräumen der Downloadliste

[EventScripter] Downloadlist cleanup / Aufräumen

Eine Möglichkeit zum Aufräumen der Downloadliste wäre toll.
Ich meine Einträge für die es keine Files mehr im Downloadordner mehr gibt zu löschen.


Hat vielleicht schon so ein Script gesehen?

****

A way to clean up the download list would be great.
I mean deleting entries for which there are no more files in the download folder.


Has anyone seen a script like this?

Last edited by Fierro3612; 19.09.2024 at 22:00.
Reply With Quote
  #3046  
Old 20.09.2024, 13:24
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by jDX007 View Post
...
That script is to add the metadata to the descriptions text file. Which field from the media metadata appears as in the OS file properties dialog?
Reply With Quote
  #3047  
Old 20.09.2024, 13:35
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by John19234 View Post
but av doesnt scan the files instantly, I wanted a feature like fdm where it scans it instantly. I deal with files that might not be safe so I scan them before unpacking. Just want to automate it.

Also periodic av scans take time and might scan files that have already been scanned. I want a selective scan of one file.
Code:
/*
    run external command on dowloaded file
    trigger : download finished
*/


if (link.finished) {
    var program = ["/path/to/myexternalprogram.exe"];
    var parameters = ["paremeter1", "parameter2", "paremeter..."].join(",");
    var file = getPath(link.downloadPath);

    callSync(program, parameters, file);
}

Last edited by mgpai; 20.09.2024 at 19:23.
Reply With Quote
  #3048  
Old 20.09.2024, 13:45
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by Fierro3612 View Post
[EventScripter] Downloadlist cleanup / Aufräumen

Eine Möglichkeit zum Aufräumen der Downloadliste wäre toll.
Ich meine Einträge für die es keine Files mehr im Downloadordner mehr gibt zu löschen.


Hat vielleicht schon so ein Script gesehen?

****

A way to clean up the download list would be great.
I mean deleting entries for which there are no more files in the download folder.


Has anyone seen a script like this?
Code:
/*
    remove orphaned links
    trigger : jdownloader started
*/

getAllDownloadLinks().forEach(function(link) {
    link.finished && !getPath(link.downloadPath).exists() && link.remove();
})
Reply With Quote
  #3049  
Old 22.09.2024, 00:25
Fierro3612 Fierro3612 is offline
Baby Loader
 
Join Date: Jul 2024
Posts: 7
Default

Thank You very much
Reply With Quote
  #3050  
Old 28.09.2024, 10:03
StefanM's Avatar
StefanM StefanM is offline
JD Legend
 
Join Date: Oct 2020
Posts: 722
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    generate "video_duration_formatted" property from "video_duration" property
    trigger: packagizer hook
...
Sorry about my late reply!
I was away for some time and must have overlooked this.
Now, thank you very, very much for your help.

Will test the script probably this weekend and then let you know about the result.

Best regards,
Stefan
Reply With Quote
  #3051  
Old 01.10.2024, 12:51
StefanM's Avatar
StefanM StefanM is offline
JD Legend
 
Join Date: Oct 2020
Posts: 722
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    generate "video_duration_formatted" property from "video_duration" property
    trigger: packagizer hook
    Enable "synchronous execution of script" checkbox in top panel
*/

if (linkcheckDone && state == "BEFORE") {
    var duration = link.getProperty("video_duration");

    if (duration != null) {
        var fmt = function(n) {
            return ("0" + n).slice(0, 2);
        }
        var [seconds, milliseconds] = ("" + duration).split(".");
        var hours = fmt(seconds / 3600);
        seconds %= 3600;
        var minutes = fmt(seconds / 60);
        seconds = fmt(seconds % 60);
        duration = ([hours, minutes, seconds].join(":") + "," + milliseconds)
        link.setProperty("video_duration_formatted", duration);
    }
}
Tested it thoroughly. Unfortunately in some 50 % of all tested cases it produces incorrect results, e.g.

for 895,019 sec
it returns
00:01:05,019 (incorrect)

the correct result would be
00:14:55,019 (correct)

Sent you an example link in a PM

Thanks again for any efforts taken.

BR
Stefan
Reply With Quote
  #3052  
Old 01.10.2024, 14:00
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by StefanM View Post
the correct result would be
00:14:55,019 (correct)
Fixed?
Reply With Quote
  #3053  
Old 01.10.2024, 15:22
StefanM's Avatar
StefanM StefanM is offline
JD Legend
 
Join Date: Oct 2020
Posts: 722
Default

Quote:
Originally Posted by mgpai View Post
Code:
/*
    generate "video_duration_formatted" property from "video_duration" property
    trigger: packagizer hook
    Enable "synchronous execution of script" checkbox in top panel
*/

if (linkcheckDone && state == "BEFORE") {
    var duration = link.getProperty("video_duration");

    if (duration != null) {
        var fmt = function(n) {
            alert(parseInt(n));
            return ("0" + parseInt(n)).slice(-2);
        }
        var [seconds, milliseconds] = ("" + duration).split(".");
        var hours = fmt(seconds / 3600);
        seconds %= 3600;
        var minutes = fmt(seconds / 60);
        seconds = fmt(seconds % 60);
        duration = ([hours, minutes, seconds].join(":") + "," + milliseconds)
        link.setProperty("video_duration_formatted", duration);
    }
}
Calculation/conversion is correct now!

Three minor issues:
1. I'm getting a popup message "Alert message from MyScript@Packagizer Hook" for each digit group.
Probably a leftover from your own tests?
EDIT: Removed it myself...

2. Trailing zeroes are not shown:
e.g. the script shows 00:03:25,6 instead of 00:03:25,600 (which I would prefer, if possible)

3. When there are no digits after the decimal separator
e.g. 00:03:25,000, the script shows 00:03:25,undefined I would prefer ",000" if possible

Last edited by StefanM; 01.10.2024 at 15:31.
Reply With Quote
  #3054  
Old 01.10.2024, 16:49
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by StefanM View Post
...
Example links?
Reply With Quote
  #3055  
Old 02.10.2024, 19:54
StefanM's Avatar
StefanM StefanM is offline
JD Legend
 
Join Date: Oct 2020
Posts: 722
Default

Quote:
Originally Posted by mgpai View Post
Example links?
Sent as PM

Thanks once again!
Reply With Quote
  #3056  
Old 03.10.2024, 07:11
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by StefanM View Post
...
updated
Reply With Quote
  #3057  
Old 03.10.2024, 11:02
StefanM's Avatar
StefanM StefanM is offline
JD Legend
 
Join Date: Oct 2020
Posts: 722
Default

Quote:
Originally Posted by mgpai View Post
**External links are only visible to Support Staff**...
Working like a charm.

Thanks once again for the great work!
I admire your skills. It was probably not that simple to write this script.

Reply With Quote
  #3058  
Old 03.10.2024, 17:48
Fetterbr Fetterbr is offline
Modem User
 
Join Date: Aug 2024
Posts: 2
Default Download Check in Kodi like folder setup

Hi.
I need some help with a little script what will check if i have the movie already before download.
I have a base folder with 5-6000 movie folders.
The movies are all starting with the DVD ID-Title-Year

The movie folder has the same name as the movie.

I need the script to check the section before the "-" Dash and after the "-" Dash before the "space". This way it docen't matter how many letters there is in the DVD-ID.

example AARM-018 Best Of Thigh Job Threesomes (2021)

Does this sound plausibel, than please let me know, i would really appreciate it.
I am not sure if the script was already made but i could not find any thing like this.
Thanks
Reply With Quote
  #3059  
Old 04.10.2024, 10:37
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,590
Default

Quote:
Originally Posted by Fetterbr View Post
I need the script to check the section before the "-" Dash and after the "-" Dash before the "space".
Check against what? file/folder name in download list?
Reply With Quote
  #3060  
Old 04.10.2024, 11:42
Fetterbr Fetterbr is offline
Modem User
 
Join Date: Aug 2024
Posts: 2
Default

Quote:
Originally Posted by mgpai View Post
Check against what? file/folder name in download list?
It needs to check in download folder and any subfolders for any files with mp4 or mkv extension.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 20:54.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.