From 280e9ab26833b25590b57c90cf0dac72b1d2c29e Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 23 Oct 2016 06:13:25 -0500 Subject: [PATCH] Failsafe for db version --- resources/lib/librarysync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 74ee777e..4de6e5c5 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -915,7 +915,7 @@ class LibrarySync(threading.Thread): currentVersion = emby_db.get_version() ###$ Begin migration $### if currentVersion is None: - currentVersion = emby_db.get_version(settings('dbCreatedWithVersion')) + currentVersion = emby_db.get_version(settings('dbCreatedWithVersion') or self.clientInfo.get_version()) embyconn.commit() log.info("Migration of database version completed") ###$ End migration $###