jellyfin-kodi/jellyfin_kodi/objects
Chuddah bdd9a8f727 Resort to the expensive database lookup only if the person exists in the
database.

The database is configured such that each person name within the table
has to be unique. Attempting to add a person which already exists causes
an IntegrityError exception to be thrown. This is a less costly
operation than the cursor.execute and cursor.fetch operations.

Increase performance by reverting to the expensive calls of fetching if
adding a person fails.

This pattern could also be applied to other tables within the database.
2020-02-18 00:45:16 +00:00
..
kodi Resort to the expensive database lookup only if the person exists in the 2020-02-18 00:45:16 +00:00
__init__.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
actions.py Fix playlist paths 2020-02-14 20:15:14 -05:00
movies.py Removed unnecessary log messages and changed some to debug (#167) 2020-01-05 18:41:26 -05:00
music.py Removed unnecessary log messages and changed some to debug (#167) 2020-01-05 18:41:26 -05:00
musicvideos.py Removed unnecessary log messages and changed some to debug (#167) 2020-01-05 18:41:26 -05:00
obj.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00
obj_map.json Begin restructing, fixed some issues related to movement 2019-11-07 22:58:44 +01:00
tvshows.py Removed unnecessary log messages and changed some to debug (#167) 2020-01-05 18:41:26 -05:00
utils.py Initial work on Kodi 19 (and Python 3) support 2020-01-04 03:32:30 +01:00