diff --git a/kindle_fetch/kindle_fetch.py b/kindle_fetch/kindle_fetch.py index 02dd360..cd17597 100644 --- a/kindle_fetch/kindle_fetch.py +++ b/kindle_fetch/kindle_fetch.py @@ -63,7 +63,7 @@ def get_download_link(text): text = quopri.decodestring(text).decode("utf-8", errors="ignore") logger.debug(text) - m = re.search(r'''href="(https://.*\.amazon\..*?)"''', text) + m = re.search(r'''href="(https://.*\.amazon\..*\.pdf.*?)"''', text) if not m: return None, None