From 37fdc1fe806d018ce7d641a06c9e5af925b0189e Mon Sep 17 00:00:00 2001 From: yanggao1119 Date: Mon, 21 Sep 2015 10:07:22 -0700 Subject: [PATCH] replaced opensearch: as empty str --- pylast/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index 4c5e28f..31f8a63 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -1135,13 +1135,13 @@ class _Request(object): else: response = self._download_response() - return minidom.parseString(_string(response)) + return minidom.parseString(_string(response).replace("opensearch:", "")) def _check_response_for_errors(self, response): """Checks the response for errors and raises one if any exists.""" try: - doc = minidom.parseString(_string(response)) + doc = minidom.parseString(_string(response).replace("opensearch:", "")) except Exception as e: raise MalformedResponseError(self.network, e)