Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3d37be4f
Commit
3d37be4f
authored
May 29, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP: add LibVLC version to User-Agent correctly
parent
c10f4954
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
modules/access/http.c
modules/access/http.c
+2
-1
share/lua/playlist/appletrailers.lua
share/lua/playlist/appletrailers.lua
+1
-1
share/lua/sd/appletrailers.lua
share/lua/sd/appletrailers.lua
+1
-1
No files found.
modules/access/http.c
View file @
3d37be4f
...
...
@@ -1286,7 +1286,8 @@ static int Request( access_t *p_access, uint64_t i_tell )
}
}
/* User Agent */
net_Printf
(
p_access
,
p_sys
->
fd
,
pvs
,
"User-Agent: %s
\r\n
"
,
net_Printf
(
p_access
,
p_sys
->
fd
,
pvs
,
"User-Agent: %s LibVLC/"
VERSION
"
\r\n
"
,
p_sys
->
psz_user_agent
);
/* Offset */
if
(
p_sys
->
i_version
==
1
&&
!
p_sys
->
b_continuous
)
...
...
share/lua/playlist/appletrailers.lua
View file @
3d37be4f
...
...
@@ -53,7 +53,7 @@ function parse()
else
extraname
=
""
end
table.insert
(
p
,
{
path
=
path
;
name
=
title
..
extraname
;
description
=
description
;
url
=
vlc
.
path
;
options
=
":http-user-agent=\"
QuickTime
vlc
lua
edition
\
""
}
)
table.insert
(
p
,
{
path
=
path
;
name
=
title
..
extraname
;
description
=
description
;
url
=
vlc
.
path
;
options
=
":http-user-agent=\"
QuickTime
\
""
}
)
end
if
string.match
(
line
,
"<title>"
)
then
...
...
share/lua/sd/appletrailers.lua
View file @
3d37be4f
...
...
@@ -32,7 +32,7 @@ end
function
main
()
fd
=
vlc
.
stream
(
"http://trailers.apple.com/trailers/home/feeds/just_hd.json"
)
if
not
fd
then
return
nil
end
options
=
{
":http-user-agent=QuickTime/7.2
vlc edition
"
,
":demux=avformat,ffmpeg"
,
":play-and-pause"
}
options
=
{
":http-user-agent=QuickTime/7.2"
,
":demux=avformat,ffmpeg"
,
":play-and-pause"
}
line
=
fd
:
readline
()
while
line
~=
nil
do
...
...
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