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
9cd79b70
Commit
9cd79b70
authored
Aug 07, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
youtube.lua: alternative way of fetching ArtURL
parent
eb7ae363
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
share/lua/playlist/youtube.lua
share/lua/playlist/youtube.lua
+7
-2
No files found.
share/lua/playlist/youtube.lua
View file @
9cd79b70
...
@@ -76,6 +76,9 @@ function parse()
...
@@ -76,6 +76,9 @@ function parse()
description
=
vlc
.
strings
.
resolve_xml_special_chars
(
description
)
description
=
vlc
.
strings
.
resolve_xml_special_chars
(
description
)
description
=
vlc
.
strings
.
resolve_xml_special_chars
(
description
)
description
=
vlc
.
strings
.
resolve_xml_special_chars
(
description
)
end
end
if
string.match
(
line
,
"<meta property=\"
og
:
image
\
""
)
then
_
,
_
,
arturl
=
string.find
(
line
,
"content=\"
(.
-
)
\
""
)
end
if
string.match
(
line
,
" rel=\"
author
\
""
)
then
if
string.match
(
line
,
" rel=\"
author
\
""
)
then
_
,
_
,
artist
=
string.find
(
line
,
"href=\"
/
user
/
([
^
\
"]*)\"" )
_
,
_
,
artist
=
string.find
(
line
,
"href=\"
/
user
/
([
^
\
"]*)\"" )
end
end
...
@@ -102,8 +105,10 @@ function parse()
...
@@ -102,8 +105,10 @@ function parse()
end
end
end
end
video_id = get_url_param( vlc.path, "
v
" )
if not arturl then
arturl = get_arturl( vlc.path, video_id )
video_id = get_url_param( vlc.path, "
v
" )
arturl = get_arturl( vlc.path, video_id )
end
if not path then
if not path then
vlc.msg.err( "
Couldn
't extract youtube video URL, please check for updates to this script" )
vlc.msg.err( "
Couldn
't extract youtube video URL, please check for updates to this script" )
...
...
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