JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05.05.2019, 05:23
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default Info-File in the Download-Folder

From the sample event script "create an Info-File in the Download-Folder with detailed information", where is this file created? because after testing a download twice, i could not find the file anywhere unless this is just referring to the linkcollector and downloadlist zip files that contain all that information in text.
Reply With Quote
  #2  
Old 06.05.2019, 13:52
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by RPNet-user View Post
From the sample event script "create an Info-File in the Download-Folder with detailed information", where is this file created? ...
Default location for file is the download folder for that package:
Code:
sInfoFilePath = myPackage.getDownloadFolder() + "/" + myPackage.getName() + sInfoFileType; //<packageFolder>/<packageName>.<iContent>.info

Quote:
Originally Posted by RPNet-user View Post
.. because after testing a download twice, i could not find the file anywhere ...
The file is created only if link/package comment or archive password is present:
Code:
var iContent = 0; //setting bit 1 if pwd is available, setting bit 2 if comments available //if not set, no info file

That behavior can be changed by modifying this line:
Code:
if (bWriteFile == true && iContent > 0) { //comment out or set "iContent >= 0" if info-file should be written always
Reply With Quote
  #3  
Old 06.05.2019, 22:58
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

ok thank you
Reply With Quote
  #4  
Old 07.05.2019, 09:18
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Thanks @mgpai for fast help!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 14.07.2021, 12:22
a1b2c3d4 a1b2c3d4 is offline
I will play nice!
 
Join Date: Jul 2021
Posts: 9
Default

Sorry to revive an old topic, but is there a way to add the date and time the package was added to the download list and the date and time it finished downloading?
Reply With Quote
  #6  
Old 16.07.2021, 16:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

It makes more sense in adding this information to eg comment of the package.
When you modify the package name, this might also rename the folder on disk
__________________
JD-Dev & Server-Admin
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 00:41.
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.