Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
user agent bug #89
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 !!