From b9da32b2a267104d5581b842866d202535877582 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 22 Sep 2021 08:17:59 +0200 Subject: [PATCH] Fixed strip position --- deemix/itemgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/itemgen.py b/deemix/itemgen.py index 41a6635..8366d76 100644 --- a/deemix/itemgen.py +++ b/deemix/itemgen.py @@ -21,7 +21,7 @@ def generateTrackItem(dz, link_id, bitrate, trackAPI=None, albumAPI=None): link_id = trackAPI['id'] else: raise ISRCnotOnDeezer(f"https://deezer.com/track/{link_id}") - if not str(link_id.strip('-')).isdecimal(): raise InvalidID(f"https://deezer.com/track/{link_id}") + if not str(link_id).strip('-').isdecimal(): raise InvalidID(f"https://deezer.com/track/{link_id}") # Get essential track info try: