From 40ae6b3561ff58a4102d69f752336901803f1004 Mon Sep 17 00:00:00 2001 From: Kepoor Hampond Date: Mon, 5 Jun 2017 19:53:53 -0700 Subject: [PATCH] more python 3.x compatability --- irs/ripper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/irs/ripper.py b/irs/ripper.py index 83a42c7..bf2f527 100644 --- a/irs/ripper.py +++ b/irs/ripper.py @@ -252,7 +252,7 @@ with init, or in method arguments.") the_list = ObjManip.set_utf8_encoding(the_list) - print(unicode(self.args["hook-text"].get("list")) + print(self.args["hook-text"].get("list").encode('utf-8') .format(type.title(), the_list["name"], the_list["artists"][0]["name"])) @@ -374,7 +374,8 @@ init, or in method arguments.") video_url, video_title = self.find_yt_url(song, artist) - print(unicode(self.args["hook-text"].get("song")).format(song, artist)) + print(self.args["hook-text"].get("song") + .encode('utf-8').format(song, artist)) file_name = str(data["file_prefix"] + ObjManip.blank(song, False) + ".mp3")