mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-15 13:22:23 +01:00
Clarify some tooltip text and add 'FFF Frozen URL' feature.
This commit is contained in:
parent
bd33668954
commit
4828a63e22
3 changed files with 439 additions and 428 deletions
|
|
@ -501,7 +501,7 @@ class BasicTab(QWidget):
|
|||
self.l.addLayout(horz)
|
||||
|
||||
self.checkforurlchange = QCheckBox(_("Check for changed Story URL?"),self)
|
||||
self.checkforurlchange.setToolTip(_("Warn you if an update will change the URL of an existing book.\nfanfiction.net URLs will change from http to https silently."))
|
||||
self.checkforurlchange.setToolTip(_("Warn you if an update will change the URL of an existing book(normally automatic and silent).\nURLs may be changed from http to https silently if the site changed."))
|
||||
self.checkforurlchange.setChecked(prefs['checkforurlchange'])
|
||||
self.l.addWidget(self.checkforurlchange)
|
||||
|
||||
|
|
|
|||
|
|
@ -1276,11 +1276,18 @@ class FanFicFarePlugin(InterfaceAction):
|
|||
|
||||
if book_id and mi: # book_id and mi only set if matched by title/author.
|
||||
liburl = self.get_story_url(db,book_id)
|
||||
if book['url'] != liburl and prefs['checkforurlchange'] and \
|
||||
if book['url'] != liburl and \
|
||||
not (book['url'].replace('https','http') == liburl): # several sites have been changing to
|
||||
# https now. Don't flag when that's the only change.
|
||||
# special case for ffnet urls change to https.
|
||||
if not question_dialog(self.gui, _('Change Story URL?'),'''
|
||||
tags = db.get_tags(book_id)
|
||||
flag_tag = "FFF Frozen URL" # not translated so it works across languages.
|
||||
if flag_tag in tags:
|
||||
book['comment'] = _("Update declined due to differing story URL(%s)(%s tag present)")%(liburl,flag_tag)
|
||||
book['good']=False
|
||||
book['icon']='rotate-right.png'
|
||||
book['status'] = _('Different URL')
|
||||
return
|
||||
if prefs['checkforurlchange'] and not question_dialog(self.gui, _('Change Story URL?'),'''
|
||||
<h3>%s</h3>
|
||||
<p>%s</p>
|
||||
<p>%s</p>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue