mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-13 03:36:12 +00:00
Cleanup code around removing libraries
This commit is contained in:
parent
97de6f9d11
commit
aeca1a0049
3 changed files with 13 additions and 35 deletions
|
@ -25,18 +25,6 @@ from jellyfin import Jellyfin
|
|||
LOG = logging.getLogger("JELLYFIN." + __name__)
|
||||
LIMIT = int(settings('limitIndex') or 15)
|
||||
DTHREADS = int(settings('limitThreads') or 3)
|
||||
MEDIA = {
|
||||
'Movie': Movies,
|
||||
'BoxSet': Movies,
|
||||
'MusicVideo': MusicVideos,
|
||||
'Series': TVShows,
|
||||
'Season': TVShows,
|
||||
'Episode': TVShows,
|
||||
'MusicAlbum': Music,
|
||||
'MusicArtist': Music,
|
||||
'AlbumArtist': Music,
|
||||
'Audio': Music
|
||||
}
|
||||
|
||||
##################################################################################################
|
||||
|
||||
|
@ -53,9 +41,6 @@ class Library(threading.Thread):
|
|||
|
||||
def __init__(self, monitor):
|
||||
|
||||
self.media = {'Movies': Movies, 'TVShows': TVShows, 'MusicVideos': MusicVideos, 'Music': Music}
|
||||
self.MEDIA = MEDIA
|
||||
|
||||
self.direct_path = settings('useDirectPaths') == "1"
|
||||
self.progress_display = int(settings('syncProgress') or 50)
|
||||
self.monitor = monitor
|
||||
|
@ -633,7 +618,7 @@ class UpdateWorker(threading.Thread):
|
|||
elif item['Type'] == 'MusicArtist':
|
||||
obj = Music(*default_args).artist
|
||||
elif item['Type'] == 'AlbumArtist':
|
||||
obj = Music(*default_args).albumartist
|
||||
obj = Music(s*default_args).albumartist
|
||||
elif item['Type'] == 'Audio':
|
||||
obj = Music(*default_args).song
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue