[vlc-commits] lua: meta: add descriptor/scope

Francois Cartegnie git at videolan.org
Mon May 19 12:07:29 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May 13 12:11:54 2014 +0200| [8301e1eacb856c6a13268ef8728fcaf2b3196028] | committer: Francois Cartegnie

lua: meta: add descriptor/scope

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8301e1eacb856c6a13268ef8728fcaf2b3196028
---

 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



More information about the vlc-commits mailing list