Skip to content

feat: add HTTP headers for improved YouTube download requests#5

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

feat: add HTTP headers for improved YouTube download requests#5
midhunmanesh01-code merged 1 commit into
mainfrom
feature/google-slayer

Conversation

@midhunmanesh01-code

Copy link
Copy Markdown
Owner

No description provided.

@midhunmanesh01-code midhunmanesh01-code merged commit ebeb078 into main Jul 9, 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 backend YouTube download flow to include explicit HTTP request headers when invoking yt_dlp, aiming to make requests appear more browser-like and improve download reliability.

Changes:

  • Added an http_headers dictionary to the audio download ydl_opts.
  • Added the same http_headers dictionary to the video download ydl_opts.

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

Comment thread backend/app.py
Comment on lines +30 to +34
'http_headers': {
'User-Agent': (
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
'AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/120.0.0.0 Safari/537.36'
Comment thread backend/app.py
Comment on lines +62 to +66
'http_headers': {
'User-Agent': (
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
'AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/120.0.0.0 Safari/537.36'
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