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
951ced78
Commit
951ced78
authored
Feb 13, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua playlist: extend pluzz.lua to handle france4.
Some pluzz streams are only available on shows pages.
parent
4ad109e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
share/lua/playlist/pluzz.lua
share/lua/playlist/pluzz.lua
+14
-0
No files found.
share/lua/playlist/pluzz.lua
View file @
951ced78
...
...
@@ -25,6 +25,7 @@ function probe()
return
vlc
.
access
==
"http"
and
string.match
(
vlc
.
path
,
"pluzz.fr/%w+"
)
or
string.match
(
vlc
.
path
,
"info.francetelevisions.fr/.+"
)
or
string.match
(
vlc
.
path
,
"france4.fr/%w+"
)
end
-- Helpers
...
...
@@ -53,6 +54,19 @@ function parse()
end
end
if
string.match
(
vlc
.
path
,
"www.france4.fr/%w+"
)
then
while
true
do
line
=
vlc
.
readline
()
if
not
line
then
break
end
-- maybe we should get id from tags having video/cappuccino type instead
if
string.match
(
line
,
"id=\"
lavideo
\
""
)
then
_
,
_
,
redirect
=
string.find
(
line
,
"href=\"
(.
-
)
\
""
)
print
(
"redirecting to: "
..
redirect
)
return
{
{
path
=
redirect
}
}
end
end
end
if
string.match
(
vlc
.
path
,
"info.francetelevisions.fr/.+"
)
then
title
=
""
arturl
=
"http://info.francetelevisions.fr/video-info/player_sl/Images/PNG/gene_ftv.png"
...
...
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