mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Add iPad to Welcome Wizard
This commit is contained in:
parent
5dfc08ed4e
commit
f8656b66bd
@ -8,6 +8,7 @@ import mechanize
|
||||
|
||||
from calibre.constants import __version__, iswindows, isosx
|
||||
from calibre import browser
|
||||
from calibre.utils.config import prefs
|
||||
|
||||
URL = 'http://status.calibre-ebook.com/latest'
|
||||
|
||||
@ -32,6 +33,7 @@ class CheckForUpdates(QObject):
|
||||
req.add_header('CALIBRE_VERSION', __version__)
|
||||
req.add_header('CALIBRE_OS',
|
||||
'win' if iswindows else 'osx' if isosx else 'oth')
|
||||
req.add_header('CALIBRE_INSTALL_UUID', prefs['installation_uuid'])
|
||||
version = br.open(req).read().strip()
|
||||
if version and version != __version__:
|
||||
self.emit(SIGNAL('update_found(PyQt_PyObject)'), version)
|
||||
|
@ -127,7 +127,7 @@ class CybookOpus(CybookG3):
|
||||
|
||||
class iPhone(Device):
|
||||
|
||||
name = 'iPhone/iTouch + Stanza'
|
||||
name = 'iPad or iPhone/iTouch + Stanza'
|
||||
output_format = 'EPUB'
|
||||
manufacturer = 'Apple'
|
||||
id = 'iphone'
|
||||
|
@ -672,6 +672,7 @@ def _prefs():
|
||||
help=_('Swap author first and last names when reading metadata'))
|
||||
c.add_opt('add_formats_to_existing', default=False,
|
||||
help=_('Add new formats to existing book records'))
|
||||
c.add_opt('installation_uuid', default=None, help='Installation UUID')
|
||||
|
||||
# this is here instead of the gui preferences because calibredb can execute searches
|
||||
c.add_opt('saved_searches', default={}, help=_('List of named saved searches'))
|
||||
@ -680,6 +681,9 @@ def _prefs():
|
||||
return c
|
||||
|
||||
prefs = ConfigProxy(_prefs())
|
||||
if prefs['installation_uuid'] is None:
|
||||
import uuid
|
||||
prefs['installation_uuid'] = str(uuid.uuid4())
|
||||
|
||||
# Read tweaks
|
||||
def read_tweaks():
|
||||
|
Loading…
x
Reference in New Issue
Block a user