-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddon.py
More file actions
23 lines (16 loc) · 654 Bytes
/
addon.py
File metadata and controls
23 lines (16 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, SylvainCecchetto
# GNU General Public License v2.0+ (see LICENSE.txt or https://www.gnu.org/licenses/gpl-2.0.txt)
# This file is part of Catch-up TV & More
import importlib
from codequick import run
def main():
"""Entry point function executed by Kodi for each menu of the addon"""
# Let CodeQuick check for functions to register and call
# the correct function according to the Kodi URL
exception = run()
if isinstance(exception, Exception):
main = importlib.import_module('resources.lib.main')
main.error_handler(exception)
if __name__ == "__main__":
main()