JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #821  
Old 01.07.2019, 17:30
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

@manforce: you would need a 3rd party tool that can send mails and call it via eventscripter and specify the file to send. eventscripter then waits for download to finish and then call the 3rd party tool to send the mail
__________________
JD-Dev & Server-Admin
Reply With Quote
  #822  
Old 02.07.2019, 16:00
manforce manforce is offline
Modem User
 
Join Date: Jun 2019
Posts: 4
Default

Quote:
Originally Posted by Jiaz View Post
@manforce: you would need a 3rd party tool that can send mails and call it via eventscripter and specify the file to send. eventscripter then waits for download to finish and then call the 3rd party tool to send the mail
Ok, thanks! Which one do you suggest to use for that? Thanks again!
Reply With Quote
  #823  
Old 02.07.2019, 16:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

what os are you using? I would ask google/search engine of your choice for easy to use commandline tool to send mails
__________________
JD-Dev & Server-Admin
Reply With Quote
  #824  
Old 02.07.2019, 16:13
Doughee Doughee is offline
Modem User
 
Join Date: Jun 2019
Posts: 3
Default

Hi, I'd like a way to output all filenames in a given package to either the clipboard or a text file. I've studied the thread, and it shows ways to export download URLs only (I believe) and disable files with duplicate filenames relative to a text file/actual disk files, and I'll probably experiment with those in the future.

