Simplify code
This commit is contained in:
parent
2200ae7535
commit
0933dea407
4 changed files with 2 additions and 4 deletions
|
@ -163,7 +163,7 @@ class Artwork():
|
||||||
length)
|
length)
|
||||||
# Caching %s Plex images
|
# Caching %s Plex images
|
||||||
self.queue.put(ArtworkSyncMessage(utils.lang(30006) % length))
|
self.queue.put(ArtworkSyncMessage(utils.lang(30006) % length))
|
||||||
for i, url in enumerate(artworks_to_cache):
|
for url in artworks_to_cache:
|
||||||
self.queue.put(url[0])
|
self.queue.put(url[0])
|
||||||
# Plex image caching done
|
# Plex image caching done
|
||||||
self.queue.put(ArtworkSyncMessage(utils.lang(30007)))
|
self.queue.put(ArtworkSyncMessage(utils.lang(30007)))
|
||||||
|
|
|
@ -1406,7 +1406,7 @@ class LibrarySync(Thread):
|
||||||
# Checking FanartTV for %s items
|
# Checking FanartTV for %s items
|
||||||
self.fanartqueue.put(artwork.ArtworkSyncMessage(
|
self.fanartqueue.put(artwork.ArtworkSyncMessage(
|
||||||
utils.lang(30018) % len(items)))
|
utils.lang(30018) % len(items)))
|
||||||
for i, item in enumerate(items):
|
for item in items:
|
||||||
self.fanartqueue.put({
|
self.fanartqueue.put({
|
||||||
'plex_id': item['plex_id'],
|
'plex_id': item['plex_id'],
|
||||||
'plex_type': item['plex_type'],
|
'plex_type': item['plex_type'],
|
||||||
|
|
|
@ -14,7 +14,6 @@ from . import plexdb_functions as plexdb
|
||||||
from . import kodidb_functions as kodidb
|
from . import kodidb_functions as kodidb
|
||||||
from .downloadutils import DownloadUtils as DU
|
from .downloadutils import DownloadUtils as DU
|
||||||
from . import utils
|
from . import utils
|
||||||
from . import path_ops
|
|
||||||
from . import json_rpc as js
|
from . import json_rpc as js
|
||||||
from . import variables as v
|
from . import variables as v
|
||||||
from . import state
|
from . import state
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
from __future__ import absolute_import, division, unicode_literals
|
from __future__ import absolute_import, division, unicode_literals
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
import xml.etree.ElementTree as etree
|
import xml.etree.ElementTree as etree
|
||||||
import xbmc
|
|
||||||
|
|
||||||
from . import utils
|
from . import utils
|
||||||
from . import path_ops
|
from . import path_ops
|
||||||
|
|
Loading…
Reference in a new issue