Increase logging

This commit is contained in:
croneter 2018-10-07 17:52:38 +02:00
parent 27e92afe02
commit c9341169c3

View file

@ -145,6 +145,7 @@ class Movies(Items):
# If the item doesn't exist, we'll add it to the database # If the item doesn't exist, we'll add it to the database
update_item = True update_item = True
itemid = api.plex_id() itemid = api.plex_id()
LOG.debug('Adding movie with plex_id %s', itemid)
# Cannot parse XML, abort # Cannot parse XML, abort
if not itemid: if not itemid:
LOG.error("Cannot parse XML data for movie") LOG.error("Cannot parse XML data for movie")
@ -485,6 +486,7 @@ class TVShows(Items):
api = API(item) api = API(item)
update_item = True update_item = True
itemid = api.plex_id() itemid = api.plex_id()
LOG.debug('Adding show with plex_id %s', itemid)
if not itemid: if not itemid:
LOG.error("Cannot parse XML data for TV show") LOG.error("Cannot parse XML data for TV show")
return return
@ -690,6 +692,7 @@ class TVShows(Items):
""" """
api = API(item) api = API(item)
plex_id = api.plex_id() plex_id = api.plex_id()
LOG.debug('Adding season with plex_id %s', plex_id)
if not plex_id: if not plex_id:
LOG.error('Error getting plex_id for season, skipping') LOG.error('Error getting plex_id for season, skipping')
return return
@ -740,6 +743,7 @@ class TVShows(Items):
api = API(item) api = API(item)
update_item = True update_item = True
itemid = api.plex_id() itemid = api.plex_id()
LOG.debug('Adding episode with plex_id %s', itemid)
if not itemid: if not itemid:
LOG.error('Error getting itemid for episode, skipping') LOG.error('Error getting itemid for episode, skipping')
return return
@ -1131,6 +1135,7 @@ class Music(Items):
update_item = True update_item = True
itemid = api.plex_id() itemid = api.plex_id()
LOG.debug('Adding artist with plex_id %s', itemid)
plex_dbitem = plex_db.getItem_byId(itemid) plex_dbitem = plex_db.getItem_byId(itemid)
try: try:
artistid = plex_dbitem[0] artistid = plex_dbitem[0]
@ -1222,6 +1227,7 @@ class Music(Items):
update_item = True update_item = True
plex_id = api.plex_id() plex_id = api.plex_id()
LOG.debug('Adding album with plex_id %s', plex_id)
if not plex_id: if not plex_id:
LOG.error('Error processing Album, skipping') LOG.error('Error processing Album, skipping')
return return
@ -1382,9 +1388,9 @@ class Music(Items):
plex_db = self.plex_db plex_db = self.plex_db
artwork = self.artwork artwork = self.artwork
api = API(item) api = API(item)
update_item = True update_item = True
itemid = api.plex_id() itemid = api.plex_id()
LOG.debug('Adding song with plex_id %s', itemid)
if not itemid: if not itemid:
LOG.error('Error processing Song; skipping') LOG.error('Error processing Song; skipping')
return return