Jump to content

Who here has a Youtube-DL compile for WinXP?


Recommended Posts

Posted
On 7/12/2025 at 8:53 AM, nicolaasjan said:

BTW, I've made a significant change to `./youtube_dl/utils.py`, as I suggested here. Youtube-dl actually works now.

Quote

... And now yt-dlp have updated their random UA string to report Chrome 132-138:

https://github.com/yt-dlp/yt-dlp/commit/c59ad2b066bbccd3cc4eed580842f961bce7dd4a#diff-b6d91e8afdfc47fb2b59e37d22d3621b79d252bc5a8205edc2b80530dcceecc2


Posted
11 hours ago, VistaLover said:

Yes, I saw that.

However, their new code snippet used in that commit didn't play well with Python 3.4.4...

Maybe I can implement it like:

def random_user_agent():
    _USER_AGENT_TPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36'
    _CHROME_VERSIONS = (
        '132.0.0.0',
        '133.0.0.0',
        '134.0.0.0',
        '135.0.0.0',
        '136.0.0.0',
        '137.0.0.0',
        '138.0.0.0',
    )
    return _USER_AGENT_TPL % random.choice(_CHROME_VERSIONS)

🤔

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...