mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Review suggestions
This commit is contained in:
parent
c44a079572
commit
813ec68e38
2 changed files with 1 additions and 7 deletions
|
@ -181,9 +181,7 @@ def get_item_count(parent_id, item_type=None, params=None):
|
||||||
|
|
||||||
result = _get(url, query_params)
|
result = _get(url, query_params)
|
||||||
|
|
||||||
total = result.get('TotalRecordCount')
|
return result.get('TotalRecordCount', 1)
|
||||||
|
|
||||||
return total
|
|
||||||
|
|
||||||
def get_items(parent_id, item_type=None, basic=False, params=None):
|
def get_items(parent_id, item_type=None, basic=False, params=None):
|
||||||
|
|
||||||
|
|
|
@ -435,8 +435,6 @@ class FullSync(object):
|
||||||
dialog.update(percent, message='Artist: {}'.format(item.get('Name')))
|
dialog.update(percent, message='Artist: {}'.format(item.get('Name')))
|
||||||
obj.artist(item)
|
obj.artist(item)
|
||||||
count += 1
|
count += 1
|
||||||
# Delete item once it's been processed for memory management
|
|
||||||
del item
|
|
||||||
|
|
||||||
albums = server.get_items(library_id, item_type='MusicAlbum', params={'SortBy': 'AlbumArtist'})
|
albums = server.get_items(library_id, item_type='MusicAlbum', params={'SortBy': 'AlbumArtist'})
|
||||||
for batch in albums:
|
for batch in albums:
|
||||||
|
@ -446,7 +444,6 @@ class FullSync(object):
|
||||||
dialog.update(percent, message='Album: {} - {}'.format(item.get('AlbumArtist', ''), item.get('Name')))
|
dialog.update(percent, message='Album: {} - {}'.format(item.get('AlbumArtist', ''), item.get('Name')))
|
||||||
obj.album(item)
|
obj.album(item)
|
||||||
count += 1
|
count += 1
|
||||||
del item
|
|
||||||
|
|
||||||
songs = server.get_items(library_id, item_type='Audio', params={'SortBy': 'AlbumArtist'})
|
songs = server.get_items(library_id, item_type='Audio', params={'SortBy': 'AlbumArtist'})
|
||||||
for batch in songs:
|
for batch in songs:
|
||||||
|
@ -456,7 +453,6 @@ class FullSync(object):
|
||||||
dialog.update(percent, message='Track: {} - {}'.format(item.get('AlbumArtist', ''), item.get('Name')))
|
dialog.update(percent, message='Track: {} - {}'.format(item.get('AlbumArtist', ''), item.get('Name')))
|
||||||
obj.song(item)
|
obj.song(item)
|
||||||
count += 1
|
count += 1
|
||||||
del item
|
|
||||||
|
|
||||||
if self.update_library:
|
if self.update_library:
|
||||||
self.music_compare(library, obj, jellyfindb)
|
self.music_compare(library, obj, jellyfindb)
|
||||||
|
|
Loading…
Reference in a new issue