In my case though, copying the same source URL again after some time (not always) creates a whole new package with all the same files (they don't show up as dupes), plus all the changes I'm oblivious about, and I've already done that. I'm wasting so much time right now just trying to find out which files are new, renamed, or even removed out of hundreds and hundreds in there, I believe my best bet right now is copying the 2 different lists (original + new) to Notepad++ and handle it from there.

I'm still experimenting with the Packagizer, Event Filter and Advanced Settings, but right now they aren't gonna help, so a file list is the only thing that's gonna untangle this web.

Thanks for any help!

Last edited by Doughee; 02.07.2019 at 16:19.
Reply With Quote
  #825  
Old 02.07.2019, 16:34
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 639
Default

Quote:
Originally Posted by Doughee View Post
... output all filenames in a given package to ... the clipboard ...
Customize Context Menu > Add "Copy Information" buttton > Configure it using 'Edit menu node' panel on the right hand side of the menu editor.

For e.g. To copy just the filenames of the selected links/packages to clipboard, set "Pattern for the links" to "{name}".
Reply With Quote
  #826  
Old 02.07.2019, 16:53
Doughee Doughee is offline
Modem User
 
Join Date: Jun 2019
Posts: 3
Default

Quote:
Originally Posted by mgpai View Post
Customize Context Menu > Add "Copy Information" buttton > Configure it using 'Edit menu node' panel on the right hand side of the menu editor.

For e.g. To copy just the filenames of the selected links/packages to clipboard, set "Pattern for the links" to "{name}".
Thanks, it worked! Shows how much I don't know about JD2 posting in this thread.
Reply With Quote
  #827  
Old 02.07.2019, 17:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

@Doughee: shows that JDownloader offers sooo much more *under the hood*
__________________
JD-Dev & Server-Admin
Reply With Quote
  #828  
Old 02.07.2019, 17:52
the Dark the Dark is offline
DSL Light User
 
Join Date: May 2010
Posts: 31
Default

Hi guys!

Quote:
Originally Posted by mgpai View Post
@the Dark: Make sure you have selected the correct trigger.
The checkbox gets removed automatic if I click "OK" on error message.



Quote:
Originally Posted by mgpai View Post
If you are enabling the folderwatch only on specific dates, you would not need to move the DLCs to a subfolder. You can just keep them in the 'added' folder and move them back to the watchfolder, whenever you wish to download them again. Under these circumstances, you will also not need a script to enable/disable folderwatch.
I want to download the same file every 15 days so the dont get deleted - I want the script to do all the magic So moving the files would be awesome...

Example: 50 *.dlc files get loaded into LinkGrabber total download size ~4TB

I need to correct the error message: It get shown everytime! The files do not get deleted so the fill up my hard drive
Reply With Quote
  #829  
Old 02.07.2019, 18:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

Quote:
Originally Posted by the Dark View Post
The checkbox gets removed automatic if I click "OK" on error message.

broken scripts are auto deactivated
__________________
JD-Dev & Server-Admin
Reply With Quote
  #830  
Old 02.07.2019, 18:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

can you show the script for *download stopped* event?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #831  
Old 02.07.2019, 18:21
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 639
Default

Quote:
Originally Posted by the Dark View Post
The checkbox gets removed automatic if I click "OK" on error message
You may get that error if you have enabled "Remove finished downloads" in "Settings > General". Set it to "never" or "at startup".

If you still get errors, contact me in JD Chat.
Reply With Quote
  #832  
Old 03.07.2019, 10:50
manforce manforce is offline
Modem User
 
Join Date: Jun 2019
Posts: 4
Default

Quote:
Originally Posted by Jiaz View Post
what os are you using? I would ask google/search engine of your choice for easy to use commandline tool to send mails
Win7 or 10.. ok, I try to search, then maybe I'd need help just to write the script correctly..:)
Reply With Quote
  #833  
Old 04.07.2019, 14:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

@manforce: sure, once you've found a tool, we will try to help with the script
__________________
JD-Dev & Server-Admin
Reply With Quote
  #834  
Old 04.07.2019, 20:02
dnav5 dnav5 is offline
Modem User
 
Join Date: Jul 2019
Posts: 1
Default Convert AAC/M4A/OGG files to MP3 with Tempo Speed

Hi everyone,

I have been using Convert AAC/M4A/OGG files to MP3 script by mgpai for a while, and it has been great. I mainly use it to download newscast and listen them while in the gym/driving.
Is it possible to speed up the audio by adding ATEMPO settings?

I spent some time trying to add it, but can't get it to work. Can someone help?


// Convert aac/m4a/ogg files to mp3.
// Trigger required: "A Download Stopped".
// Requires ffmpeg/ffprobe. Uses JD ffmpeg/ffprobe settings if available.
// Overwrites destination file (mp3) if it already exists.

if (link.isFinished()) {
var fileName = link.name.replace(/(.+)(\..+$)/, "$1");
var fileType = link.name.replace(/(.+)(\..+$)/, "$2");
var sourceFile = link.getDownloadPath();
var audioFile = /\.(aac|m4a|ogg)$/.test(sourceFile);

if (audioFile) {
var downloadFolder = package.getDownloadFolder();
var destFile = downloadFolder + "/" + fileName + ".mp3";
var ffmpeg = callAPI("config", "get", "org.jdownloader.controlling.ffmpeg.FFmpegSetup", null, "binarypath");
var ffprobe = callAPI("config", "get", "org.jdownloader.controlling.ffmpeg.FFmpegSetup", null, "binarypathprobe");
var data = JSON.parse(callSync(ffprobe, "-v", "quiet", "-print_format", "json", "-show_streams", "-show_format", sourceFile));
var streamsBitrate = data.streams[0].bit_rate ? data.streams[0].bit_rate : 0;
var formatBitrate = data.format.bit_rate ? data.format.bit_rate : 0;
var bitrate = Math.max(streamsBitrate, formatBitrate) / 1000;
var deleteSourceFile = true; // Set this to true to delete source file after conversion.

if (bitrate > 0) {
callSync(ffmpeg, "-y", "-i", sourceFile, "-b:a", bitrate + "k", atempo="1.5", destFile);
if (deleteSourceFile && getPath(destFile).exists()) deleteFile(sourceFile, false);
}
}
}
Reply With Quote
  #835  
Old 04.07.2019, 20:13
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

try
Quote:
callSync(ffmpeg, "-y", "-i", sourceFile, "-b:a", bitrate + "k", "-filter:a","atempo=1.5", destFile);
__________________
JD-Dev & Server-Admin
Reply With Quote
  #836  
Old 06.07.2019, 12:23
SMS SMS is offline
Vacuum Cleaner
 
Join Date: Jun 2019
Posts: 16
Default

Low-priority question:
How to do the following?
If download of zip file is about to start but directory with the same name already exists, don't download (for example disable) that zip file.
Reply With Quote
  #837  
Old 06.07.2019, 13:28
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 639
Default

Quote:
Originally Posted by SMS View Post
If download of zip file is about to start but directory with the same name already exists, don't download (for example disable) that zip file.
Which directory should be compared? Download directory or extraction directory? Please give a working example.
Reply With Quote
  #838  
Old 06.07.2019, 14:56
dankmemer dankmemer is offline
Modem User
 
Join Date: Jun 2019
Posts: 3
Default

Quote:
Originally Posted by raztoki View Post
@dankmemer
core feature already does that, so a script wont be needed.
settings > advanced settings > GeneralSettings.mirrordetectiondecision == FILENAME_FILESIZE
Dumb question, but how do I utilize this feature in my scenario? Would I disable "download duplicates" while this setting is on? It's still downloading duplicates despite this on..
Reply With Quote
  #839  
Old 06.07.2019, 15:28
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

@dankmemer: this option tells JDownloader to compare file sizes as well. so different filesize -> different file
__________________
JD-Dev & Server-Admin
Reply With Quote
  #840  
Old 06.07.2019, 16:59
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 639
Default

Quote:
Originally Posted by dankmemer View Post
I tried searching but I don't think my specific case was discussed here!

I am downloading files that sometimes have the same file name, however they are not the same file. Sometimes they are, but sometimes they're not. I think this was a website that did poor CDN practices early on, but later changed their file name system when they grew.

Anyways, what the script would have to check for is both the file name AND the size of the file. If both are the same, then the file is a duplicate, otherwise download the file by renaming the new file.

The files are all within folder, example:
Folder > Folder1 > 67575675.jpg
Folder > Folder1 > 67575675.jpg (duplicate)


There are other folders, so in that example imagine Folder2, etc. BUT this script only needs to check the folder it's saving within.
Quote:
Originally Posted by Jiaz View Post
@dankmemer: this option tells JDownloader to compare file sizes as well. so different filesize -> different file
Looks like the user's requirement is similar to the one in this thread.
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 10:36.
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 - 2019, Jelsoft Enterprises Ltd.