Giter Site home page Giter Site logo

Restart Download about httpdownloader HOT 18 CLOSED

erickutcher avatar erickutcher commented on July 21, 2024
Restart Download

from httpdownloader.

Comments (18)

erickutcher avatar erickutcher commented on July 21, 2024

It's doable, but a bit involved in terms of coding. I'll keep it in mind.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

It's doable, but a bit involved in terms of coding.

Wouldn't such command treat the restarted download as new download just using the previously added download link and thus skipping'Add URL(s)' dialog?

Currently as a workaround I use:

  • 'Copy URL(s)' command - 'Add URL(s)' command - 'Download' command;

An option to 'Restart' download would spare the user a few clicks.

from httpdownloader.

erickutcher avatar erickutcher commented on July 21, 2024

Right now if the file doesn't exist and you attempt to Open File from the menus, it'll detect it's not there and prompt you if you want to redownload it. All of that is easy. It's restarting it while it's currently downloading that's tricky. I could just only allow a restart if the download is stopped, but for completion's sake, being able to restart it at any point would be nicer. Nicer, but harder.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

I could just only allow a restart if the download is stopped, but for completion's sake, being able to restart it at any point would be nicer. Nicer, but harder.

From a practical point of view for me it would be fine if 'Restart' command is not active (grayed-out) when download is unfinished, paused, stopped so 'Restart' command being accessible only for completed downloads. I really do not see why should I want to restart an active download.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

Thank you for the tip about

The specified file was not found
Do you want to download the file again?

message. This really works like 'Restart'! I have not used 'Open File' command because I always move downloaded files from the default download directory. So 'Restart' command may have the same behaviour.

from httpdownloader.

erickutcher avatar erickutcher commented on July 21, 2024

I ended up coding it to be able to restart for all states. It makes it consistent with other things and there might be someone who could use it for testing purposes. There's also a "Are you sure you want to..." prompt if it gets accidentally clicked.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

@erickutcher

I ended up coding it to be able to restart for all states.

I suppose it was huge work. Thank you.

A question- if a previous download is already in the list and the user adds it as a new download- shouldn't be used the previpus download from the list in stead of adding a new one at the bottom of the list?

from httpdownloader.

erickutcher avatar erickutcher commented on July 21, 2024

It wouldn't be very efficient to scan the list for duplicates every time a URL is added.

The Simulate download option is a good way to do a speed test. It downloads without actually saving anything to the disk. Having the same download multiple times can show you a history of those tests.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

If the list of downloads is long searching for a particular download may not be fast- what about marking a download and typing a letter, for example 'h', which navigates to the next download in the list which starts with 'h'? This may facilitate search. What do you think?

from httpdownloader.

erickutcher avatar erickutcher commented on July 21, 2024

A Find window could be made for a later version. Seems easy enough.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

A Find window could be made for a later version. Seems easy enough.

'Search' window will be fine but wouldn't it be easier just to search while typing? Or this type of search (directly through download list) would be harder to be implemented?

from httpdownloader.

erickutcher avatar erickutcher commented on July 21, 2024

I've made it so that it behaves like a standard Windows listview control. That is, when you start typing something, it'll select the first item it finds in the list. The problem is that it's very rudimentary and limited to the Filename column. GTK style listviews can be searched in a similar manner and they're more thorough in searching, but I've never liked how it overlays a text box on the listview.

Having a Find window will let you search not only the Filename column, but also the URL column. You could do case sensitive/insensitive searches, and have it select multiple items in one go. It's much more versatile.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

I've made it so that it behaves like a standard Windows listview control. That is, when you start typing something, it'll select the first item it finds in the list.

This is exactly what I meant.

The problem is that it's very rudimentary and limited to the Filename column.

I usually need just the file name- I remember file names, not URLs.

Having a Find window will let you search not only the Filename column, but also the URL column. You could do case sensitive/insensitive searches, and have it select multiple items in one go. It's much more versatile.

This sounds fantastic although it would be needed rarely I suppose. Thank you, I wouldn't dare suggest such a complex feature which would be used seldom.

from httpdownloader.

erickutcher avatar erickutcher commented on July 21, 2024

Restart, Remove and Delete, and Search are all in the new release.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

For me (as of version 1.0.1.0) Restart command does not work, neither when executed from context menu, nor when executed from tool bar. It triggers Are you sure you want to restart the selected entries? dialog but when I confirm nothing happens. Will you please confirm?

from httpdownloader.

erickutcher avatar erickutcher commented on July 21, 2024

I tried it with a stopped, paused, and downloading download and they worked, but it's apparently not restarting completed downloads. I'll have to fix that.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

I tried it with a stopped, paused, and downloading download and they worked, but it's apparently not restarting completed downloads. I'll have to fix that.

I should have mentioned that I tried to use 'Restart' command only with completed downloads.

from httpdownloader.

smaragdus avatar smaragdus commented on July 21, 2024

I confirm that restarting completed downloads works fine with version 1.0.1.1, thanks!

from httpdownloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.