From 46d5ed6e3e3d1a28a80c28f8d51832e7b4d056cc Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Wed, 27 Nov 2013 12:45:30 +0100 Subject: [PATCH] Clean up the CC version check a bit. --- src/calibre/devices/smart_device_app/driver.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/smart_device_app/driver.py b/src/calibre/devices/smart_device_app/driver.py index 0f849d25fd..23742830c6 100644 --- a/src/calibre/devices/smart_device_app/driver.py +++ b/src/calibre/devices/smart_device_app/driver.py @@ -223,6 +223,8 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin): PURGE_CACHE_ENTRIES_DAYS = 30 + CURRENT_CC_VERSION = 64 + ZEROCONF_CLIENT_STRING = b'calibre wireless device client' # A few "random" port numbers to use for detecting clients using broadcast @@ -1035,11 +1037,11 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin): try: if (self.client_app_name == 'CalibreCompanion' and - self.app_version_number < 62): + self.app_version_number < self.CURRENT_CC_VERSION): self._debug('Telling client to update') self._call_client("DISPLAY_MESSAGE", {'messageKind': self.MESSAGE_UPDATE_NEEDED, - 'lastestKnownAppVersion': 62}) + 'lastestKnownAppVersion': self.CURRENT_CC_VERSION}) except: pass