Handle case of story URLs from removed sites in rejects more gracefully.

This commit is contained in:
Jim Miller 2021-01-30 17:24:12 -06:00
parent 9fb72efa15
commit 8ef5dcc1b3
2 changed files with 4 additions and 2 deletions

View file

@ -1222,7 +1222,7 @@ class RejectListDialog(SizePersistedDialog):
title = unicode(self.rejects_table.item(row, 1).text()).strip()
auth = unicode(self.rejects_table.item(row, 2).text()).strip()
note = unicode(self.rejects_table.cellWidget(row, 3).currentText()).strip()
rejectrows.append(RejectUrlEntry(url,note,title,auth,self.get_reason_text(),book_id=book_id))
rejectrows.append(RejectUrlEntry(url,note,title,auth,self.get_reason_text(),book_id=book_id,normalize=False))
return rejectrows
def get_reject_list_ids(self):

View file

@ -256,7 +256,9 @@ def get_section_url(url):
if cls:
return cls.get_section_url(url)
else:
return None
## might be a url from a removed adapter.
## return unchanged in that case.
return url
def getAdapter(config,url,anyurl=False):