Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
04d461bc
Commit
04d461bc
authored
Jul 14, 2011
by
Konstantin Pavlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA: Fix MPORA playlist parser.
parent
a1fdfd70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
share/lua/playlist/mpora.lua
share/lua/playlist/mpora.lua
+3
-4
No files found.
share/lua/playlist/mpora.lua
View file @
04d461bc
...
@@ -39,9 +39,8 @@ function parse()
...
@@ -39,9 +39,8 @@ function parse()
if
string.match
(
line
,
"image_src"
)
then
if
string.match
(
line
,
"image_src"
)
then
_
,
_
,
arturl
=
string.find
(
line
,
"image_src\"
href
=
\
"(.*)\"
/>
" )
_
,
_
,
arturl
=
string.find
(
line
,
"image_src\"
href
=
\
"(.*)\"
/>
" )
end
end
if string.match( line, "
video_src
" ) then
if string.match( line, "
filmID
" ) then
_,_,video = string.find( line, "
href
=
\
"http://video\.mpora\.com/ep/(.*).swf\"
/>
" )
_,_,video = string.find( line, "
var
filmID
=
\
'(.*)\'
;
")
end
end
end
end
...
@@ -68,7 +67,7 @@ function parse()
...
@@ -68,7 +67,7 @@ function parse()
hd = vlc.stream("
http
:
//
api
.
mpora
.
com
/
tv
/
player
/
playlist
/
vid
/
"..video.."
/
hd
/
true
/
")
hd = vlc.stream("
http
:
//
api
.
mpora
.
com
/
tv
/
player
/
playlist
/
vid
/
"..video.."
/
hd
/
true
/
")
page = hd:read( 65653 )
page = hd:read( 65653 )
hdurl = string.match( page, "
url
=
\
"(.*)\"
/>
")
hdurl = string.match( page, "
url
=
\
"(.*)\"
/>
")
table.insert( p, { path = hdurl; name = name.."
(
HD
)
"; arturl = arturl } )
table.insert( p, { path = hdurl; name = name.."
(
HD
)
"; arturl = arturl
;
} )
end
end
return p
return p
...
...
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