diff --git a/qo_utils/search.py b/qo_utils/search.py index aab0e04..8c742a7 100644 --- a/qo_utils/search.py +++ b/qo_utils/search.py @@ -28,14 +28,23 @@ class Search: self.Total.append("[RELEASE] {} - {} - {} [{}]".format(*items)) self.appendInfo(i, True) except KeyError: - items = ( - i["performer"]["name"], - i["title"], - self.seconds(i["duration"]), - "HI-RES" if i["hires"] else "Lossless", - ) - self.Total.append("[TRACK] {} - {} - {} [{}]".format(*items)) - self.appendInfo(i, False) + try: + items = ( + i["performer"]["name"], + i["title"], + self.seconds(i["duration"]), + "HI-RES" if i["hires"] else "Lossless", + ) + self.Total.append("[TRACK] {} - {} - {} [{}]".format(*items)) + self.appendInfo(i, False) + except KeyError: + items = ( + i["title"], + self.seconds(i["duration"]), + "HI-RES" if i["hires"] else "Lossless", + ) + self.Total.append("[TRACK] {} [{}]".format(*items)) + self.appendInfo(i, False) def getResults(self, tracks=False): self.itResults(self.Albums)