diff --git a/CHANGES.md b/CHANGES.md index 5b456ad8..b8ff5859 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -46,6 +46,11 @@ * Add scene qualities WEB.h264 to SDTV, 720p.WEB.h264 to WEB DL 720p, and 1080p.WEB.h264 to WEB DL 1080p +### 0.11.9 (2016-03-17 12:30:00 UTC) + +* Fix for import of very rare db structure + + ### 0.11.8 (2016-03-16 12:50:00 UTC) * Fix ensures internal buffer of a downloaded file is written to disk diff --git a/sickbeard/db.py b/sickbeard/db.py index fcb4a3c7..f577c0fd 100644 --- a/sickbeard/db.py +++ b/sickbeard/db.py @@ -77,7 +77,8 @@ class DBConnection(object): if result: if self.hasColumn('db_version', 'db_minor_version'): minor = self.select('SELECT db_minor_version FROM db_version') - return int(result[0]['db_version']) * 100 + int(minor[0]['db_minor_version']) + version = int(result[0]['db_version']) * 100 + int(minor[0]['db_minor_version']) + return (version, 4301)[2000301 == version] return int(result[0]['db_version']) else: return 0