[Sync] + new Album sync

This commit is contained in:
Roman Timashev committed 2017-09-16 17:08:31 +03:00
1 parent 3c8f6418b5
commit 62982a9945
7 files changed
+307 -330

No files matched your search

+2 -2
View File
@@ -89,12 +89,12 @@ def create_date_and_title_from_folder_name(folder_name, date_formats=None):
return date, title
def create_post(md, image_path_fn):
async def create_post(md, image_path_fn):
html = lxml.html.fromstring(md)
for img in html.cssselect('img'):
src = img.get('src')
path = image_path_fn(src)
path = await image_path_fn(src)
if path:
img.set('src', path)