mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-26 17:41:43 +01:00
Update textextraction_pdf.py
This commit is contained in:
parent
c1618166c9
commit
80871610a1
@ -59,7 +59,7 @@ class TextExtractionPDF(DVMTaskInterface):
|
||||
# if event contains url to pdf, we checked for a pdf link before
|
||||
elif input_type == "event":
|
||||
evt = await get_event_by_id(input_content, client=client, config=dvm_config)
|
||||
url = re.search("(?P<url>https?://[^\s]+)", evt.content()).group("url")
|
||||
url = re.search("(?P<url>https?://[^\\s]+)", evt.content()).group("url")
|
||||
|
||||
options = {
|
||||
"url": url,
|
||||
|
Loading…
x
Reference in New Issue
Block a user