diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 86f21ba5..344f4b16 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -869,11 +869,5 @@ def delete_playlist_from_pms(playlist): """ Deletes the playlist from the PMS """ - xml = DU().downloadUrl("{server}/%ss/%s" % - (playlist.kind.lower(), playlist.id), - action_type="DELETE") - try: - xml.attrib - except (TypeError, AttributeError): - LOG.error('Could not delete playlist from server: %s', playlist) - raise PlaylistError('Could not delete playlist %s' % playlist) + DU().downloadUrl("{server}/%ss/%s" % (playlist.kind.lower(), playlist.id), + action_type="DELETE") diff --git a/resources/lib/playlists.py b/resources/lib/playlists.py index b19ffc69..10814bff 100644 --- a/resources/lib/playlists.py +++ b/resources/lib/playlists.py @@ -79,12 +79,8 @@ def delete_plex_playlist(playlist): Returns None or raises PL.PlaylistError """ LOG.info('Deleting playlist %s from the PMS', playlist.plex_name) - try: - PL.delete_playlist_from_pms(playlist) - except PL.PlaylistError: - pass - else: - update_plex_table(playlist, delete=True) + PL.delete_playlist_from_pms(playlist) + update_plex_table(playlist, delete=True) def create_kodi_playlist(plex_id=None, updated_at=None):