forked from Wintermute0110/plugin.program.AEL.dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
addon.py
40 lines (33 loc) · 1.32 KB
/
addon.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
#
# Advanced Kodi Launcher main script file
#
# Copyright (c) Chrisism <[email protected]>
# Big Portions (c) Wintermute0110 <[email protected]>
# Portions (c) 2010-2015 Angelscry and others
#
# 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; version 2 of the License.
#
# 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.
# Advanced Emulator Launcher main script file.
# --- Python standard library ---
import sys
import logging
# --- Modules/packages in this plugin ---
from akl.utils import kodilogging, kodi
from resources.lib import views
kodilogging.config()
logger = logging.getLogger(__name__)
# -------------------------------------------------------------------------------------------------
# Entrypoint of the Frontend/UI application
# -------------------------------------------------------------------------------------------------
try:
views.run_plugin(sys.argv)
except Exception as ex:
logger.fatal('Exception in plugin', exc_info=ex)
kodi.notify_error(kodi.translate(40956))