Merge pull request #49 from OzzieIsaacs/patch-2

Fix for non Ascii Characters in database paths #46
This commit is contained in:
cervinko
2016-08-07 22:38:10 +02:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ def title_sort(title):
dbpath = os.path.join(config.DB_ROOT, "metadata.db")
engine = create_engine('sqlite:///{0}'.format(dbpath), echo=False)
engine = create_engine('sqlite:///{0}'.format(dbpath.encode('utf-8')), echo=False)
conn = engine.connect()
conn.connection.create_function('title_sort', 1, title_sort)
Base = declarative_base()