Skip to content

feat: improve YouTube download reliability#4

Merged
midhunmanesh01-code merged 1 commit into
mainfrom
feature/google-slayer
Jul 3, 2026
Merged

feat: improve YouTube download reliability#4
midhunmanesh01-code merged 1 commit into
mainfrom
feature/google-slayer

Conversation

@midhunmanesh01-code

Copy link
Copy Markdown
Owner

Update

Made some improvements to make downloads more reliable.

  • Better retries
  • Chrome impersonation
  • Android player client
  • Minor yt-dlp tweaks

This is Phase 1 of Operation Google Slayer. I'll continue improving reliability in the next updates.

@midhunmanesh01-code midhunmanesh01-code merged commit 234e701 into main Jul 3, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Flask backend’s yt-dlp configuration to improve YouTube download reliability by changing client behavior and retry settings, and includes a small tweak to the failure response HTML.

Changes:

  • Add impersonate: chrome and use the Android YouTube player client via extractor_args.
  • Reduce yt-dlp output noise (quiet, no_warnings) and add retry configuration (retries, extractor_retries).
  • Simplify the “Go Back” HTML in the error response.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread backend/app.py
Comment on lines 101 to +105
return f"""
<h2>Download Failed-Retry</h2>

<p>{str(e)}</p>

<br>

<a href="/">
<button>
Go Back
</button>
</a>
<a href="/"><button>Go Back</button></a>
Comment thread backend/app.py
Comment on lines 26 to 30
ydl_opts = {
'format': 'bestaudio',
'outtmpl': f'{DOWNLOAD_FOLDER}/%(title)s.%(ext)s',

'impersonate': 'chrome',
'extractor_args': {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants