Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c52dde2d
Commit
c52dde2d
authored
Jun 04, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua sd: add source as meta for faster skipping of unrelated resources
parent
24c3ed9f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
share/lua/meta/art/00_musicbrainz.lua
share/lua/meta/art/00_musicbrainz.lua
+4
-0
share/lua/meta/art/01_googleimage.lua
share/lua/meta/art/01_googleimage.lua
+6
-2
share/lua/meta/art/03_lastfm.lua
share/lua/meta/art/03_lastfm.lua
+5
-0
share/lua/sd/freebox.lua
share/lua/sd/freebox.lua
+7
-1
share/lua/sd/icecast.lua
share/lua/sd/icecast.lua
+1
-0
No files found.
share/lua/meta/art/00_musicbrainz.lua
View file @
c52dde2d
...
...
@@ -52,6 +52,10 @@ end
function
fetch_art
()
local
meta
=
vlc
.
item
:
metas
()
if
meta
[
"Listing Type"
]
==
"radio"
or
meta
[
"Listing Type"
]
==
"tv"
then
return
nil
end
if
meta
[
"artist"
]
and
meta
[
"album"
]
then
query
=
"artist:\"" .. meta["
artist
"] .. "
\
" AND release:\"" .. meta["
album
"] .. "
\
""
relquery
=
"http://mb.videolan.org/ws/2/release/?query="
..
vlc
.
strings
.
encode_uri_component
(
query
)
...
...
share/lua/meta/art/01_googleimage.lua
View file @
c52dde2d
...
...
@@ -25,10 +25,14 @@ function fetch_art()
local
meta
=
vlc
.
item
:
metas
()
--
IceCast
Entries
if
meta
[
"Listing
Source"
]
==
"dir.xiph.org
"
--
Radio
Entries
if
meta
[
"Listing
Type"
]
==
"radio
"
then
title
=
meta
[
"title"
]
..
" radio logo"
-- TV Entries
elseif
meta
[
"Listing Type"
]
==
"tv"
then
title
=
meta
[
"title"
]
..
" tv logo"
-- Album entries
elseif
meta
[
"artist"
]
and
meta
[
"album"
]
then
title
=
meta
[
"artist"
]
..
" "
..
meta
[
"album"
]
..
" cover"
...
...
share/lua/meta/art/03_lastfm.lua
View file @
c52dde2d
...
...
@@ -23,6 +23,11 @@
function
fetch_art
()
if
vlc
.
item
==
nil
then
return
nil
end
local
meta
=
vlc
.
item
:
metas
()
if
meta
[
"Listing Type"
]
==
"radio"
or
meta
[
"Listing Type"
]
==
"tv"
then
return
nil
end
if
meta
[
"artist"
]
and
meta
[
"album"
]
then
title
=
meta
[
"artist"
]
..
"/"
..
meta
[
"album"
]
else
...
...
share/lua/sd/freebox.lua
View file @
c52dde2d
...
...
@@ -86,7 +86,13 @@ function main()
_
,
_
,
option
=
string.find
(
line
,
":(.+)"
)
table.insert
(
options
,
option
)
else
vlc
.
sd
.
add_item
(
{
path
=
line
,
duration
=
duration
,
artist
=
artist
,
title
=
name
,
arturl
=
arturl
,
options
=
options
}
)
vlc
.
sd
.
add_item
({
path
=
line
,
duration
=
duration
,
artist
=
artist
,
title
=
name
,
arturl
=
arturl
,
meta
=
{[
"Listing Type"
]
=
"tv"
},
options
=
options
})
duration
=
nil
artist
=
nil
name
=
nil
...
...
share/lua/sd/icecast.lua
View file @
c52dde2d
...
...
@@ -47,6 +47,7 @@ function main()
..
station
.
children_map
[
"listen_url"
][
1
].
children
[
1
],
meta
=
{
[
"Listing Source"
]
=
"dir.xiph.org"
,
[
"Listing Type"
]
=
"radio"
,
[
"Icecast Bitrate"
]
=
station
.
children_map
[
"bitrate"
][
1
].
children
[
1
],
[
"Icecast Server Type"
]
=
station
.
children_map
[
"server_type"
][
1
].
children
[
1
]
}}
)
...
...
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