mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 16:42:30 -06:00
- Should completly fix unicode problems for all search engines
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
def prettyPrinter(dictionnary):
|
||||
if isinstance(dictionnary['size'], str):
|
||||
dictionnary['size'] = dictionnary['size'].decode('utf-8')
|
||||
dictionnary['size'] = anySizeToBytes(dictionnary['size'])
|
||||
if isinstance(dictionnary['name'], unicode):
|
||||
dictionnary['name'] = dictionnary['name'].encode('utf-8')
|
||||
|
||||
Reference in New Issue
Block a user