diff --git a/pirate-get.py b/pirate-get.py index 3da1af8..7b3f919 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -445,7 +445,7 @@ def main(): if f.info().get('Content-Encoding') == 'gzip': f = gzip.GzipFile(fileobj=BytesIO(f.read())) - res = f.read().replace(" ", " ") + res = f.read().decode('utf-8').replace(" ", " ") files = re.findall(r"\s*([^<]+?)\s*\s*([^<]+?)\s*", res) name = re.search("dn=([^\&]*)", mags[int(link)][0])