Thinki-Downloader icon indicating copy to clipboard operation
Thinki-Downloader copied to clipboard

Add download progress indicators and enhance video quality documentation

Open Copilot opened this issue 3 months ago • 0 comments

Users reported downloads appearing frozen on large files, unclear file size differences, and need for parallel downloads (issue #36).

Changes

Progress Tracking

  • Modified downloadFileChunked() to display real-time progress: percentage and human-readable bytes every 10% increment
  • Added global course progress counter showing completion across all items and chapters
  • Added formatBytes() helper for MB/GB display
// Example output
Progress: 60% (90.4 MB / 150.5 MB)
----------------------------------------------
Overall Course Progress: 25% (10/40 items)
Completed: Getting Started
----------------------------------------------

Video Quality & File Size

  • Documented existing VIDEO_DOWNLOAD_QUALITY feature (Original, 1080p, 720p, 540p, 360p, 224p)
  • Added note that lower quality settings reduce file sizes 5-10x vs 1080p
  • Addresses user's 800MB vs 80MB file size concern

Parallel Downloads Infrastructure

  • Created ParallelDownloader class supporting max 3 concurrent downloads (Thinkific's connection limit)
  • Added ENABLE_PARALLEL_DOWNLOADS config flag
  • Infrastructure ready for future pcntl/pthread integration

Documentation

  • Added Features section with examples in README
  • Updated version to 6.5 with changelog entry

All changes maintain backward compatibility. No breaking changes.

Original prompt

This section details on the original issue you should resolve

<issue_title>Suggestion - Download percentage</issue_title> <issue_description>Hello,

Thank you for for the beautiful script. Very useful.

I have a few suggestions :

  • Adding a total course and individual video download percentage. When downloading large videos it seems like it is frozen and I have to check network activity to make sure it is still downloading. It would be nice to have a visual indicator of how much is downloaded.

  • Is there a way to decrease file sizes ? It seems that if I download files individually using other m3u8 extensions "Live Stream Downloader", the file sizes are significantly different (800 mb vs 80 mb), seemingly same resolution.

  • When downloading MCQs, maybe download two html files, one with and one without the answers highlighted ?

Thanks a lot!</issue_description>

<agent_instructions>Work on the below three feature enhancements as mentioned by the user. Note that the changes you do should not break existing downloader functionality.

  1. Adding a total course and individual video download percentage. When downloading large videos it seems like it is frozen and I have to check network activity to make sure it is still downloading. It would be nice to have a visual indicator of how much is downloaded.

  2. Is there a way to decrease file sizes ? It seems that if I download files individually using other m3u8 extensions "Live Stream Downloader", the file sizes are significantly different (800 mb vs 80 mb), seemingly same resolution. Maybe ffmpeg is being used to capture the video and audio and being merged inside browser.

  3. Implement parallel downloads of files with max thread count =3 as it's the limit of thinkific, </agent_instructions>

Comments on the Issue (you are @copilot in this section)

@sumeetweb Thank you, @AlienFever for trying out the script and thanks again for the tip.
  • For first suggestion, I think a GUI would be better choice. Need to research on this or might rewrite script in another lang to achieve this. I will try adding a downloading and file counter to it.

  • The script directly download videos from their cloud storage in original format from an object storage bucket. For quality selection, I think we need to pass it to ffmpeg to stich the video chunks. Need an account which has that video files to test some methods.

  • Yes, we can do this. Let me try this today.

Thanks for suggestions.

Best, Sumeet.</comment_new> <comment_new>@sumeetweb

No updates yet. I am prioritizing downloading the compressed video and option for downloading MCQs without answers from this list.</comment_new> <comment_new>@sumeetweb Please save the .env file. Also, the Course URL seems wrong.

On Sun, 17 Dec, 2023, 2:29 am Govii-git, @.***> wrote:

Screenshot.2023-12-17.022730.png (view on web) https://github.com/sumeetweb/Thinki-Downloader/assets/115867657/f6afc31e-f508-4be6-9bd9-47b437e1dfd0

please let me know if there is any problem. I tried many times if it continually fails.

— Reply to this email directly, view it on GitHub https://github.com/sumeetweb/Thinki-Downloader/issues/36#issuecomment-1858929083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF734XQ62NHPU2AAX3J7POTYJYDTFAVCNFSM6AAAAAAWHQJBYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYHEZDSMBYGM . You are receiving this because you were mentioned.Message ID: @.***>

  • Fixes sumeetweb/Thinki-Downloader#36

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot avatar Nov 18 '25 20:11 Copilot