question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] Download management

See original GitHub issue

Forgive me for breaking the template here, but this is more than just a single feature I’m looking to add.

The download management hasn’t been overhauled since #57, and it’s been a long time since then. The main issues are:

  1. The GUI page is unwieldy to use
  2. It does not fit nicely into our current DB system
  3. There is no “order” to the downloads, they are simply split by session
  4. Retries are not possible
  5. Pausing is not possible
  6. All downloads start as soon as they can, without a system to queue them up
  7. Download state (e.g. progress) is inconsistent and not clear (how much is downloaded in MBs? What’s the ETA?)

These can be fixed with two new database tables. First, a download_queue which stores all info necessary to begin a download. It will keep track of the state (started or not, progress, paused or not, queue position)

  • Caveat 1: how often do we want to update this? currently downloads get updated every second or so, but this may be too frequent
  • Caveat 2: how do we store queue position? In the local DB, this is easy as items in a “table” is really just an array. In MongoDB, I don’t believe this isn’t the case. Perhaps we just store the start timestamp and sort when we pull the records.

Next, we can have a finished_downloading table, where we store downloads that finished or failed (with an error log). Here we can include a retry button, and an option to clear the “log” (not the file itself).

The GUI should be overhauled as well, showing first the download queue, and under it the finished downloads. This can be in a table format if space allows.

Related feature request: #379 regarding rate limiting downloads, which will almost certainly merge before this even gets worked on.


Tangential to this #157 which should make the process of importing videos easier. The reason these occupy the same space in my brain is I imagine a queue system that can work for both (unprocessed upload -> processed upload, likewise not yet downloaded -> downloaded)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tzahi12345commented, Aug 10, 2021
1reaction
jonathanm-urcommented, Aug 6, 2021

This may belong as a separate request, but it fits with the general theme of download management.

I would like a list of all videos in a channel, with the ability to refresh that list but not automatically download new videos, just offer the ability to check them off and add them to the queue.

This could be implemented in the current GUI layout, when you browse the specific subscription or playlist it could have a refresh button that would update the list of currently available videos, show a blank thumbnail with text or download the thumbnail only and overlay a red X or something that would denote that it’s not available locally yet, clicking on it would offer the ability to immediately download or add it to a queue. It would also be nice to highlight videos that are local only with no online counterpart with a distinct border or something, so you can see at a glance if one of the previous downloads is no longer available online.

There are some channels I watch that occasionally don’t automatically download all new content, it would be nice to know if the youtubedl list isn’t picking up the video, or it picked it up and couldn’t download for some reason.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Free Download Manager - download everything from the ...
Free Download Manager accelerates all types of downloads (files, video, torrents). It's a smart and fast internet download manager for Windows and macOS....
Read more >
10 BEST Free Download Manager For Windows PC In 2022
Verdict: JDownloader is arguably one of the best Download Managers available on Windows today, thanks to its open-source nature, and feature- ...
Read more >
15 Best FREE Download Manager for Windows 10 PC (2022)
Following is a handpicked list of Top Download Manager for Windows PC, Mac, and Linux with their popular features and website links.
Read more >
8 Best Free Download Managers - Lifewire
Download managers are special apps and browser extensions that help manage large and multiple downloads. Here are eight free ones we think are...
Read more >
Best free download manager of 2022 - TechRadar
We feature the best free download managers, to make it simple and easy to organize not just your downloads but also improve your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found