From e8d37289c077f6fa8d2e6df2b63a11339afbcc72 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 25 May 2008 12:36:37 +0200 Subject: [PATCH] fix thepiratebay.getId --- ox/thepiratebay.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ox/thepiratebay.py b/ox/thepiratebay.py index c6e99fb..3751897 100644 --- a/ox/thepiratebay.py +++ b/ox/thepiratebay.py @@ -60,9 +60,7 @@ def findMovieByImdb(imdb): def getId(piratebayId): if piratebayId.startswith('http://torrents.thepiratebay.org/'): piratebayId = piratebayId.split('org/')[1] - if 'tor/' in piratebayId: - piratebayId = piratebayId.split('tor/')[1] - d = findRe(piratebayId, "/(\d+)") + d = findRe(piratebayId, "tor/(\d+)") if d: piratebayId = d return piratebayId