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
4553ce6d
Commit
4553ce6d
authored
May 21, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: lastfm: fix matching
parent
e0a9173a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
share/lua/meta/art/03_lastfm.lua
share/lua/meta/art/03_lastfm.lua
+1
-1
No files found.
share/lua/meta/art/03_lastfm.lua
View file @
4553ce6d
...
@@ -49,7 +49,7 @@ function fetch_art()
...
@@ -49,7 +49,7 @@ function fetch_art()
if
not
fd
then
return
nil
end
if
not
fd
then
return
nil
end
page
=
fd
:
read
(
65653
)
page
=
fd
:
read
(
65653
)
fd
=
nil
fd
=
nil
_
,
_
,
arturl
=
string.find
(
page
,
"<
img width=\"
174
\
" src=\"
([
^
\
"]+)\"
class
=
\
"art\"
/>
\
n
" )
_
,
_
,
arturl
=
string.find
(
page
,
"<
meta property=\"
og
:
image
\
" content=\"
([
^
\
"]+)\"
/>
" )
-- Don't use default album-art (not found one)
-- Don't use default album-art (not found one)
if not arturl or string.find( arturl, "
default_album_mega
.
png
") then
if not arturl or string.find( arturl, "
default_album_mega
.
png
") then
return nil
return nil
...
...
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