remove debug
This commit is contained in:
parent
2cd1d85702
commit
03a91e755e
1 changed files with 1 additions and 2 deletions
|
@ -102,7 +102,7 @@ def import_url(url):
|
|||
title = re.compile('<title>(.*?)</title>').findall(data)
|
||||
if title:
|
||||
meta['title'] = title[0]
|
||||
author= re.compile('<meta name="author" content="(.*?)"').findall(data)
|
||||
author = re.compile('<meta name="author" content="(.*?)"').findall(data)
|
||||
if author:
|
||||
meta['author'] = author
|
||||
fd, pdf = tempfile.mkstemp('.pdf')
|
||||
|
@ -113,7 +113,6 @@ def import_url(url):
|
|||
})
|
||||
meta['id'] = did
|
||||
r = api.editDocument(meta)
|
||||
print(r['data']['id'])
|
||||
os.unlink(pdf)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue