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
8301e1ea
Commit
8301e1ea
authored
May 13, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: meta: add descriptor/scope
parent
3391ffb1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
0 deletions
+24
-0
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
+4
-0
share/lua/meta/art/02_frenchtv.lua
share/lua/meta/art/02_frenchtv.lua
+4
-0
share/lua/meta/art/03_lastfm.lua
share/lua/meta/art/03_lastfm.lua
+4
-0
share/lua/meta/fetcher/tvrage.lua
share/lua/meta/fetcher/tvrage.lua
+4
-0
share/lua/meta/reader/filename.lua
share/lua/meta/reader/filename.lua
+4
-0
No files found.
share/lua/meta/art/00_musicbrainz.lua
View file @
8301e1ea
...
...
@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function
descriptor
()
return
{
scope
=
"network"
}
end
function
try_query
(
mbid
)
local
relquery
=
"http://mb.videolan.org/ws/2/release/"
..
mbid
local
s
=
vlc
.
stream
(
relquery
)
...
...
share/lua/meta/art/01_googleimage.lua
View file @
8301e1ea
...
...
@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function
descriptor
()
return
{
scope
=
"network"
}
end
-- Return the artwork
function
fetch_art
()
if
vlc
.
item
==
nil
then
return
nil
end
...
...
share/lua/meta/art/02_frenchtv.lua
View file @
8301e1ea
...
...
@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function
descriptor
()
return
{
scope
=
"network"
}
end
-- Return the artwork
function
fetch_art
()
local
urlsForChannel
=
{
...
...
share/lua/meta/art/03_lastfm.lua
View file @
8301e1ea
...
...
@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function
descriptor
()
return
{
scope
=
"network"
}
end
-- Return the artwork
function
fetch_art
()
if
vlc
.
item
==
nil
then
return
nil
end
...
...
share/lua/meta/fetcher/tvrage.lua
View file @
8301e1ea
...
...
@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function
descriptor
()
return
{
scope
=
"network"
}
end
-- Replace non alphanumeric char by +
function
get_query
(
title
)
-- If we have a .EXT remove the extension.
...
...
share/lua/meta/reader/filename.lua
View file @
8301e1ea
...
...
@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
function
descriptor
()
return
{
scope
=
"local"
}
end
function
trim
(
s
)
return
(
string.gsub
(
s
,
"^%s*(.-)%s*$"
,
"%1"
))
end
...
...
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