From b1b2a2c77535c184a0a31350e28472831c6820e9 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 20 Oct 2010 19:42:12 +0000 Subject: [PATCH] Fix issues when searching for something with {*} in the name --- src/search_engine/engines/btjunkie.py | 5 ++++- src/search_engine/engines/isohunt.py | 5 ++++- src/search_engine/engines/versions.txt | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/search_engine/engines/btjunkie.py b/src/search_engine/engines/btjunkie.py index 23464fd5c..7f89f47fe 100644 --- a/src/search_engine/engines/btjunkie.py +++ b/src/search_engine/engines/btjunkie.py @@ -1,4 +1,4 @@ -#VERSION: 2.21 +#VERSION: 2.23 #AUTHORS: Christophe Dumez (chris@qbittorrent.org) # Redistribution and use in source and binary forms, with or without @@ -93,6 +93,9 @@ class btjunkie(object): self.results.append('a') def search(self, what, cat='all'): + # Remove {} since btjunkie does not seem + # to handle those very well + what = what.replace('{', '').replace('}', '') ret = [] i = 1 while True and i<11: diff --git a/src/search_engine/engines/isohunt.py b/src/search_engine/engines/isohunt.py index d4c083c51..ce6466f7d 100644 --- a/src/search_engine/engines/isohunt.py +++ b/src/search_engine/engines/isohunt.py @@ -1,4 +1,4 @@ -#VERSION: 1.30 +#VERSION: 1.31 #AUTHORS: Christophe Dumez (chris@qbittorrent.org) # Redistribution and use in source and binary forms, with or without @@ -38,6 +38,9 @@ class isohunt(object): print download_file(info) def search(self, what, cat='all'): + # Remove {} since isohunt does not seem + # to handle those very well + what = what.replace('{', '').replace('}', '') i = 1 while True and i<11: res = 0 diff --git a/src/search_engine/engines/versions.txt b/src/search_engine/engines/versions.txt index d0b33fd4b..c6edb3ebd 100644 --- a/src/search_engine/engines/versions.txt +++ b/src/search_engine/engines/versions.txt @@ -1,6 +1,6 @@ -isohunt: 1.30 +isohunt: 1.31 torrentreactor: 1.20 -btjunkie: 2.21 +btjunkie: 2.23 mininova: 1.40 piratebay: 1.30 vertor: 1.0