Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
deb69f94
Commit
deb69f94
authored
Jul 22, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
canalplus: Fix.
parent
e6b02bf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
share/lua/playlist/canalplus.lua
share/lua/playlist/canalplus.lua
+7
-7
No files found.
share/lua/playlist/canalplus.lua
View file @
deb69f94
--[[
$Id: $
Copyright
©
2007 the VideoLAN team
Copyright
(c)
2007 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -37,12 +37,12 @@ function parse()
-- vlc.msg.dbg( line )
if
string.match
(
line
,
"aVideos"
)
then
if
string.match
(
line
,
"CONTENT_ID.*="
)
then
id
=
string.gsub
(
line
,
"^.*\"
(.
-
)
\
".*$"
,
"%1"
)
id
=
string.gsub
(
line
,
"^.*\"
(.
*
)
\
".*$"
,
"%1"
)
elseif
string.match
(
line
,
"CONTENT_VNC_TITRE"
)
then
arturl
=
string.gsub
(
line
,
"^.*src=\"
(.
-
)
\
".*$"
,
"%1"
)
name
=
string.gsub
(
line
,
"^.*
alt=\"
(.
-
)
\
".*$"
,
"%1"
)
arturl
=
string.gsub
(
line
,
"^.*src=\"
(.
*
)
\
".*$"
,
"%1"
)
name
=
string.gsub
(
line
,
"^.*
title=\"
(.
*
)
\
".*$"
,
"%1"
)
elseif
string.match
(
line
,
"CONTENT_VNC_DESCRIPTION"
)
then
description
=
string.gsub
(
line
,
"^.*\"
(.
-
)
\
".*$"
,
"%1"
)
description
=
string.gsub
(
line
,
"^.*\"
(.
*
)
\
".*$"
,
"%1"
)
end
if
id
and
string.match
(
line
,
"new Array"
)
then
add_item
(
p
,
id
,
name
,
description
,
arturl
)
...
...
@@ -62,12 +62,12 @@ function parse()
local
line
=
vlc
.
readline
()
if
not
line
then
break
end
--vlc.msg.dbg( line )
if
string.match
(
line
,
"<hi
>
"
)
then
if
string.match
(
line
,
"<hi"
)
then
local
path
=
string.gsub
(
line
,
"^.*%[(.-)%].*$"
,
"%1"
)
vlc
.
msg
.
err
(
"Path is: "
..
tostring
(
path
)
)
return
{
{
path
=
path
}
}
end
end
vlc
.
msg
.
err
(
"canalplus: can't find video in page"
)
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