From 62592e685f81d2b0e2cf621da10b50ca9b418d07 Mon Sep 17 00:00:00 2001 From: inpos Date: Fri, 4 Mar 2016 23:53:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=83=D1=82=D1=8C=20=D0=BA=20=D0=BB?= =?UTF-8?q?=D0=BE=D0=BA=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=BC=D1=83=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=D1=83=20.torrent=20url-quoted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pyrrent2http/pyrrent2http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pyrrent2http/pyrrent2http.py b/lib/pyrrent2http/pyrrent2http.py index 0d9a8d0..921375f 100644 --- a/lib/pyrrent2http/pyrrent2http.py +++ b/lib/pyrrent2http/pyrrent2http.py @@ -662,7 +662,7 @@ class Pyrrent2http(object): if uriPath != '' and sys.platform.startswith('win') and (os.path.sep == uriPath[0] or uriPath[0] == '/'): uriPath = uriPath[1:] try: - absPath = os.path.abspath(uriPath) + absPath = os.path.abspath(urllib.unquote(uriPath)) logging.info('Opening local file: %s' % (absPath,)) with open(absPath, 'rb') as f: torrent_info = lt.torrent_info(lt.bdecode(f.read()))