Skip to content

Commit

Permalink
move debug for gh actions up
Browse files Browse the repository at this point in the history
  • Loading branch information
dli7319 committed Apr 11, 2024
1 parent ddda2fe commit 60749ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DuBibtex.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ def google_lookup(s, parser, use_scholar=False):
res = res.replace('\\', '')
print("DOI from Google and PubMed: %s\n" % res)
return res

if use_scholar and "HoloCamera" in s:
# Debugging for HoloCamera on GH Actions.
print(html)

# Nowadays, CVPR papers are hard to fetch DOI without ieee keyword.
html = request_url('https://www.google.com/search?q=ieee+%s' % s)
Expand All @@ -472,10 +476,6 @@ def google_lookup(s, parser, use_scholar=False):
res = m.groups()[0].replace('\\', '')
print("DOI from Google and IEEE: %s\n" % res)
return res

if use_scholar and "HoloCamera" in s:
# Debugging for HoloCamera on GH Actions.
print(html)

print("* Nothing was found.\n")
return None
Expand Down

0 comments on commit 60749ee

Please sign in to comment.