From d267d65e5749558aa08b11f125c6872ebad69e47 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 21 Nov 2009 20:49:09 +0000 Subject: [PATCH] - Remove html tags from torrent names in mininova search plugin --- src/search_engine/engines/mininova.py | 4 ++-- src/search_engine/engines/versions.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search_engine/engines/mininova.py b/src/search_engine/engines/mininova.py index 14ed946f7..8f63a48a1 100644 --- a/src/search_engine/engines/mininova.py +++ b/src/search_engine/engines/mininova.py @@ -1,4 +1,4 @@ -#VERSION: 1.31 +#VERSION: 1.32 #AUTHORS: Fabien Devaux (fab@gnux.info) # Redistribution and use in source and binary forms, with or without @@ -65,7 +65,7 @@ class mininova(object): name += node.firstChild.toxml() else: name += node.toxml() - return name + return re.sub('<[a-zA-Z\/][^>]*>', '', name) def get_text(txt): if txt.nodeType == txt.TEXT_NODE: diff --git a/src/search_engine/engines/versions.txt b/src/search_engine/engines/versions.txt index c5909d88b..a8f0b17d6 100644 --- a/src/search_engine/engines/versions.txt +++ b/src/search_engine/engines/versions.txt @@ -1,5 +1,5 @@ isohunt: 1.30 torrentreactor: 1.20 btjunkie: 2.21 -mininova: 1.31 +mininova: 1.32 piratebay: 1.22