JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 17.04.2020, 12:09
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default Rename files as package names premium.rpnet.biz filename bug

Using a packagizer rule I'm trying to have files auto-rename with the same name as the package using the rule "if package name contains": * * then set filename: <jd:orgpackagename> since all package names have spaces, however, it is not working as the files are not renaming.
I have tried with both orgpackagename and packagename.
Attached Images
File Type: png Rename.file.as.package.name.png (41.5 KB, 2 views)
Reply With Quote
  #2  
Old 17.04.2020, 12:41
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

Hi,
the packagizer is not really designed for that but it is possible.
HERE are two rules which can be used to do that with archives- and multipart archives.
You can modify them to work with other files too if needed.

-psp-
__________________
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
  #3  
Old 17.04.2020, 13:14
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

Unfortunately, I had already tried the first of those two rules after I posted this as I had already had a similar rule I created a few months ago.

When I add the links to the linkgrabber, the name of the files are the same as the package, however, as soon as the link is generated eg. the download starts, the filename is auto-renamed different than the package name, so I think I may have to use a packagizer hook for this so that it will auto-rename the file back to it's original name or the same name as the package when it completes.
Attached Images
File Type: png Package.in.Linkgrabber.png (5.7 KB, 3 views)
File Type: png Package.downloading.png (8.0 KB, 4 views)
File Type: png Package.completed.png (5.1 KB, 4 views)

Last edited by RPNet-user; 17.04.2020 at 13:25.
Reply With Quote
  #4  
Old 17.04.2020, 13:18
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

Please post example URLs.
Whenever any item is modified once via Packagizer, its' filename should be set to final which means it is not allowed to change anymore e.g. by the plugin which does the download.

... so this means these rules are working fine for you but filenames will change back once you start the downloads, did I understand this correctly?

-psp-
__________________
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
  #5  
Old 17.04.2020, 13:25
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

Yes, that is correct, see the attachments, the filenames should remain with the same name as the package and when they are finished as well, but for some reason, the files are auto-renaming.
See the above three screenshots:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #6  
Old 17.04.2020, 14:43
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

Your screenshots do not really show any change.
I was unable to reproduce your "changed filename gets changed back" issue.
Instead I've made an example packagizer rule which will do the job - I've restricted it to zippyshare URLs for testing purposes and it may fail with multipart archives (see other example rules linked, german thread):


Please keep in mind that the packagizer is not designed to be used in this way but you're lucky and it will work.

-psp-
__________________
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
  #7  
Old 17.04.2020, 15:43
oEFLKQzikCqw oEFLKQzikCqw is offline
JD Legend
 
Join Date: Mar 2012
Posts: 1,775
Default

Das setzen des Dateinamens kann man sich bei dem Beispiel eigentlich sparen.
Reply With Quote
  #8  
Old 17.04.2020, 16:04
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

Ich habe es nicht anders hinbekommen und auch nicht in den Code des Packagizer geschaut.
In meinen Tests hat dies nicht funktioniert.
Falls das bei dir geklappt hat, bitte einen Screenshot oder die exportierte Regel anhängen.

Grüße, psp
__________________
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
  #9  
Old 17.04.2020, 17:44
oEFLKQzikCqw oEFLKQzikCqw is offline
JD Legend
 
Join Date: Mar 2012
Posts: 1,775
Default

Also bei den Angaben für den Dateinamen sollte eigentlich wieder der originale herauskommen. Es sei denn, <jd:packagename> ist nicht das, was man über die Packagizerregel festlegt.
Reply With Quote
  #10  
Old 17.04.2020, 20:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

@oEFLKQzikCqw: Paketnamen werden vom JDownloader bereinigt und können ebenfalls vom Plugin gesetzt werden. Kurz: Ja, es kann der Name im Original rauskommen, muss aber nicht
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 18.04.2020, 02:23
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

@psp,

Unfortunately, that packagizer rule did not work.
Let me try again with a screenshot that includes a better explanation and detailed clarification.

Here is the rule I used and here are the two links I used for testing:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

In summary, what I'm trying to accomplish is to either prevent the zippyshare filenames from auto-renaming when they start downloading or to possibly use a hook to rename them upon completion back to the exact name they were before they started downloading or auto-rename the files when they complete by using the packagename. This is only occurring with zippyshare files and only with about 95% of them as it is not auto-renaming all files from zippyshare.

Well, I just tested by disabling my multi-host premium account and the files download "unchanged", however, when I re-enabled it, the file name is auto-renamed, so apparently the premium host plugin is definitely the cause which is why you were unable to reproduce the issue. This also explains why some files are not auto-renamed because sometimes the premium plugin do not generate links and they download in free mode.

Last edited by RPNet-user; 18.04.2020 at 05:13.
Reply With Quote
  #12  
Old 18.04.2020, 06:54
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

This is caused somewhat by the host plugin linkcheck sets filename and not finalfilename
but maybe also caused by your multihoster, does this happen even when using the real host?

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #13  
Old 18.04.2020, 07:19
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

Yeap, I just checked it in the dashboard control panel and my host is causing it. I just notified them in a support ticket.
Attached Images
File Type: png RPNet.auto-renaming.files.png (15.4 KB, 6 views)
Reply With Quote
  #14  
Old 18.04.2020, 07:38
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

thought as much, believe some of your other threads/tickets are all work arounds for mh behaviour.

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #15  
Old 18.04.2020, 07:43
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

hopefully it will be a simple host api fix
Reply With Quote
  #16  
Old 18.04.2020, 08:20
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

yah, it be fix within there internal plugins for that specific host OR they might be doing as others do and switch to another provider for the same content without your knowledge and this can introduce your experienced behaviour.

really needs to be addressed on the mh side as we have hundreds of plugins, as you can understand we rather not change our plugins for mh issue when it works as intended on ourside.

we typically only used setFinalFilename when advertised filename in html and there fileserver that they host the data on does not reference the filename in the url or header response.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #17  
Old 18.04.2020, 09:19
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

I was referring to my multihoster provider when I mentioned 'ticket' and 'api fix'.
Reply With Quote
  #18  
Old 23.04.2020, 09:57
RPNet-user's Avatar
RPNet-user RPNet-user is offline
Tornado
 
Join Date: Apr 2017
Posts: 231
Default

Quoted from my multi-host provider support:

"The RPNet API responds with a generated link, a filename, and a file size. Currently, it appears that JD2's download process uses the basename of the generated link as the filename. Please amend this so that the 'filename' output from the API is what is used for the file's name, rather than the link's basename."
Reply With Quote
  #19  
Old 23.04.2020, 12:49
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

Indeed this may be true though we definitly do not extract the filename from the URL but we do extract it from the content-disposition header so it might be wrong there.
Anyways:
Could you please contact their support and tell them to contact me via psp[at]jdownloader.org?
Also tell them that I will respond via a gmail address to avoid confusion.

We'll get this sorted out soon

-psp-
EDIT

I do currently not have a premium account of this service for testing which means I will ask them for one but for now I'd have to rely on your logs.
Please post your log-ID here | bitte poste deine Log-ID hier.
__________________
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
  #20  
Old 24.04.2020, 16:12
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

Small Update:

I've created myself a rpnet test-account and also opened a support ticket in their support system to sort this out.

-psp-
__________________
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
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 06:40.
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.