JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 22.05.2021, 08:55
Enomine Enomine is offline
Bandwidth Beast
 
Join Date: Oct 2010
Posts: 137
Default Make Hostername part of the Filename

Hi,

is there a way to automate add the Hostername into the Filename?

Thanks - Enomine
Reply With Quote
  #2  
Old 22.05.2021, 09:44
Enomine Enomine is offline
Bandwidth Beast
 
Join Date: Oct 2010
Posts: 137
Default

I could write my own script if i knew the variables where the information are available in.
Could any dev tell me the variable names, which i need to implement it by myself?
I think it should be a 5 lines script in script-manager.

Thanks - Enomine
Reply With Quote
  #3  
Old 23.05.2021, 15:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 72,936
Default

Yes, you should try to use the Eventscripter. Best would be to ask here for help, https://board.jdownloader.org/showthread.php?t=70525

But should also be possible via Packagizer
https://support.jdownloader.org/Know...the-packagizer
if
DownloadURL - contains - https?://(.*?)/.+ (and enable regex checkbox)
Plugin - has - dedicated plugin
then
filename set <jd:hoster:1>-<jd:orgfilename>

alternative
Plugin - has - dedicated plugin
then
filename set <jd:hoster>-<jd:orgfilename>
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 23.05.2021 at 15:48.
Reply With Quote
  #4  
Old 25.05.2021, 16:46
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 59,617
Default

Jiaz' first example is even present in our knowledgebase.

-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
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 19:31.
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 - 2021, Jelsoft Enterprises Ltd.