Commit Graph

29 Commits

Author SHA1 Message Date
mani
a71efe14c1 Properly fix intermittent installation failures
Some checks failed
Build JellyCon / build (py2) (push) Has been cancelled
Build JellyCon / build (py3) (push) Has been cancelled
CodeQL Analysis / analyze (python, 3.9) (push) Has been cancelled
Release Drafter / Update release draft (push) Has been cancelled
Test JellyCon / test (3.9) (push) Has been cancelled
Instead of setting addon variables to None (which causes issues),
fix the root cause by removing unnecessary module-level initialization:

- Remove module-level user_details loading in functions.py
- Load user_details locally in functions where actually needed
- Wrap remaining module-level addon access in try/except in:
  - service.py (log_timing_data)
  - default.py (log_timing_data)
  - kodi_utils.py (addon variable)
  - functions.py (__addon__ and related variables)

This prevents crashes during installation/update while avoiding
None-related issues during normal operation.
2026-01-06 01:12:59 +01:00
Odd Stråbø
6126d617f5 Copy translate_path from Jf4Kodi, fix LazyLogger 2022-03-09 22:51:38 +01:00
Matt
2d20dc4282 Remove unused and commented out code 2021-12-21 21:22:16 -05:00
Matt
a0efd1087f Copy log handler from JF for Kodi, modify for strings 2020-07-25 01:01:30 -04:00
faush01
e8a9be1ae0 fix a bung of LINT warnings 2020-06-21 11:27:09 +10:00
faush01
132868fc0d add the ability to log timing data 2019-10-14 11:55:18 +11:00
sfaulds
2fce0e85c1 changes to comply with Kodi repo rules 2017-07-08 10:34:30 +10:00
sfaulds
0d8c20187d fix log lines 2017-07-05 07:54:14 +10:00
sfaulds
f8d79e7ac1 add GA client for error and metric gathering 2017-07-04 20:05:04 +10:00
anxdpanic
7e7e9184cd I18n and house-keeping (#6)
* convert strings.xml to strings.po for improved translation support
* set blank heading for error
* i18n: map ints to strings for readability/maintenance
* simple_logging - add prefix, add log.warning
* remove unneccesary Addon() instances
* uniform whitespace
* remove log warning, i18n log failure as error
* settings - create as needed
2017-05-29 20:19:33 +10:00
sfaulds
d0c3313d5d more logging changes 2017-03-17 15:41:46 +11:00
shaun
f9e5f93bc3 add simple logging 2017-03-17 07:10:35 +11:00
sfaulds
a5d63714ad use python logging 2017-03-09 19:41:53 +11:00
shaun
4db9175a13 cut back to basics 2017-03-04 13:08:08 +11:00
faush01
30ea95e83e use int percentage value for cache validation string 2014-12-28 19:50:22 +11:00
faush01
2035b1e078 use a new cache manager 2014-10-30 14:29:19 +11:00
faush01
65bde749da move all code to an include
This may help speed up things as the includes are precompiled to byte
code only once.
2014-10-28 16:16:41 +11:00
faush01
86d09512de dont include watched items in recent list 2014-10-23 11:05:34 +11:00
faush01
2cf2126492 just use ID for watched favourite and delete actions 2014-10-23 10:36:09 +11:00
faush01
aa2266bd97 remove requests, use downloadUrl instead 2014-10-09 20:03:31 +11:00
faush01
5d1479972d user auth headers from downloadutils 2014-10-07 20:46:15 +11:00
faush01
a30745078c consolidate all the auth stuff in one location
store and re-use user id and auth token
2014-10-04 21:36:26 +10:00
faush01
7c987ea320 only send playback stopped actions with true possition ticks 2014-10-04 12:34:53 +10:00
faush01
0b8f51dd52 use websocket for all updates in service
remove streaming optiosn
2014-10-03 19:46:33 +10:00
faush01
7623fb1c5b move profile code arround whole script 2014-10-02 16:02:50 +10:00
faush01
a608efce8b experimental window 2014-10-02 14:50:42 +10:00
faush01
87d8f2c1fa remove a bunch of stuff I dont like 2014-09-29 22:56:06 +10:00
faush01
ba286114c4 remove references to xbmb3c 2014-09-28 20:24:56 +10:00
faush01
d348f04159 new addon based on the XBMC addon 2014-09-28 10:30:07 +10:00