]> git.sesse.net Git - vlc/commit
vimeo playback now hides user agent automatically
authorStephen Parry <sgparry@mainscreen.com>
Wed, 6 Mar 2013 19:36:07 +0000 (19:36 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Mar 2013 16:57:26 +0000 (17:57 +0100)
commit64a112182c9fd0eb1e46a9ba3d05f98b84df5237
tree9d2e7ee4830edf74e49fa9df4fef2057df42bba2
parent867abf04659915099b4b54fd6403794add7086d2
vimeo playback now hides user agent automatically

Vimeo injects garbage into pages fetched by any user agent recognisable as
being VLC. Amended parse routine to check the current user agent; if the user
agent is set to VLC then parse returns a replacement playlist entry with the
same url but with an option setting the user agent to something that vimeo will
not trash.
The main playlist parsing loop then re-opens the stream with the correct agent
and calls vimeo.lua a second time; the stream is then parsed as before to get
the actual shortlived video url.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
share/lua/playlist/vimeo.lua