Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plugin.audio.fip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kodi
plugin.audio.fip
Commits
160defc7
Commit
160defc7
authored
6 years ago
by
Benoît Harrault
Browse files
Options
Downloads
Patches
Plain Diff
Improve initial release, add missing streams
parent
1ad10696
No related branches found
No related tags found
1 merge request
!3
Improve initial release, add missing streams
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addon.xml
+5
-3
5 additions, 3 deletions
addon.xml
default.py
+39
-14
39 additions, 14 deletions
default.py
with
44 additions
and
17 deletions
addon.xml
+
5
−
3
View file @
160defc7
<?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>
<import
addon=
"xbmc.python"
version=
"2.20.0"
/>
</requires>
...
...
@@ -10,9 +10,11 @@
<platform>
all
</platform>
<license>
MIT
</license>
<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>
<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>
</addon>
This diff is collapsed.
Click to expand it.
default.py
+
39
−
14
View file @
160defc7
# https://docs.python.org/2.7/
#!/usr/bin/python
# -*- coding: utf-8 -*-
import
os
import
sys
import
urllib
import
urlparse
# http://mirrors.kodi.tv/docs/python-docs/
import
xbmcaddon
import
xbmcgui
import
xbmcplugin
...
...
@@ -12,26 +14,49 @@ import xbmcplugin
def
get_streams
():
streams
=
{}
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
({
1
:
{
'
title
'
:
'
fip
'
,
'
url
'
:
base_stream_url
+
'
fip-midfi.mp3
?ID=radiofrance
'
,
0
:
{
'
title
'
:
u
'
fip
'
,
'
url
'
:
base_stream_url
+
'
fip-midfi.mp3
'
+
stream_suffix_parameter
,
'
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
:
{
'
title
'
:
'
fip
/ electro
'
,
'
url
'
:
base_stream_url
+
'
fip-webradio
8
.mp3
?ID=radiofrance
'
,
'
album_cover
'
:
'
https://www.fip.fr/sites/default/files/asset/images/
201
7
/0
5/webradio-electro-small
.png
'
'
title
'
:
u
'
fip
autour du jazz
'
,
'
url
'
:
base_stream_url
+
'
fip-webradio
2
.mp3
'
+
stream_suffix_parameter
,
'
album_cover
'
:
base_cover_url
+
'
201
6
/0
6/fip_autour_du_jazz_logo_hd_player
.png
'
},
3
:
{
'
title
'
:
'
fip
/
groove
'
,
'
url
'
:
base_stream_url
+
'
fip-webradio3.mp3
?ID=radiofrance
'
,
'
album_cover
'
:
'
https://www.fip.fr/sites/default/files/asset/images/2016/06/webradio-groove-small
.png
'
'
title
'
:
u
'
fip
autour du
groove
'
,
'
url
'
:
base_stream_url
+
'
fip-webradio3.mp3
'
+
stream_suffix_parameter
,
'
album_cover
'
:
base_cover_url
+
'
2016/06/fip_autour_du_groove_logo_hd_player
.png
'
},
4
:
{
'
title
'
:
'
fip / rock
'
,
'
url
'
:
base_stream_url
+
'
fip-webradio1.mp3?ID=radiofrance
'
,
'
album_cover
'
:
'
https://www.fip.fr/sites/default/files/asset/images/2016/06/webradio-rock-small.png
'
'
title
'
:
u
'
fip autour du monde
'
,
'
url
'
:
base_stream_url
+
'
fip-webradio4.mp3
'
+
stream_suffix_parameter
,
'
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment