Add support for some FIP radio broadcast
This commit is contained in:
parent
49f4bba38a
commit
6223dec4e3
1 changed files with 6 additions and 2 deletions
|
|
@ -64,8 +64,12 @@ def get_all():
|
||||||
def get_current():
|
def get_current():
|
||||||
""" Return a dict containing currently playing song metadatas """
|
""" Return a dict containing currently playing song metadatas """
|
||||||
datas = get_all()
|
datas = get_all()
|
||||||
position = datas['levels'][0]['position']
|
if len(datas['levels'])==2:
|
||||||
item_id = datas['levels'][0]['items'][position]
|
level = 1
|
||||||
|
else:
|
||||||
|
level = 0
|
||||||
|
position = datas['levels'][level]['position']
|
||||||
|
item_id = datas['levels'][level]['items'][position]
|
||||||
item = datas['steps'][item_id]
|
item = datas['steps'][item_id]
|
||||||
expt = ['authors', 'title', 'titreAlbum', 'visual', 'lienYoutube']
|
expt = ['authors', 'title', 'titreAlbum', 'visual', 'lienYoutube']
|
||||||
for k in expt:
|
for k in expt:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue