jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: aks on 30.07.2018 14:12:56

Title: Repeated downloads
Post by: aks on 30.07.2018 14:12:56
Sorry if this has already been described somewhere, but I couldn't find it.


As I'm testing things, I have been repeatedly downloading the same file, while logged in as the same user. However, this download only seems to be recorded once, or occasionally twice. Afterwards I do not find the downloads in the log and I don't receive any email informing me about the download. Is there a specific limit being applied here to the log and email information and, if so, can you tell me what exactly the limit is? (I should add that this seems to be the case even if I delete the corresponding log entry, i.e. no new log entry is created even if I remove the previous one.)
Title: Re: Repeated downloads
Post by: ColinM on 30.07.2018 17:11:52
HiActually this is an intentional feature for users with poor internet connections.
There is a field in User Groups Settings called 'Download Duration' which sets the duration for which a dowload from the same user for the same Download  where it is not cosidered as a new download.  Its default value is 60 minutes. 
You have comprehensively tested that it is working!! 

So for test purposes set the field to say 2 minutes.  Remember it is in all user groups so you need to check on Ranking level of the User group.
Colin
Title: Re: Repeated downloads
Post by: aks on 30.07.2018 17:15:43
Thank you very much, Colin.  :)  I could not figure out what on earth was going on.
Title: Re: Repeated downloads
Post by: aks on 30.07.2018 19:17:21
Hi Colin,





I cannot seem to get this to work. I'm using jDownloads Version 3.2.62 on Joomla 3.8.10. Actually, I am using a user which belongs only to the Registered group. When I change the first few settings on the User Groups Settings for the Registered Group, these settings are taken into account. I think I got as far down as the daily megabyte limit. However, from the weekly megabyte limit downwards, the settings don't seem to be taken into account. This includes the Download Duration parameter. Also, I wonder what the default value for the Download Duration really is, because it seems that even when I try a repeat download after more than 60 minutes, it still isn't logged.

Of course, it may be that I'm just doing something wrong. It wouldn't be the first time. (By the way, I can't seem to introduce carriage returns in this text, sorry!) Alan
Title: Re: Repeated downloads
Post by: ColinM on 31.07.2018 16:12:34
Alan,
First the missing  carriage returns .  After you have typed something and used CRs then click on the {k} icon at the end of the 'buttons'.  I also find it a pain!!
If the you repeatedly download the same file then each download starts the timing again.  This will also affect the daily megabtye limit as the repeated downloads will not be counted in the limit.  So for the moment please test the daily megabtye limit using different Downloads just in case we have introduced a 'challenge' with the Download Duration'.
In the meantime I will set up a test to re-check Download Duration' on my test site.
Colin
Title: Re: Repeated downloads
Post by: aks on 31.07.2018 18:12:56
Colin,
Thank you for your reply. You make a very good point. In effect, if my download is always being classified as the same one, then it is not going to trigger any of the other limits.

Today, I downloaded again some files I downloaded yesterday and they still were not logged, even though there were quite a number of hours between the downloads.

As I'll be away next weekend, it'll give me a chance to wait for a longer period of time to see what happens.

Many thanks,
Alan
Title: Re: Repeated downloads
Post by: ColinM on 01.08.2018 17:46:12
Alan
I should have asked a basic question.  In jD Config - Downloads tab there is a field 'Activate log function for Downloads?'
please check this is set to Yes - I had presumed it was but maybe....

Colin
Title: Re: Repeated downloads
Post by: aks on 01.08.2018 19:14:19
Colin,
You do well to ask, but yes it is set to "yes".
I do get log entries when I download a file for the first time or sometimes more than one time.
If it's working correctly for you, then I obviously must be doing something wrong.

Alan
Title: Re: Repeated downloads
Post by: ColinM on 04.08.2018 13:06:46
Alan
The logic here was based on very slow internet connections, and jD waits for the completion.  If you change the Browser page or a new tab then the timing is aborted as it is assumed to be in progress.  Testing is 'tedious'.

In order to test you need to set the time to say 5 minutes. Then go to front end and download. Do NOT change browser page/tab, refesh or similar. After say 2 minutes then do another download of same file.  Do not change browser page, refresh or similar.  After say another 6 or 7 minutes do a third download.
Now goto backend and check log file
Colin
Title: Re: Repeated downloads
Post by: Joaohendrick on 25.09.2018 13:29:08
Thank you very much, Colin.  :) I could not figure out what on earth was going on.
Title: Re: Repeated downloads
Post by: quyvinhtgx on 09.10.2018 10:38:16
Amazing. This is what i'm looking for for the last hour. Thank you.