Skip to content

Commit

Permalink
Fixing typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
umarbutler committed Aug 4, 2024
1 parent a011712 commit 0741561
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def _get_doc(self, entry: Entry) -> Document | None:
urls = re.findall(r'href="([^"]+)" target="epubFrame"', status_page.text)
urls = [url.split('#')[0] for url in urls] # Remove any anchors from the urls, which will assist with deduplication.

if not urls: # If no links to the HTML full text of the document's constituent parts could be found (in the navigation pane), search for a link to the HTML full text of the first part of the document (in the HTML icon in the header of the text viewer) if that exists.
if not urls: # If no links to the HTML full text of the document's constituent parts could be found (in the navigation pane), search for a link to the HTML full text of the first part of the document (in the text viewer's iframe) if that exists.
urls = re.findall(r'<iframe[^>]+name="epubFrame"[^>]+src="([^"]+)">', status_page.text)

urls = list(dict.fromkeys(urls)) # Remove duplicate urls.
Expand Down

0 comments on commit 0741561

Please sign in to comment.