Fix the title which was not unicode when using the settings file (fix #104).

This commit is contained in:
Simon Conseil
2014-11-23 15:53:09 +01:00
parent dcb91cbf60
commit d42915a1ca
2 changed files with 4 additions and 0 deletions

View File

@@ -141,6 +141,9 @@ def read_settings(filename=None):
if PY2 and isinstance(settings[p], str):
settings[p] = settings[p].decode(enc)
if settings['title']:
settings['title'] = settings['title'].decode('utf8')
for key in ('img_size', 'thumb_size', 'video_size'):
w, h = settings[key]
if h > w:

View File

@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
title = "Sigal test gallery ☺"
source = 'pictures'
thumb_suffix = '.tn'
thumb_size = (200, 150)