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
12a302e9
Commit
12a302e9
authored
Aug 05, 2013
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
youtube.lua: update author name extraction
parent
d83bfb59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
share/lua/playlist/youtube.lua
share/lua/playlist/youtube.lua
+2
-2
No files found.
share/lua/playlist/youtube.lua
View file @
12a302e9
...
@@ -165,8 +165,8 @@ function parse()
...
@@ -165,8 +165,8 @@ function parse()
if
string.match
(
line
,
"<meta property=\"
og
:
image
\
""
)
then
if
string.match
(
line
,
"<meta property=\"
og
:
image
\
""
)
then
_
,
_
,
arturl
=
string.find
(
line
,
"content=\"
(.
-
)
\
""
)
_
,
_
,
arturl
=
string.find
(
line
,
"content=\"
(.
-
)
\
""
)
end
end
if
string.match
(
line
,
" rel=\"
author
\
""
)
then
if
not
artist
then
_
,
_
,
artist
=
string.find
(
line
,
"href=\"
/
user
/
([
^
\
"]*)\"
" )
artist
=
string.match
(
line
,
"yt%-uix%-sessionlink yt%-user%-name[^>]*>([^<]*)</
"
)
end
end
-- JSON parameters, also formerly known as "swfConfig",
-- JSON parameters, also formerly known as "swfConfig",
-- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig" ...
-- "SWF_ARGS", "swfArgs", "PLAYER_CONFIG", "playerConfig" ...
...
...
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