mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
BUGFIX: Fix issues when search engines results contain a '|'
This commit is contained in:
@@ -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 <chris@qbittorrent.org> - v2.5.3
|
||||
- BUGFIX: Fix priority up/down for multiple torrents at the same time (closes #692184)
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user