From 2cf0a6f768cfc721b31d296afd838551710fad52 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Thu, 9 Feb 2017 18:22:05 +0530 Subject: [PATCH] fix unicode encode error in manual mode --- spotdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotdl.py b/spotdl.py index 5d4d56e..3a476df 100644 --- a/spotdl.py +++ b/spotdl.py @@ -40,7 +40,7 @@ def searchYT(number): print('') for x in items_parse.find_all('h3', {'class':'yt-lockup-title'}): if not x.find('channel') == -1 or not x.find('googleads') == -1: - print(str(check) + '. ' + x.get_text()) + print((str(check) + '. ' + x.get_text()).encode('utf-8')) links.append(x.find('a')['href']) check += 1 is_error = True