Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
767cec1d
Commit
767cec1d
authored
Sep 17, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vimeo.lua: spoof user-agent with something inconspicuous
This is needed for HD
parent
80b99996
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
share/lua/playlist/vimeo.lua
share/lua/playlist/vimeo.lua
+4
-1
No files found.
share/lua/playlist/vimeo.lua
View file @
767cec1d
...
...
@@ -32,7 +32,10 @@ function parse()
p
=
{}
if
string.match
(
vlc
.
path
,
"vimeo.com/%d+"
)
then
_
,
_
,
id
=
string.find
(
vlc
.
path
,
"vimeo.com/(.*)"
)
return
{
{
path
=
"http://vimeo.com/moogaloop/load/clip:"
..
id
..
"/local/"
,
name
=
"Vimeo playlist"
}
}
-- Vimeo disables HD if the user-agent contains "VLC", so we
-- set it to something inconspicuous. We do it here because
-- they seem to do some detection across requests
return
{
{
path
=
"http://vimeo.com/moogaloop/load/clip:"
..
id
..
"/local/"
,
name
=
"Vimeo playlist"
,
options
=
{
":http-user-agent=Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2"
}
}
}
end
if
string.match
(
vlc
.
path
,
"vimeo.com/moogaloop"
)
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment