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
18453ab2
Commit
18453ab2
authored
Oct 25, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua demuxer: update googlevideo
parent
0d358e7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
share/luaplaylist/googlevideo.lua
share/luaplaylist/googlevideo.lua
+13
-3
No files found.
share/luaplaylist/googlevideo.lua
View file @
18453ab2
...
@@ -9,7 +9,17 @@ end
...
@@ -9,7 +9,17 @@ end
-- Parse function.
-- Parse function.
function
parse
()
function
parse
()
-- We don't need to get the meta data here since it'll be available in
while
true
-- the GVP file.
do
return
{
{
path
=
string.gsub
(
vlc
.
path
,
"^.*(docid=[^&]*).*$"
,
"http://video.google.com/videogvp?%1"
)
}
}
line
=
vlc
.
readline
()
if
not
line
then
break
end
if
string.match
(
line
,
"^<title>"
)
then
title
=
string.gsub
(
line
,
"<title>([^<]*).*"
,
"%1"
)
end
if
string.match
(
line
,
"src=\"
/
googleplayer
.
swf
" ) then
url = string.gsub( line, "
.
*
videoUrl
=
([
^
&
]
*
).
*
" ,"
%
1
" )
arturl = string.gsub( line, "
.
*
thumbnailUrl
=
([
^
\
"]*).*"
,
"%1"
)
return
{
{
path
=
vlc
.
decode_uri
(
url
),
title
=
title
,
arturl
=
vlc
.
decode_uri
(
arturl
)
}
}
end
end
end
end
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