mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Apply an easily identifiable pattern for bad catalog entries
This commit is contained in:
parent
c8374fd05b
commit
6c8a8142bd
@ -987,6 +987,9 @@ class Amazon(Source):
|
||||
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…
x
Reference in New Issue
Block a user