Don't log xml for playlists
This commit is contained in:
parent
9975a2a587
commit
944246b716
1 changed files with 0 additions and 14 deletions
|
@ -164,17 +164,6 @@ def playlist_item_from_xml(playlist, xml_video_element):
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|
||||||
def _log_xml(xml):
|
|
||||||
try:
|
|
||||||
xml.attrib
|
|
||||||
except AttributeError:
|
|
||||||
log.error('Did not receive an XML. Answer was: %s' % xml)
|
|
||||||
else:
|
|
||||||
from xml.etree.ElementTree import dump
|
|
||||||
log.error('XML received from the PMS:')
|
|
||||||
dump(xml)
|
|
||||||
|
|
||||||
|
|
||||||
def _get_playListVersion_from_xml(playlist, xml):
|
def _get_playListVersion_from_xml(playlist, xml):
|
||||||
"""
|
"""
|
||||||
Takes a PMS xml as input to overwrite the playlist version (e.g. Plex
|
Takes a PMS xml as input to overwrite the playlist version (e.g. Plex
|
||||||
|
@ -185,7 +174,6 @@ def _get_playListVersion_from_xml(playlist, xml):
|
||||||
except (TypeError, AttributeError, KeyError):
|
except (TypeError, AttributeError, KeyError):
|
||||||
log.error('Could not get new playlist Version for playlist %s'
|
log.error('Could not get new playlist Version for playlist %s'
|
||||||
% playlist)
|
% playlist)
|
||||||
_log_xml(xml)
|
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -208,7 +196,6 @@ def get_playlist_details_from_xml(playlist, xml):
|
||||||
% playlist)
|
% playlist)
|
||||||
import traceback
|
import traceback
|
||||||
log.error(traceback.format_exc())
|
log.error(traceback.format_exc())
|
||||||
_log_xml(xml)
|
|
||||||
raise KeyError
|
raise KeyError
|
||||||
log.debug('Updated playlist from xml: %s' % playlist)
|
log.debug('Updated playlist from xml: %s' % playlist)
|
||||||
|
|
||||||
|
@ -341,7 +328,6 @@ def add_item_to_PMS_playlist(playlist, pos, plex_id=None, kodi_item=None):
|
||||||
except (TypeError, AttributeError, KeyError):
|
except (TypeError, AttributeError, KeyError):
|
||||||
log.error('Could not add item %s to playlist %s'
|
log.error('Could not add item %s to playlist %s'
|
||||||
% (kodi_item, playlist))
|
% (kodi_item, playlist))
|
||||||
_log_xml(xml)
|
|
||||||
return
|
return
|
||||||
# Get the guid for this item
|
# Get the guid for this item
|
||||||
for plex_item in xml:
|
for plex_item in xml:
|
||||||
|
|
Loading…
Reference in a new issue