[grilo-plugins] radiofrance: Fix unset URLs after recent website changes



commit 4617b91983792f3282757b93134f0b7e8f287d52
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 24 16:52:29 2016 +0200

    radiofrance: Fix unset URLs after recent website changes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773310

 src/lua-factory/sources/grl-radiofrance.lua |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-radiofrance.lua b/src/lua-factory/sources/grl-radiofrance.lua
index 92b022b..b1d26c2 100644
--- a/src/lua-factory/sources/grl-radiofrance.lua
+++ b/src/lua-factory/sources/grl-radiofrance.lua
@@ -105,9 +105,12 @@ function create_media(id, result)
     media.id = 'fip'
   end
 
-  media.url = result:match("liveUrl: '(.-)',")
+  media.url = result:match("urlLive:'(http.-%mp3)")
   if not media.url then
-    media.url = result:match('"player" href="(http.-%.mp3)')
+    media.url = result:match('player" href="(http.-%.mp3)')
+  end
+  if not media.url then
+    media.url = result:match('data%-url%-live="(http.-%.mp3)')
   end
 
   media.title = get_title(id)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]