mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-08 15:04:35 +01:00
Apply an easily identifiable pattern for bad catalog entries
This commit is contained in:
parent
c8374fd05b
commit
6c8a8142bd
1 changed files with 3 additions and 0 deletions
|
|
@ -987,6 +987,9 @@ def title_ok(title):
|
|||
for x in bad:
|
||||
if x in title:
|
||||
return False
|
||||
if title and title[0] in '[{' and re.search(r'\(\s*author\s*\)', title) is not None:
|
||||
# Bad entries in the catalog
|
||||
return False
|
||||
return True
|
||||
|
||||
for a in root.xpath(r'//li[starts-with(@id, "result_")]//a[@href and contains(@class, "s-access-detail-page")]'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue