Fix the title which was not unicode when using the settings file (fix #104).
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
title = "Sigal test gallery ☺"
|
||||
source = 'pictures'
|
||||
thumb_suffix = '.tn'
|
||||
thumb_size = (200, 150)
|
||||
|
||||
Reference in New Issue
Block a user