Bug 222515 - kget does not automatically start a download if the numer of finished downloads is greater then or equal to the number of allowed downloads in a group
Summary: kget does not automatically start a download if the numer of finished downloa...
Status: RESOLVED FIXED
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-13 11:39 UTC by Christian Trippe
Modified: 2010-01-24 21:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
transfers.kgt (3.71 KB, text/plain)
2010-01-13 17:12 UTC, Christian Trippe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Trippe 2010-01-13 11:39:25 UTC
Version:           2.3.90 (using 4.3.90 (KDE 4.3.90 (KDE 4.4 RC1)) "release 212", KDE:KDE4:Factory:Desktop / openSUSE_11.2)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.8-0.1-default

I have kget configured to allow a maximum of 2 downloads in a group.
I assumed that this would be the number of parallel downloads, e.g. selecting 3 files to download would start the first 2 and after the first one finishes the last one is started.
However it only starts after a manual start of the download.
Comment 1 Lukas Appelhans 2010-01-13 12:58:23 UTC
You mean after those 2 finished you have to start number 3) manually?

Or do you mean that you need to start all downloads manually?

Lukas
Comment 2 Christian Trippe 2010-01-13 13:12:51 UTC
(In reply to comment #1)
> You mean after those 2 finished you have to start number 3) manually?
> 
Exactly! Sorry if the initial description is confusing.

Sticking to the example:
The first two downloads start automatically, but as soon as there are two finished downloads, I have to start every download manually.

Christian
Comment 3 Lukas Appelhans 2010-01-13 15:13:12 UTC
Mmh, also could you post your $KDEHOME/share/apps/kget/transfers.kgt?

Lukas
Comment 4 Christian Trippe 2010-01-13 16:56:00 UTC
(In reply to comment #3)
> Mmh, also could you post your $KDEHOME/share/apps/kget/transfers.kgt?
> 
Sorry, I do not have such a file. I also tried with a new user.

christian@asterix:~> ls -a .kde4/share/apps/kget/
.  ..  transferhistory.db
Comment 5 Lukas Appelhans 2010-01-13 17:05:44 UTC
Oha, you have to when using kget... like try to start + quit kget... it should create such a file...

Lukas
Comment 6 Christian Trippe 2010-01-13 17:12:16 UTC
Created attachment 39849 [details]
transfers.kgt

After quiting and starting kget again the file was present.

Thanks for your patience!
Comment 7 Lukas Appelhans 2010-01-13 17:38:35 UTC
Thanks for the file... although I don't see anything special in there :/

Dario, can you have a look here?

Lukas
Comment 8 Dario Massarin 2010-01-15 12:08:53 UTC
Christian, from what I can understand from your description, you're manually selecting 2 transfers and starting them. Then, when these are finished, you're expecting the 3rd one to be started automatically, right? 

If this is your case, kget is behaving correctly. Only by doing "Start All" you will make sure that all downloads in the list will be downloaded. We all agree that this is a little bit confusing.. needs to be made more clear from the user perspective.
Comment 9 Christian Trippe 2010-01-15 12:43:39 UTC
(In reply to comment #8)
> Christian, from what I can understand from your description, you're manually
> selecting 2 transfers and starting them. Then, when these are finished, you're
> expecting the 3rd one to be started automatically, right? 

No, what I am doing is the following (assuming I have deleted all old downloads and sticking to the above example). I click on a link to a pdf file in konqueror and choose "save as..." I am asked where to save the file and then kget opens and the download starts.
Now I do this again for the next pdf, the download starts.
Now I do this the third time. -> The download does not start automatically, I have to start in manually.

And as I now found out by retrying. The manual start works only if I choose "Start selected download" (guessing the name from German) but not "Start all downloads".

Christian
Comment 10 Dario Massarin 2010-01-15 12:52:03 UTC
The third download won't start until one of the 2 files you were downloaded is finished or stopped by the user. If you didn't change the default settings, you have a maximum of 2 downloads at the same time. If kget works correctly you should see your download start when this condition is met (the 1st or 2nd download finishes). Is this happening?
Comment 11 Christian Trippe 2010-01-15 14:09:05 UTC
(In reply to comment #10)
> The third download won't start until one of the 2 files you were downloaded is
> finished or stopped by the user. If you didn't change the default settings, you
> have a maximum of 2 downloads at the same time. If kget works correctly you
> should see your download start when this condition is met (the 1st or 2nd
> download finishes). Is this happening?

No, this does not happen.

This is what I am trying to explain. Sorry that I failed so badly and thanks for your patience.
Comment 12 Dario Massarin 2010-01-15 15:09:32 UTC
Don't worry. This sounds strange but I want to reproduce exactly the steps you're doing in order to trigger this bug. This is what I'm doing (without any luck):

1) Open kget, delete all transfers, set the maximum number of downloads per group to 2 AND make sure it's running (click on "Start / Resume All")
2) Open konqueror, go to http://wptl26.physik.uni-wuppertal.de/~trippe/uebungen/
3) Click in sequence, to all the pdf files I find there, clicking save as.. This will make kget add these transfers to the list.

Here kget starts downloading, each file, 2 at a time, without any trouble..

A question. What's shown in the status field of the downloads that aren't getting started? Do you see "Stopped" or what else?
Comment 13 Christian Trippe 2010-01-15 18:56:32 UTC
> A question. What's shown in the status field of the downloads that aren't
> getting started? Do you see "Stopped" or what else?

Yes, they are shown as "Stopped".

And to make sure I have no problem with old configuration files I also tried with a new user and could reproduce it.
Comment 14 Dario Massarin 2010-01-15 20:21:36 UTC
What happens if at that point you do "Stop All" and then "Start / Resume All"? 
In order to make sure that we're talking about the same things, you could do something like this: open the configuration dialog and create a new group. Now, in order to start and stop your downloads, use the play and stop buttons that appears on the top of your list of transfers.

I'm installing kget RC1, just to see if something was different at that point..
Comment 15 Christian Trippe 2010-01-17 19:09:04 UTC
(In reply to comment #14)
> What happens if at that point you do "Stop All" and then "Start / Resume All"? 

It does not help, I have to manually start every download (except the first and the second), seperately by "Start/resume the selected download".

> In order to make sure that we're talking about the same things, you could do
> something like this: open the configuration dialog and create a new group. Now,
> in order to start and stop your downloads, use the play and stop buttons that
> appears on the top of your list of transfers.
> 

Does not help either.
Comment 16 Christian Trippe 2010-01-24 21:08:32 UTC
I can no longer reproduce the bug with KDE SC 4.4 RC2, so I guess it can be closed.
Comment 17 Lukas Appelhans 2010-01-24 21:34:33 UTC
Ok awesum!

Lukas