From 916e01f9f8c43429ca312a2e2c8c4de0c78b8b4c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 3 Jan 2011 19:11:12 +0000 Subject: [PATCH] BUGFIX: Fix issues when search engines results contain a '|' --- Changelog | 1 + src/searchengine/nova/novaprinter.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index c3dea2e49..f2a716cf5 100644 --- a/Changelog +++ b/Changelog @@ -3,6 +3,7 @@ - BUGFIX: Prioritize first and last pieces when sequential download is enabled - BUGFIX: Some encoding fixes (Windows) - BUGFIX: Display default password on stdout when using nox + - BUGFIX: Fix issues when search engines results contain a '|' * Sat Jan 1 2011 - Christophe Dumez - v2.5.3 - BUGFIX: Fix priority up/down for multiple torrents at the same time (closes #692184) diff --git a/src/searchengine/nova/novaprinter.py b/src/searchengine/nova/novaprinter.py index 4811b39cd..7a42bf916 100644 --- a/src/searchengine/nova/novaprinter.py +++ b/src/searchengine/nova/novaprinter.py @@ -1,4 +1,4 @@ -#VERSION: 1.33 +#VERSION: 1.34 # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -35,7 +35,7 @@ def prettyPrinter(dictionary): if isinstance(dictionary[key], str): dictionary[key] = unicode(dictionary[key], 'utf-8') dictionary['size'] = anySizeToBytes(dictionary['size']) - print u"%s|%s|%s|%s|%s|%s"%(dictionary['link'],dictionary['name'],dictionary['size'],dictionary['seeds'],dictionary['leech'],dictionary['engine_url']) + print u"%s|%s|%s|%s|%s|%s"%(dictionary['link'],dictionary['name'].replace('|', ''),dictionary['size'],dictionary['seeds'],dictionary['leech'],dictionary['engine_url']) def anySizeToBytes(size_string): """