Change references to the calibre website to use https

This commit is contained in:
Kovid Goyal 2016-06-16 10:13:27 +05:30
parent ec2671b809
commit 3e93f8f51e
11 changed files with 13 additions and 13 deletions

View File

@ -1459,7 +1459,7 @@ class OPFCreator(Metadata):
fa['file-as'] = self.author_sort
a(DC_ELEM('creator', author, opf_attrs=fa))
a(DC_ELEM('contributor', '%s (%s) [%s]'%(__appname__, __version__,
'http://calibre-ebook.com'), opf_attrs={'role':'bkp',
'https://calibre-ebook.com'), opf_attrs={'role':'bkp',
'file-as':__appname__}))
a(DC_ELEM('identifier', str(self.application_id),
opf_attrs={'scheme':__appname__},
@ -1561,7 +1561,7 @@ def metadata_to_opf(mi, as_string=True, default_lang=None):
if not mi.book_producer:
mi.book_producer = __appname__ + ' (%s) '%__version__ + \
'[http://calibre-ebook.com]'
'[https://calibre-ebook.com]'
if not mi.languages:
lang = (get_lang().replace('_', '-').partition('-')[0] if default_lang

View File

@ -270,7 +270,7 @@ class PDFStream(object):
self.compress = compress
self.write_line(PDFVER)
self.write_line(b'%íì¦"')
creator = ('%s %s [http://calibre-ebook.com]'%(__appname__,
creator = ('%s %s [https://calibre-ebook.com]'%(__appname__,
__version__))
self.write_line('%% Created by %s'%creator)
self.objects = IndirectObjects()

View File

@ -324,7 +324,7 @@ class PDFWriter(QObject): # {{{
self.append_doc(self.combine_queue[-1])
try:
self.doc.creator = u'%s %s [http://calibre-ebook.com]'%(
self.doc.creator = u'%s %s [https://calibre-ebook.com]'%(
__appname__, __version__)
self.doc.title = self.metadata.title
self.doc.author = self.metadata.author
@ -356,7 +356,7 @@ class ImagePDFWriter(object): # {{{
raw = x.read()
doc = get_podofo().PDFDoc()
doc.load(raw)
doc.creator = u'%s %s [http://calibre-ebook.com]'%(
doc.creator = u'%s %s [https://calibre-ebook.com]'%(
__appname__, __version__)
doc.title = self.metadata.title
doc.author = self.metadata.author

View File

@ -476,7 +476,7 @@ class CoverSettingsWidget(QWidget):
mi.tags = [_('Tag One'), _('Tag Two')]
mi.publisher = _('Some publisher')
mi.rating = 4
mi.identifiers = {'isbn':'123456789', 'url': 'http://calibre-ebook.com'}
mi.identifiers = {'isbn':'123456789', 'url': 'https://calibre-ebook.com'}
mi.languages = ['eng', 'fra']
mi.pubdate = mi.timestamp = now()
return mi

View File

@ -149,7 +149,7 @@
</size>
</property>
<property name="text">
<string>See the &lt;a href=&quot;http://calibre-ebook.com/user_manual/gui.html#the-search-interface&quot;&gt;User Manual&lt;/a&gt; for more help</string>
<string>See the &lt;a href=&quot;https://calibre-ebook.com/user_manual/gui.html#the-search-interface&quot;&gt;User Manual&lt;/a&gt; for more help</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>

View File

@ -49,7 +49,7 @@ from calibre.utils.icu import character_name, sort_key
from calibre.utils.localization import localize_user_manual_link
def open_donate():
open_url(QUrl('http://calibre-ebook.com/donate'))
open_url(QUrl('https://calibre-ebook.com/donate'))
class Central(QStackedWidget): # {{{

View File

@ -853,7 +853,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
QApplication.instance().quit()
def donate(self, *args):
open_url(QUrl('http://calibre-ebook.com/donate'))
open_url(QUrl('https://calibre-ebook.com/donate'))
def confirm_quit(self):
if self.job_manager.has_jobs():

View File

@ -112,7 +112,7 @@ class UpdateNotification(QDialog):
ver = ver[:-2]
self.label = QLabel(('<p>'+
_('New version <b>%(ver)s</b> of %(app)s is available for download. '
'See the <a href="http://calibre-ebook.com/whats-new'
'See the <a href="https://calibre-ebook.com/whats-new'
'">new features</a>.'))%dict(
app=__appname__, ver=ver))
self.label.setOpenExternalLinks(True)

View File

@ -46,7 +46,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;h2&gt;Demo videos&lt;/h2&gt;Videos demonstrating the various features of calibre are available &lt;a href=&quot;http://calibre-ebook.com/demo&quot;&gt;online&lt;/a&gt;.</string>
<string>&lt;h2&gt;Demo videos&lt;/h2&gt;Videos demonstrating the various features of calibre are available &lt;a href=&quot;https://calibre-ebook.com/demo&quot;&gt;online&lt;/a&gt;.</string>
</property>
<property name="wordWrap">
<bool>true</bool>

View File

@ -1075,7 +1075,7 @@ def write_appdata(key, entry, base, translators):
E.id(key + '.desktop', type='desktop'),
E.licence('CC0'),
E.description(),
E.url('http://calibre-ebook.com', type='homepage'),
E.url('https://calibre-ebook.com', type='homepage'),
E.screenshots(),
)
for w, h, url in entry['screenshots']:

View File

@ -229,7 +229,7 @@ class Feed(object): # {{{
self.root = \
FEED(
TITLE(title or default_feed_title),
AUTHOR(__appname__, uri='http://calibre-ebook.com'),
AUTHOR(__appname__, uri='https://calibre-ebook.com'),
ID(id_),
ICON(request_context.ctx.url_for('/favicon.png')),
UPDATED(updated),