mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-25 09:16:13 +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
|
@ -471,10 +471,10 @@ class Library(threading.Thread):
|
|||
available = [x for x in sync['SortedViews'] if x not in whitelist]
|
||||
|
||||
for library in available:
|
||||
name, media = db.get_view(library)
|
||||
view = db.get_view(library)
|
||||
|
||||
if media in ('movies', 'tvshows', 'musicvideos', 'mixed', 'music'):
|
||||
libraries.append({'Id': library, 'Name': name})
|
||||
if view.media_type in ('movies', 'tvshows', 'musicvideos', 'mixed', 'music'):
|
||||
libraries.append({'Id': view.view_id, 'Name': view.view_name})
|
||||
|
||||
choices = [x['Name'] for x in libraries]
|
||||
choices.insert(0, translate(33121))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue