Kodi plugin to to play various online streams (mostly Latvian)

addon.py 298B

12345678910111213141516171819
  1. # -*- coding: utf-8 -*-
  2. from kodiswift import Plugin
  3. plugin = Plugin()
  4. @plugin.route('/')
  5. def index():
  6. item = {
  7. 'label': 'Hello Kodi!',
  8. 'path': 'http://example.com/video.mp4',
  9. 'is_playable': True
  10. }
  11. return [item]
  12. if __name__ == '__main__':
  13. plugin.run()