-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user agent bug #89
Comments
Also still shows Firefox/4.0b11 though Firefox/4.0b12 is now installed. |
Edit |
oh! Weird. Definitely a bug, but not a youtube-dl bug then, sorry! (which rightly 'emulates' the browser) My firefox shows Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110125 Firefox/3.6.13 |
Edit again. |
eeek, thanks... that explains it. I didn't realise it was the build date, I assumed it was the date of the gecko release.. nasty bit of info to include for those of us who do source builds! cheers for the detailed reply |
About the beta 11/12: when I released the latest youtube-dl version, I was using beta 11. Beta 12 hadn't made it yet to my distribution repositories. I literally copied the user-agent string from the browser I was using at the moment. |
OK It's here in the code at line 40:- std_headers = { } |
Yes, it's just the header youtube-dl sends, to mimic a web browser. |
Currently it seems that all you need is the cookies and the url, but it's a good idea to have these to 'fly under the radar' ! |
ok, not exactly serious, but you have the user agent as Gecko/20100101
i.e. 2010 instead of 2011 !!
The text was updated successfully, but these errors were encountered: