JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #2381  
Old 27.06.2022, 21:45
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 306
Default

Quote:
Originally Posted by StefanM View Post
Hey, you really created a script to import settings!
I'm sorry, but import doesn't seem to work for me.
But maybe I'm doing something wrong.

Summary:
Starting the import did the same, as if I would have installed 7 extension modules, one after the other, without restarting until all 7 were installed.
The I restarted, and all those 7 modules were there.
But none of my settings had been imported.

Details:
This is how I tested:
I used a test installation with many custom settings, filters, ...
From this installation I created a tsv export.

Then I closed my test-JD and renamed cfg folder to force JD to create a new clean cfg folder, which it did after restarting JD.

In this clean installation I installed your import script and then I tried to import settings.csv. I confirmed the security prompt.

What happened you can see in the attached screenshot collection:

More than 10 windows popped up.

The last one (the one on top) asked me, if I really wanted to install shutdown extension module.

Please note that I never installed that module in my life.

I clicked on Yes, anyway.

This provoked another pop up: 'New update available'

I clicked on later

The next popup said: Please restart JDownloader to finish...

I clicked on later

The next popup asked me about installing infobar.

Please note that I never installed that module in my life.

I clicked on Yes, anyway.

Again the update info...

Again I clicked on later

Again 'Please restart...'

Again I clicked on later

Please see the screenshot collection for the next popups.



When I was through, I restarted JD.

Nothing had been imported

But all those modules had been installed.

Any ideas what went wrong, when trying to import settings.tsv?
Reply With Quote
  #2382  
Old 28.06.2022, 14:15
Sorphee Sorphee is offline
Modem User
 
Join Date: Jun 2022
Posts: 1
Default Script Event help - Connection problems

Hello guys,

I need help for a event script :

Action : Restart the download when the status is "Connection Problems"

I have a timer about 5min to wait for a retry and I want a event scrip to avoid this.

Or someone can tell me how reduce the 5min to 30 sec.

Thanks all.
Sorphee
Reply With Quote
  #2383  
Old 28.06.2022, 14:22
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 62,442
Default

Merged EventScripter threads.
__________________
JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #2384  
Old 28.06.2022, 17:47
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,742
Default

@StefanM: Please know that importing settings from extensions will only work when the extension is installed and enabled. JDownloader doesn't know anything of those settings when the extension is not loaded. As the cfg folder doesn't know about the installed extensions, JDownloader recognizes the installed extensions in libs folder and aks to install/finalize their installation. This *could* be optimized by showing a dialog with checkboxes instead, but that's more a "beauty optimization"
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2385  
Old 28.06.2022, 18:04
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 306
Default

@Jiaz, @mgpai

Quote:
Originally Posted by Jiaz View Post
@StefanM: Please know that importing settings from extensions will only work when the extension is installed and enabled. JDownloader doesn't know anything of those settings when the extension is not loaded. As the cfg folder doesn't know about the installed extensions, JDownloader recognizes the installed extensions in libs folder and aks to install/finalize their installation. This *could* be optimized by showing a dialog with checkboxes instead, but that's more a "beauty optimization"
No, you misunderstood me!
Apart from Event Scripter I had not extensions installed.
But when I tried to import the exported settings.tsv file to a clean JD with only default settings, the only thing that happened was:

What you can see in my screenshots collection.

I did not want to install any of those extensions, but starting the import script from mgpai obviously started the download/installation process for one extension after the other.

I was confronted with all those 'Are you sure...' popups. So I said yes to each of those prompts.

But that was all that happened.
Not a single setting had been imported in the end.
Instead only all those extension had been installed.

Did that import script work for you?
Have you tested it?
Reply With Quote
  #2386  
Old 28.06.2022, 18:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,742
Default

@StefanM; I've tested but NOT with a complete empty cfg folder but just tried to restore some modified settings by importing them from file. Will check by tomorrow
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2387  
Old 28.06.2022, 18:28
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 306
Default

@Jiaz, @mgpai

Quote:
Originally Posted by Jiaz View Post
@StefanM; I've tested but NOT with a complete empty cfg folder but just tried to restore some modified settings by importing them from file. Will check by tomorrow
I created that empty cfg folder by removing the cfg folder with many custom settings. (which I had exported to seetings.tsv before)

