From 944246b716d678ee0b7a27854934ee13d21030d3 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 26 Mar 2017 12:51:16 +0200 Subject: [PATCH] Don't log xml for playlists --- resources/lib/playlist_func.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 61d28b7c..ee336a73 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -164,17 +164,6 @@ def playlist_item_from_xml(playlist, xml_video_element): 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): """ 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): log.error('Could not get new playlist Version for playlist %s' % playlist) - _log_xml(xml) return False return True @@ -208,7 +196,6 @@ def get_playlist_details_from_xml(playlist, xml): % playlist) import traceback log.error(traceback.format_exc()) - _log_xml(xml) raise KeyError 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): log.error('Could not add item %s to playlist %s' % (kodi_item, playlist)) - _log_xml(xml) return # Get the guid for this item for plex_item in xml: