[grilo-plugins] Revert "lua-factory: port grl-radiofrance.lua to the new lua system"
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] Revert "lua-factory: port grl-radiofrance.lua to the new lua system"
- Date: Mon, 21 Mar 2016 22:57:31 +0000 (UTC)
commit 2e0d1c87812865434e5c549b2c1824b5b8bf500d
Author: Victor Toso <me victortoso com>
Date: Tue Mar 8 23:28:10 2016 +0100
Revert "lua-factory: port grl-radiofrance.lua to the new lua system"
This reverts commit 93547ac94797cdea6670b0d458e838bcdb578f77.
But keeps grl.fetch callback as function instead of string
https://bugzilla.gnome.org/show_bug.cgi?id=763046
src/lua-factory/sources/grl-radiofrance.lua | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-radiofrance.lua b/src/lua-factory/sources/grl-radiofrance.lua
index ddbea83..92b022b 100644
--- a/src/lua-factory/sources/grl-radiofrance.lua
+++ b/src/lua-factory/sources/grl-radiofrance.lua
@@ -40,16 +40,16 @@ source = {
-- Source utils --
------------------
-function grl_source_browse(media, options, callback)
- if options.skip > 0 then
- callback()
+function grl_source_browse(media_id)
+ if grl.get_options("skip") > 0 then
+ grl.callback()
else
local urls = {}
for index, item in pairs(stations) do
local url = 'http://www.' .. item .. '.fr/player'
table.insert(urls, url)
end
- grl.fetch(urls, radiofrance_now_fetch_cb, callback)
+ grl.fetch(urls, radiofrance_now_fetch_cb)
end
end
@@ -58,13 +58,13 @@ end
------------------------
-- return all the media found
-function radiofrance_now_fetch_cb(results, callback)
+function radiofrance_now_fetch_cb(results)
for index, result in pairs(results) do
local media = create_media(stations[index], result)
- callback(media, -1)
+ grl.callback(media, -1)
end
- callback()
+ grl.callback()
end
-------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]