jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: pierrick on 18.10.2015 15:04:07

Title: filesize_value for external file
Post by: pierrick on 18.10.2015 15:04:07
How can I manage a layout for both internal and external files ? The idea is to have placeholder {filesize_value} valorized just for internal files, and by consequence to prevent this placeholder to systematically be valorized to "0 B" for external file ...
Title: Re: filesize_value for external file
Post by: ColinM on 19.10.2015 10:46:28
Hi
When I select an external file jD finds the size OK, so at present I am unable to replicate! :(

Colin
Title: Re: filesize_value for external file
Post by: pierrick on 19.10.2015 17:46:19
I was thinking to size outside of my site (for example a Youtube link that cannot be sized be definition).

Placeholder {filesize_value} should be null in this case, instead of being equal to "0 B".



I manage to remove them using a Jquery function, but it should be optimized.
Title: Re: filesize_value for external file
Post by: ColinM on 20.10.2015 01:04:30
Hi
I see what you mean!.  jD automatically puts in a 0 B into the size field but in the code it tests for a null.

Will start a new topic as a bug to summarise this topic
Colin
Title: Re: filesize_value for external file
Post by: pierrick on 20.10.2015 17:50:11
Thanks for your support
Title: Re: filesize_value for external file
Post by: Arno on 21.10.2015 18:36:04
Quote from: ColinM on 20.10.2015 01:04:30
Hi
I see what you mean!.  jD automatically puts in a 0 B into the size field but in the code it tests for a null.

Will start a new topic as a bug to summarise this topic
Colin
Sorry but i can not understand what shall be here a 'bug'?  ::)
Title: Re: filesize_value for external file
Post by: pierrick on 21.10.2015 19:18:21
You can call it "bug" or not - as you want.
But it seems to me a very interessant feature to ask JDownload not to valuate {filesize_value} placeholder to "0 B" for external file ... it should be valuate with an empty string
Title: Re: filesize_value for external file
Post by: Arno on 21.10.2015 20:15:08
Is already changed in next version 3.2.41.