mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Epub Update: Don't cache cover image with others, trips dedup.
This commit is contained in:
parent
36e2183d45
commit
d9dd04396e
1 changed files with 4 additions and 0 deletions
|
|
@ -304,6 +304,10 @@ def get_update_data(inputio,
|
|||
for item in contentdom.getElementsByTagName("item"):
|
||||
href=relpath+item.getAttribute("href")
|
||||
if item.getAttribute("media-type").startswith("image/") and getsoups:
|
||||
if oldcover and href == oldcover[3]:
|
||||
# don't include cover image, already handled by
|
||||
# oldcover code and can trip de-dup unintentionally.
|
||||
continue
|
||||
img_url = href.replace("OEBPS/","")
|
||||
# logger.debug("-->img img:%s"%img_url)
|
||||
if img_url not in images:
|
||||
|
|
|
|||
Loading…
Reference in a new issue