#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
    This file is part of XBMC Mega Pack Addon.

    Copyright (C) 2014 Wolverine ([email protected])

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program.  If not, see http://www.gnu.org/licenses/gpl-3.0.html
"""

from resources.lib.plugin import Plugin
from resources.lib.menu import Menu

plugin = Plugin()
menu = Menu(plugin)
plugin.run(menu)
示例#2
0
'''
plugin.video.nowtv

A simple Kodi add-on which wraps 'NOW TV Player' to integrate with Kodi.

This script functions as the entrypoint into the plugin, however as we want to
keep this as simple as posible. As a result, this script simply sets up and
calls an instance of our plugin.
'''

from resources.lib.plugin import Plugin

# Kick it.
if __name__ == '__main__':
    instance = Plugin(sys.argv)  # noqa: F821
    instance.run()