Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luen committed Nov 8, 2024
1 parent 72d47e7 commit c1c66a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doi.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,9 @@ def check_doi_via_redirect(doi, expected_url, expected_html, author, attempts=1)
return check_doi_via_redirect(doi, expected_url, expected_html, author, attempts+1)
if are_urls_equal(follow_url, expected_url): # Check if the URL redirects to the expected URL
return True

if author in page_html:
print_warn(f"Verifying DOI: '{author}' found in HTML of {doi}. Expected URL: {expected_url}")
print_warn(f"Verifying DOI: '{author}' found in HTML of {doi}.")
return True
#if levenshtein(page_html, expected_html) < 100: # Check if the HTML content is similar
# print_warn(f"Verifying DOI: Similar HTML content for DOI {doi} {expected_url}")
Expand Down

0 comments on commit c1c66a3

Please sign in to comment.