From 2c080fec3d3a2fdcf63de5b641ad92dd088ae1e3 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 8 Jan 2015 16:56:38 +0100 Subject: [PATCH] TorrentBytes nbsp issue fix #4026 --- couchpotato/core/media/_base/providers/torrent/torrentbytes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/media/_base/providers/torrent/torrentbytes.py b/couchpotato/core/media/_base/providers/torrent/torrentbytes.py index 8e2becb..fadd2ea 100644 --- a/couchpotato/core/media/_base/providers/torrent/torrentbytes.py +++ b/couchpotato/core/media/_base/providers/torrent/torrentbytes.py @@ -56,7 +56,7 @@ class Base(TorrentProvider): full_id = link['href'].replace('details.php?id=', '') torrent_id = full_id[:6] - name = toUnicode(link.contents[0]) + name = toUnicode(link.contents[0].encode('ISO-8859-1')).strip() results.append({ 'id': torrent_id,