-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddon.py
More file actions
20 lines (19 loc) · 678 Bytes
/
addon.py
File metadata and controls
20 lines (19 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from xbmcswift2 import Plugin, xbmcgui
plugin = Plugin()
@plugin.route('/')
def main_menu():
items = [
{
'label': plugin.get_string(30001),
'path': "https://listen-nme.sharp-stream.com/nme1.mp3",
'thumbnail': "https://radio.nme.com/static/media/nme-1.b6b0cc81.png",
'is_playable': True},
{
'label': plugin.get_string(30002),
'path': "https://listen-nme.sharp-stream.com/nme2.mp3",
'thumbnail': "https://radio.nme.com/static/media/nme-2.a3f6a801.png",
'is_playable': True},
]
return items
if __name__ == '__main__':
plugin.run()