[vlc-devel] [PATCH 1/4] lua: meta: add descriptor/scope
Francois Cartegnie
fcvlcdev at free.fr
Tue May 13 17:12:35 CEST 2014
---
share/lua/meta/art/00_musicbrainz.lua | 4 ++++
share/lua/meta/art/01_googleimage.lua | 4 ++++
share/lua/meta/art/02_frenchtv.lua | 4 ++++
share/lua/meta/art/03_lastfm.lua | 4 ++++
share/lua/meta/fetcher/tvrage.lua | 4 ++++
share/lua/meta/reader/filename.lua | 4 ++++
6 files changed, 24 insertions(+)
diff --git a/share/lua/meta/art/00_musicbrainz.lua b/share/lua/meta/art/00_musicbrainz.lua
index a94cca9..8b80a44 100644
--- a/share/lua/meta/art/00_musicbrainz.lua
+++ b/share/lua/meta/art/00_musicbrainz.lua
@@ -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 )
diff --git a/share/lua/meta/art/01_googleimage.lua b/share/lua/meta/art/01_googleimage.lua
index 889b094..3608f50 100644
--- a/share/lua/meta/art/01_googleimage.lua
+++ b/share/lua/meta/art/01_googleimage.lua
@@ -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
diff --git a/share/lua/meta/art/02_frenchtv.lua b/share/lua/meta/art/02_frenchtv.lua
index 957f0d6..5571cf5 100644
--- a/share/lua/meta/art/02_frenchtv.lua
+++ b/share/lua/meta/art/02_frenchtv.lua
@@ -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 = {
diff --git a/share/lua/meta/art/03_lastfm.lua b/share/lua/meta/art/03_lastfm.lua
index a46b92c..418146c 100644
--- a/share/lua/meta/art/03_lastfm.lua
+++ b/share/lua/meta/art/03_lastfm.lua
@@ -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
diff --git a/share/lua/meta/fetcher/tvrage.lua b/share/lua/meta/fetcher/tvrage.lua
index 22a391d..9f7e0a3 100644
--- a/share/lua/meta/fetcher/tvrage.lua
+++ b/share/lua/meta/fetcher/tvrage.lua
@@ -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.
diff --git a/share/lua/meta/reader/filename.lua b/share/lua/meta/reader/filename.lua
index a1b4173..24c3333f 100644
--- a/share/lua/meta/reader/filename.lua
+++ b/share/lua/meta/reader/filename.lua
@@ -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
--
1.9.0
More information about the vlc-devel
mailing list