[grilo-plugins] radiofrance: Fix "France Info" URL



commit 04621b505622a0690330e393b69ffd5626c46f54
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Aug 15 16:16:37 2014 +0200

    radiofrance: Fix "France Info" URL
    
    Another special case...

 src/lua-factory/sources/grl-radiofrance.lua |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-radiofrance.lua b/src/lua-factory/sources/grl-radiofrance.lua
index 9325f32..749f890 100644
--- a/src/lua-factory/sources/grl-radiofrance.lua
+++ b/src/lua-factory/sources/grl-radiofrance.lua
@@ -118,7 +118,11 @@ function create_media(id, station)
     media.id = 'fip'
   end
 
-  media.url = 'http://mp3lg.tdf-cdn.com/' .. media.id .. '/all/' .. media.id .. 'hautdebit.mp3'
+  if id == 'franceinfo' then
+    media.url = 'http://mp3lg.tdf-cdn.com/' .. media.id .. '/all/' .. media.id .. '-32k.mp3'
+  else
+    media.url = 'http://mp3lg.tdf-cdn.com/' .. media.id .. '/all/' .. media.id .. 'hautdebit.mp3'
+  end
   media.title = get_title(id)
   media.thumbnail = get_thumbnail(id)
 


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