JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 08.12.2016, 03:55
mverte mverte is offline
Vacuum Cleaner
 
Join Date: Dec 2010
Posts: 17
Exclamation Copy information pattern {filesize}

I am trying to copy the information, the size of the files represented in MB, but only managed to show me the size in Bits

Example:

rapidgator.net/file/xxxxxx/Pack.part1.rar.html 424780 Bits

Someone knows or has more information of the patterns shown
Reply With Quote
  #2  
Old 08.12.2016, 04:15
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 16,030
Default

we store filesize info in Bytes.

at this time there is no formatting into other units.

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

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 08.12.2016, 09:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,839
Default

size is in bytes, not bits.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 04.02.2017, 22:09
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default


Issue No.1: File Size


Current Structure:



Suggested Implementation Model:

Pattern for the Links
• {name}
• {newline}
• {comment}
• {sha256}
• {md5}
• {filesize}
• {filesize_kb}
• {filesize_mb}
• {filesize_gb}
• {url}
• {type}
• {path}

Pattern for the Packages
• {name}
• {newline}
• {comment}
• {filesize}
• {filesize}
• {filesize_kb}
• {filesize_mb}
• {filesize_gb}
• {type}
• {path}


Issue No.2: File Name without Extension

There should be another tag which allows to copy file names without extension,
I request you to add another tag like {name_noext} for this purpose.


Issue No.3: Filetype

The tag {type} doesn't return the file-type as the output, instead, just returns: "LINK",
A separate {filetype} tag may be implemented to return the output as target file's extension (i.e. its file type). Preferably in ALL CAPS (e.g. PDF or RAR or EPUB etc.)


Please implement this features.
Thanks a lot.

Last edited by DJwa163; 05.02.2017 at 06:09.
Reply With Quote
  #5  
Old 06.02.2017, 12:26
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,839
Default

added
filesize,filesize_kib,filesize_mib,filesize_gib,ext and name_noext
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 06.02.2017 at 12:32.
Reply With Quote
  #6  
Old 06.02.2017, 21:39
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default

Thank you very much sir.
Its because of you that JD has been AWESOME!
One final request which would be helpful for new/future users.

Please include the newly added tags to the example list, (the ones I have highlighted in orange squares in above screenshot).
Otherwise future users may not be aware of the existence of these awesomely powerful features.

Thanks again
Reply With Quote
  #7  
Old 06.02.2017, 21:47
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 48,185
Default

Ticket:


GreeZ psp
__________________

Ad-free installers || Werbefreie Installer
Windows Setup<--JD2 BETA-->Linux Setup x86 || Linux Setup x64 || Mac Setup
-----=>Support Chat<=-----
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
  #8  
Old 07.02.2017, 12:31
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default

And one last request on this topic from my side:
Please consider adding a {host} tag which would return the site on which it is hosted.
e.g. MEGA or Zippyshare or pCloud etc.

Sorry for causing you more annoyance.
My apologies... The idea did not strike my head last time.
Reply With Quote
  #9  
Old 07.02.2017, 12:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,839
Default

added with next update. I will update help info as soon as possible
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 07.02.2017, 13:00
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default

Thanks very much sir.
With this post I can make my stay in this forum memorable.
Its the 100th post and nearly seven years of my mesmerizingly pleasant stay at JD Board.
Thanks for such a great innovation and a decade of tireless updates.

You rock!

Last edited by DJwa163; 07.02.2017 at 13:03.
Reply With Quote
  #11  
Old 07.02.2017, 21:56
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 48,185
Default

Thanks for your nice feedback

GreeZ psp
__________________

Ad-free installers || Werbefreie Installer
Windows Setup<--JD2 BETA-->Linux Setup x86 || Linux Setup x64 || Mac Setup
-----=>Support Chat<=-----
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
  #12  
Old 08.02.2017, 11:24
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default

With the latest update, the resultant output getting badly messed up.
For example, try these set of tags
{name_noext} {url} {host} {ext} {filesize_mib}
for the following set of links
**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**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

The output gets completely jumbled.
Something has gone wrong.
Please fix it up.

Thanks,
Reply With Quote
  #13  
Old 08.02.2017, 11:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,839
Default

Looks good/correct for me. Can you please share screenshot what it looks like for you?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 08.02.2017, 13:18
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default

That's absolutely right, sir.
It was a temporary glitch.
I restarted JD, and it was all fine again.

Thanks a lot.
Reply With Quote
  #15  
Old 08.02.2017, 13:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,839
Default

Thanks for the feedback!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 08.02.2017, 15:15
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default

Lastly,
if feasible, a {date} & {time} tag may be useful.
This tag should return current system date in SI (International Units) format.
e.g. for today's date: 2017.02.08 and for current time 13.50

Thanks a lot.

My deep respect for the entire JD Team.
Reply With Quote
  #17  
Old 08.02.2017, 15:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,839
Default

I will add {date_format}
For format see docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html
__________________
JD-Dev & Server-Admin
Reply With Quote
  #18  
Old 08.05.2017, 12:38
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default

@Jiaz,
Sir, can you please implement {dpass} and {apass}
respectively for Download Password and Archive Password.

If there is no password for a give link, the response could be "~" OR "null"
Thanks a lot.
Reply With Quote
  #19  
Old 08.05.2017, 14:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 61,839
Default

I've added support for {archive.password} for links only. DownloadPassword is not yet possible because it is handled by each plugin differently
Please know that only the validated password will be copied.
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 08.05.2017 at 14:20.
Reply With Quote
  #20  
Old 08.05.2017, 22:50
DJwa163's Avatar
DJwa163 DJwa163 is offline
JD Addict
 
Join Date: Feb 2010
Posts: 163
Default

Thanks a lot, sir
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:43.
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.