Skip to content
Snippets Groups Projects
Commit 160defc7 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Improve initial release, add missing streams

parent 1ad10696
No related branches found
No related tags found
1 merge request!3Improve initial release, add missing streams
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.audio.fip" name="Fip, an eclectic music radio" version="0.0.2" provider-name="Benoît Harrault"> <addon id="plugin.audio.fip" name="Fip, an eclectic music radio" version="0.0.3" provider-name="Benoît Harrault">
<requires> <requires>
<import addon="xbmc.python" version="2.20.0"/> <import addon="xbmc.python" version="2.20.0"/>
</requires> </requires>
...@@ -10,9 +10,11 @@ ...@@ -10,9 +10,11 @@
<platform>all</platform> <platform>all</platform>
<license>MIT</license> <license>MIT</license>
<language>en</language> <language>en</language>
<summary lang="en">Fip, an eclectic music radio</summary>
<description lang="en">Listen to fip french radio streams</description>
<source>https://git.harrault.fr/kodi/plugin.audio.fip.git</source> <source>https://git.harrault.fr/kodi/plugin.audio.fip.git</source>
<website>https://git.harrault.fr/kodi/plugin.audio.fip</website> <website>https://git.harrault.fr/kodi/plugin.audio.fip</website>
<summary lang="en">Fip, eclectic music radio</summary>
<description lang="en">Listen to fip french radio streams</description>
<summary lang="fr">Fip, radio musicale éclectique</summary>
<description lang="fr">Écouter les radios thématiques fip, radio musicale éclectique</description>
</extension> </extension>
</addon> </addon>
# https://docs.python.org/2.7/ #!/usr/bin/python
# -*- coding: utf-8 -*-
import os import os
import sys import sys
import urllib import urllib
import urlparse import urlparse
# http://mirrors.kodi.tv/docs/python-docs/
import xbmcaddon import xbmcaddon
import xbmcgui import xbmcgui
import xbmcplugin import xbmcplugin
...@@ -12,26 +14,49 @@ import xbmcplugin ...@@ -12,26 +14,49 @@ import xbmcplugin
def get_streams(): def get_streams():
streams = {} streams = {}
base_stream_url = 'https://direct.fipradio.fr/live/' base_stream_url = 'https://direct.fipradio.fr/live/'
base_cover_url = 'https://www.fip.fr/sites/default/files/asset/images/'
stream_suffix_parameter = '?ID=radiofrance'
streams.update({ streams.update({
1: { 0: {
'title': 'fip', 'title': u'fip',
'url': base_stream_url + 'fip-midfi.mp3?ID=radiofrance', 'url': base_stream_url + 'fip-midfi.mp3' + stream_suffix_parameter,
'album_cover': 'https://www.fip.fr/sites/default/files/fip-quadri-filet.png' 'album_cover': 'https://www.fip.fr/sites/default/files/fip-quadri-filet.png'
}, },
1: {
'title': u'fip autour du rock',
'url': base_stream_url + 'fip-webradio1.mp3' + stream_suffix_parameter,
'album_cover': base_cover_url + '2016/06/fip_autour_du_rock_logo_hd_player.png'
},
2: { 2: {
'title': 'fip / electro', 'title': u'fip autour du jazz',
'url': base_stream_url + 'fip-webradio8.mp3?ID=radiofrance', 'url': base_stream_url + 'fip-webradio2.mp3' + stream_suffix_parameter,
'album_cover': 'https://www.fip.fr/sites/default/files/asset/images/2017/05/webradio-electro-small.png' 'album_cover': base_cover_url + '2016/06/fip_autour_du_jazz_logo_hd_player.png'
}, },
3: { 3: {
'title': 'fip / groove', 'title': u'fip autour du groove',
'url': base_stream_url + 'fip-webradio3.mp3?ID=radiofrance', 'url': base_stream_url + 'fip-webradio3.mp3' + stream_suffix_parameter,
'album_cover': 'https://www.fip.fr/sites/default/files/asset/images/2016/06/webradio-groove-small.png' 'album_cover': base_cover_url + '2016/06/fip_autour_du_groove_logo_hd_player.png'
}, },
4: { 4: {
'title': 'fip / rock', 'title': u'fip autour du monde',
'url': base_stream_url + 'fip-webradio1.mp3?ID=radiofrance', 'url': base_stream_url + 'fip-webradio4.mp3' + stream_suffix_parameter,
'album_cover': 'https://www.fip.fr/sites/default/files/asset/images/2016/06/webradio-rock-small.png' 'album_cover': base_cover_url + '2016/06/fip_autour_du_monde_logo_hd_player.png'
},
5: {
'title': u'tout nouveau tout fip',
'url': base_stream_url + 'fip-webradio5.mp3' + stream_suffix_parameter,
'album_cover': base_cover_url + '2016/06/fip_tout_nouveau_logo_hd_player.png'
},
6: {
'title': u'fip autour du reggae',
'url': base_stream_url + 'fip-webradio6.mp3' + stream_suffix_parameter,
'album_cover': base_cover_url + '2017/01/fip-autour-du-reggae-hd-player.png'
},
8: {
'title': u'fip autour de l\'electro',
'url': base_stream_url + 'fip-webradio8.mp3' + stream_suffix_parameter,
'album_cover': base_cover_url + '2017/05/fip-autour-de-l-electro-logo-hd-player.png'
} }
}) })
return streams return streams
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment