mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 21:54:52 +01:00
Clean up the CC version check a bit.
This commit is contained in:
parent
9cac372530
commit
46d5ed6e3e
1 changed files with 4 additions and 2 deletions
|
|
@ -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 @@ def open(self, connected_device, library_uuid):
|
|||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue