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
77f58c38
Commit
77f58c38
authored
Oct 25, 2014
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
youtube.lua: support embedded iframe URLs
Closes #11878
parent
1ab2a942
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
share/lua/playlist/youtube.lua
share/lua/playlist/youtube.lua
+4
-0
No files found.
share/lua/playlist/youtube.lua
View file @
77f58c38
...
@@ -215,6 +215,7 @@ function probe()
...
@@ -215,6 +215,7 @@ function probe()
return
(
string.match
(
vlc
.
path
,
"/watch%?"
)
-- the html page
return
(
string.match
(
vlc
.
path
,
"/watch%?"
)
-- the html page
or
string.match
(
vlc
.
path
,
"/get_video_info%?"
)
-- info API
or
string.match
(
vlc
.
path
,
"/get_video_info%?"
)
-- info API
or
string.match
(
vlc
.
path
,
"/v/"
)
-- video in swf player
or
string.match
(
vlc
.
path
,
"/v/"
)
-- video in swf player
or
string.match
(
vlc
.
path
,
"/embed/"
)
-- embedded player iframe
or
string.match
(
vlc
.
path
,
"/player2.swf"
)
)
-- another player url
or
string.match
(
vlc
.
path
,
"/player2.swf"
)
)
-- another player url
end
end
...
@@ -373,6 +374,9 @@ function parse()
...
@@ -373,6 +374,9 @@ function parse()
if
not
video_id
then
if
not
video_id
then
_
,
_
,
video_id
=
string.find
(
vlc
.
path
,
"/v/([^?]*)"
)
_
,
_
,
video_id
=
string.find
(
vlc
.
path
,
"/v/([^?]*)"
)
end
end
if
not
video_id
then
video_id
=
string.match
(
vlc
.
path
,
"/embed/([^?]*)"
)
end
if
not
video_id
then
if
not
video_id
then
vlc
.
msg
.
err
(
"Couldn't extract youtube video URL"
)
vlc
.
msg
.
err
(
"Couldn't extract youtube video URL"
)
return
{
}
return
{
}
...
...
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