From 6a16a66b5ec0a3bcf53aeaf9e5ffb2c412c64d7d Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 12 Jun 2019 22:43:20 -0500 Subject: [PATCH] fixed issue with search by title --- src/extractors/tidal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extractors/tidal.py b/src/extractors/tidal.py index 3b9cfb5..4d7b6d0 100644 --- a/src/extractors/tidal.py +++ b/src/extractors/tidal.py @@ -29,6 +29,7 @@ class interface(object): raise ValueError("Text must be passed and should not be blank.") log.debug("Retrieving data from Tidal...") fieldtypes = ["artist", "album", "playlist"] + field = "track" for i in fieldtypes: if text.startswith(i+"://"): field = i @@ -36,7 +37,7 @@ class interface(object): log.debug("Searching for %s..." % (field)) search_response = self.session.search(value=text, field=field) self.results = [] - if field == "tracks": + if field == "track": data = search_response.tracks elif field == "artist": data = []