-
Notifications
You must be signed in to change notification settings - Fork 318
Expand file tree
/
Copy pathdefault.py
More file actions
31 lines (28 loc) · 831 Bytes
/
default.py
File metadata and controls
31 lines (28 loc) · 831 Bytes
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
"""
EasyMovie entry point.
Dispatches to the main UI flow or handles special
command-line arguments (selector, clone, set_icon).
Logging:
Logger: 'default'
Key events:
- launch.crash (ERROR): Unhandled error caught at top level
See LOGGING.md for full guidelines.
"""
from resources.lib.ui.main import main, _handle_entry_args
try:
if not _handle_entry_args("script.easymovie"):
main()
except SystemExit:
pass
except Exception:
try:
from resources.lib.utils import get_logger
log = get_logger('default')
log.exception("Unhandled error in EasyMovie", event="launch.crash")
except Exception:
import traceback
import xbmc
xbmc.log(
f"[EasyMovie] Unhandled error: {traceback.format_exc()}",
xbmc.LOGERROR,
)