mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Clean up the CC version check a bit.
This commit is contained in:
parent
9cac372530
commit
46d5ed6e3e
@ -223,6 +223,8 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
|
|
||||||
PURGE_CACHE_ENTRIES_DAYS = 30
|
PURGE_CACHE_ENTRIES_DAYS = 30
|
||||||
|
|
||||||
|
CURRENT_CC_VERSION = 64
|
||||||
|
|
||||||
ZEROCONF_CLIENT_STRING = b'calibre wireless device client'
|
ZEROCONF_CLIENT_STRING = b'calibre wireless device client'
|
||||||
|
|
||||||
# A few "random" port numbers to use for detecting clients using broadcast
|
# A few "random" port numbers to use for detecting clients using broadcast
|
||||||
@ -1035,11 +1037,11 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if (self.client_app_name == 'CalibreCompanion' and
|
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._debug('Telling client to update')
|
||||||
self._call_client("DISPLAY_MESSAGE",
|
self._call_client("DISPLAY_MESSAGE",
|
||||||
{'messageKind': self.MESSAGE_UPDATE_NEEDED,
|
{'messageKind': self.MESSAGE_UPDATE_NEEDED,
|
||||||
'lastestKnownAppVersion': 62})
|
'lastestKnownAppVersion': self.CURRENT_CC_VERSION})
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user