With cfg folder removed, JD created a new, empty cfg folder. However, if I remember correctly, Event Scripter was still installed!!!

But without any scripts.

So, I installed mgpai's import script and tried to import my settings.tsv with all those custom settings.

The result was, what I told you...

PS: I used settings.tsv with that special CUSTOM/DEFAULT column. Will have to verify if this could have caused the failure of the import script!?!?
Reply With Quote
  #2388  
Old 28.06.2022, 18:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,742
Default

@SefanM: Please check your tsv for following keyword InstallExtension
I just checked source and this can trigger the extension installation.
and also check update/versioninfo/JD/extensions.installed.json and extensions.requestedinstalls.json
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 28.06.2022 at 18:37.
Reply With Quote
  #2389  
Old 28.06.2022, 18:44
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 306
Default

Quote:
Originally Posted by Jiaz View Post
@SefanM: Please check your tsv for following keyword InstallExtension
I just checked source and this can trigger the extension installation.
and also check update/versioninfo/JD/extensions.installed.json and extensions.requestedinstalls.json
Here you can see for yourself:
But this should be in any Advanced Settings export file.
Code:
	"Install Extension: Folder Watch"	"BOOLEAN"		"false"		"Extension"		"false"	"InstallExtensionFOLDERWATCH"	"Default"	
	"Install Extension: Scheduler"	"BOOLEAN"		"false"		"Extension"		"false"	"InstallExtensionSCHEDULER"	"Default"	
	"Install Extension: JD Shutdown"	"BOOLEAN"		"false"		"Extension"		"false"	"InstallExtensionSHUTDOWN"	"Default"	
	"Install Extension: AntiStandBy"	"BOOLEAN"		"false"		"Extension"		"false"	"InstallExtensionANTISHUTDOWN"	"Default"	
	"Install Extension: Info Bar"	"BOOLEAN"		"false"		"Extension"		"false"	"InstallExtensionINFOBAR"	"Default"	
	"Install Extension: Support Chat"	"BOOLEAN"		"false"		"Extension"		"false"	"InstallExtensionCHAT"	"Default"	
	"Install Extension: Translator"	"BOOLEAN"		"false"		"Extension"		"false"	"InstallExtensionTRANSLATOR"	"Default"	
	"Enable/Disable Extension: Archive Extractor"	"BOOLEAN"		"false"		"Extension"		"true"	"EnableExtractionExtension"	"Custom"	
	"Enable/Disable Extension: Event Scripter"	"BOOLEAN"		"false"		"Extension"		"true"	"EnableEventScripterExtension"	"Custom"
The other two I cannot find in my settings.tsv

Last edited by StefanM; 28.06.2022 at 18:47.
Reply With Quote
  #2390  
Old 28.06.2022, 18:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,742
Default

@StefanM: Thanks for the feedback. This is the cause as the import results in installation of the extensions. I will check by tomorrow. Most likely value conversion issue. Either an issue within JDownloader or something that needs to be fixed with export/import script.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2391  
Old 28.06.2022, 20:56
mxl00 mxl00 is offline
Modem User
 
Join Date: Jun 2022
Posts: 2
Default

Hi,

I'm looking for a script to add the download URL to the comments of a video file.

I see a thread with a similar request here:
https://board.jdownloader.org/showthread.php?t=83361
but the script itself is not included.

Any help is appreciated.

Thanks
Reply With Quote
  #2392  
Old 29.06.2022, 11:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,742
Default

Quote:
Originally Posted by Jiaz View Post
@StefanM: Thanks for the feedback. This is the cause as the import results in installation of the extensions. I will check by tomorrow. Most likely value conversion issue. Either an issue within JDownloader or something that needs to be fixed with export/import script.
Will be fixed with next core update
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2393  
Old 29.06.2022, 13:30
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 62,442
Default

Quote:
Originally Posted by mxl00 View Post
I'm looking for a script to add the download URL to the comments of a video file.
Do you mean the final (direct) download-URL or the browser-viewable "content URL".
E.g. if you were downloading images/videos from twitter:
content URL = twitter post URL
direct URL = direct URL to image inside twitter post

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist
Reply With Quote
  #2394  
Old 29.06.2022, 14:19
mxl00 mxl00 is offline
Modem User
 
Join Date: Jun 2022
Posts: 2
Default

Quote:
Originally Posted by pspzockerscene View Post
Do you mean the final (direct) download-URL or the browser-viewable "content URL".
E.g. if you were downloading images/videos from twitter:
content URL = twitter post URL
direct URL = direct URL to image inside twitter post

-psp-
Ah, thanks for clarifying. I mean the content URL.
Reply With Quote
  #2395  
Old 29.06.2022, 14:22
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 306
Default

Quote:
Originally Posted by Jiaz View Post
Will be fixed with next core update
Thanks for the info.
But, will this core update fix both problems?

Problem 1:
Running the import script results in prompting for installation of all available extensions, which have not been installed already.

Problem 2:
Running the import script does not import any customized settings from settings.tsv. Advanced Settings are the same as they were before running the script...
... apart from those extensions (Problem 1)
Reply With Quote
  #2396  
Old 29.06.2022, 14:23
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 62,442
Default

Quote:
Originally Posted by mxl00 View Post
Ah, thanks for clarifying. I mean the content URL.
Okay.
Please keep in mind that I simply wanted to help clarify this.
I do not write EventScripter scripts for users so please wait for mgpai or another user to help with this.

Another question:
Do you want to simply have that URL in the "Comment" field in JD or somewhere in the metadata of the downloaded files?
__________________
JD Supporter, Plugin Dev. & Community Manager
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?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist

Last edited by pspzockerscene; 29.06.2022 at 14:23. Reason: Added quote for context
Reply With Quote
  #2397  
Old 29.06.2022, 14:34
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,742
Default

Quote:
Originally Posted by StefanM View Post
Problem 1:
Running the import script results in prompting for installation of all available extensions, which have not been installed already.
Yes, this will be fixed


Quote:
Originally Posted by StefanM View Post
Problem 2:
Running the import script does not import any customized settings from settings.tsv. Advanced Settings are the same as they were before running the script...
... apart from those extensions (Problem 1)
I was not able to reproduce any issues, would be good to know which settings in particular failed to restore? an example? In my tests with 2 custom values it worked fine
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2398  
Old 29.06.2022, 17:00
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 306
Default

Quote:
Originally Posted by Jiaz View Post
I was not able to reproduce any issues, would be good to know which settings in particular failed to restore? an example? In my tests with 2 custom values it worked fine
I checked more thoroughly, what was imported and what wasn't:

Here are some examples, where I had quite a few custom settings:
  • Right Click Menu Download Table, import failed 100 %
  • Right Click Menu LinkGrabber Table, import failed 100 %
  • MainToolbar (GUI), import failed 100 %
  • LinkGrabber Filters, seem to have been imported correctly
  • Three scripts from mgpai, seem to have been imported correctly
First I had only checked the first three GUI issues. That's why I had assumed, that nothing had been imported.
Reply With Quote
  #2399  
Old 29.06.2022, 17:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 76,742
Default

Quote:
Originally Posted by StefanM View Post
[*]Right Click Menu Download Table, import failed 100 %[*]Right Click Menu LinkGrabber Table, import failed 100 %[*]MainToolbar (GUI), import failed 100 %
Menus are not part of/available via advanced settings. You can find the json files in cfg/menus_v2 directory.
And at the moment there are no plans to make them available via advanced settings.
In headless mode there are no gui menus. And either you are using the full default menu or a full customized one.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #2400  
Old 29.06.2022, 18:24
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 306
Default

Quote:
Originally Posted by Jiaz View Post
Menus are not part of/available via advanced settings.
Wasn't aware of this. That explains it.
Just had in mind that (almost) all settings are (also) available in Advanced Settings.
Any other settings, which are not available there?

Quote:
Originally Posted by Jiaz View Post
And either you are using the full default menu or a full customized one.
I'm afraid I don't understand what you are referring to:
  • What is a full default menu?
  • What is a full customized one?
Can you please explain?
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:56.
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 - 2022, Jelsoft Enterprises Ltd.