mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-04 23:36:12 +00:00
Named tuples and type hints? What is this magic?
This commit is contained in:
parent
61fcfe3b5e
commit
164fc50d98
8 changed files with 80 additions and 31 deletions
|
@ -811,7 +811,7 @@ def get_themes(api_client):
|
|||
|
||||
with Database('jellyfin') as jellyfindb:
|
||||
all_views = jellyfin_db.JellyfinDatabase(jellyfindb.cursor).get_views()
|
||||
views = [x[0] for x in all_views if x[2] in ('movies', 'tvshows', 'mixed')]
|
||||
views = [x.view_id for x in all_views if x.media_type in ('movies', 'tvshows', 'mixed')]
|
||||
|
||||
items = {}
|
||||
server = api_client.config.data['auth.server']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue