remove debug

This commit is contained in:
j 2018-11-16 12:52:19 +00:00
parent 2cd1d85702
commit 03a91e755e

View file

@ -102,7 +102,7 @@ def import_url(url):
title = re.compile('<title>(.*?)</title>').findall(data) title = re.compile('<title>(.*?)</title>').findall(data)
if title: if title:
meta['title'] = title[0] meta['title'] = title[0]
author= re.compile('<meta name="author" content="(.*?)"').findall(data) author = re.compile('<meta name="author" content="(.*?)"').findall(data)
if author: if author:
meta['author'] = author meta['author'] = author
fd, pdf = tempfile.mkstemp('.pdf') fd, pdf = tempfile.mkstemp('.pdf')
@ -113,7 +113,6 @@ def import_url(url):
}) })
meta['id'] = did meta['id'] = did
r = api.editDocument(meta) r = api.editDocument(meta)
print(r['data']['id'])
os.unlink(pdf) os.unlink(pdf)