Skip to content

feat: update impersonation header for YouTube downloads#6

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

feat: update impersonation header for YouTube downloads#6
midhunmanesh01-code merged 1 commit into
mainfrom
feature/google-slayer

Conversation

@midhunmanesh01-code

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 9, 2026 16:32
@midhunmanesh01-code midhunmanesh01-code merged commit c330c82 into main Jul 9, 2026

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 yt-dlp impersonate configuration used by the Flask backend when downloading YouTube audio/video, switching the impersonation target from generic Chrome to a specific Chrome version.

Changes:

  • Updated yt-dlp impersonate value from chrome to chrome-136 for audio downloads.
  • Updated yt-dlp impersonate value from chrome to chrome-136 for video downloads.
Comments suppressed due to low confidence (2)

backend/app.py:34

  • impersonate is set to chrome-136 but the hard-coded User-Agent still advertises Chrome 120. This mismatch can defeat the point of impersonation and may increase bot-detection risk. Align the UA with the impersonation target (or remove the UA override if you intend impersonate to control headers).
            'impersonate': 'chrome-136',
            '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'

backend/app.py:66

  • Same mismatch here: impersonate: chrome-136 but User-Agent is still Chrome 120. These should be consistent to avoid sending contradictory client signals.
            'impersonate': 'chrome-136',
            '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'

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

@midhunmanesh01-code midhunmanesh01-code deleted the feature/google-slayer branch July 9, 2026 16: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