#!/usr/bin/python
# -*- coding: utf-8 -*-
# API https://live.slam.nl/slam-live/
from xbmcswift2 import Plugin, xbmc

plugin = Plugin()

@plugin.route('/')
def show_slam_list():
    items = [

  {'label': '[COLOR lime][B]Slam TV[/B][/COLOR]',
   'thumbnail': 'special://home/addons/Slam.NL-TRC4/Player/Slam.png',
   #'path': 'http://hls2.slamfm.nl/content/slamtv/slamtv_1.m3u8',
   'path': 'https://hls.slam.nl/streaming/hls/SLAM!/playlist.m3u8',
   'is_playable': True,
  },
  
  {'label': '[COLOR lime][B]Slam Webcam[/B][/COLOR]',
   'thumbnail': 'special://home/addons/Slam.NL-TRC4/Player/Webcam.png',
   'path': 'http://hls2.slamfm.nl/content/slamwebcam/slamwebcam_1.m3u8',
   'is_playable': True,
  },

  {'label': '[COLOR lime][B]Slam FM Radio[/B][/COLOR]',
   'thumbnail': 'special://home/addons/Slam.NL-TRC4/Player/SlamFM.png',
   'path': 'http://hls2.slamfm.nl/content/slamfm/index.m3u8',
   'is_playable': True,
  },

  {'label': '[COLOR lime][B]Slam Non Stop Radio[/B][/COLOR]',
   'thumbnail': 'special://home/addons/Slam.NL-TRC4/Player/NonStop.png',
   'path': 'http://hls2.slamfm.nl/content/web15/index.m3u8',
   'is_playable': True,
  },
  
  {'label': '[COLOR lime][B]Slam Hardstyle Radio[/B][/COLOR]',
   'thumbnail': 'special://home/addons/Slam.NL-TRC4/Player/Hardstyle.png',
   'path': 'http://hls2.slamfm.nl/content//web17/index.m3u8',
   'is_playable': True,
  },
  
  {'label': '[COLOR lime][B]Slam The Boom Room Radio[/B][/COLOR]',
   'thumbnail': 'special://home/addons/Slam.NL-TRC4/Player/TheBoomRoom.png',
   'path': 'http://hls2.slamfm.nl/content//web13/index.m3u8',
   'is_playable': True,
  },
  
  {'label': '[COLOR lime][B]Slam Juize Radio[/B][/COLOR]',
   'thumbnail': 'special://home/addons/Slam.NL-TRC4/Player/Juize.png',
   'path': 'http://hls2.slamfm.nl/content/juize/index.m3u8',
   'is_playable': True,
  },
]
    return plugin.finish(items)

def log(text):
    plugin.log.info(text)

if __name__ == '__main__':
    plugin.run()