Skip to content

Commit

Permalink
- Fixed torrent name parsing in Mininova search plugin due to Web sit…
Browse files Browse the repository at this point in the history
…e changes (Thanks Lucas Moauro for the patch)
  • Loading branch information
Christophe Dumez committed Aug 2, 2009
1 parent 9e522a8 commit 66baa4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/search_engine/engines/mininova.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#VERSION: 1.22
#VERSION: 1.23
#AUTHORS: Fabien Devaux ([email protected])

# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -58,7 +58,13 @@ def get_name(lnk):
i += 1
except:
return None
return lnks.item(i).firstChild.toxml()
name = ""
for node in lnks[i].childNodes:
if node.hasChildNodes():
name += node.firstChild.toxml()
else:
name += node.toxml()
return name

def get_text(txt):
if txt.nodeType == txt.TEXT_NODE:
Expand Down
2 changes: 1 addition & 1 deletion src/search_engine/engines/versions.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
isohunt: 1.21
torrentreactor: 1.11
btjunkie: 2.11
mininova: 1.22
mininova: 1.23
piratebay: 1.11

0 comments on commit 66baa4d

Please sign in to comment.