From cb798dc554124724e7d26925f5ce94f4df6948fb Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Fri, 8 Jul 2022 10:42:33 +0300 Subject: [PATCH] fix --- migration/content/.gitkeep | 0 migration/content/article/.gitkeep | 0 migration/content/image/.gitkeep | 0 migration/content/music/.gitkeep | 0 migration/content/prose/.gitkeep | 0 migration/content/video/.gitkeep | 0 migration/extract.py | 2 +- 7 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 migration/content/.gitkeep delete mode 100644 migration/content/article/.gitkeep delete mode 100644 migration/content/image/.gitkeep delete mode 100644 migration/content/music/.gitkeep delete mode 100644 migration/content/prose/.gitkeep delete mode 100644 migration/content/video/.gitkeep diff --git a/migration/content/.gitkeep b/migration/content/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/migration/content/article/.gitkeep b/migration/content/article/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/migration/content/image/.gitkeep b/migration/content/image/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/migration/content/music/.gitkeep b/migration/content/music/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/migration/content/prose/.gitkeep b/migration/content/prose/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/migration/content/video/.gitkeep b/migration/content/video/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/migration/extract.py b/migration/extract.py index 17f0be50..55cc5d0c 100644 --- a/migration/extract.py +++ b/migration/extract.py @@ -256,7 +256,7 @@ def extract_html(entry): # else: print('[extract] cover: ' + cover) title = m.get('title','').replace('\n', ' ').replace(' ', ' ') u = m.get('thumborId') or cover or '' - addon = '

' + title + '

\n' + if title: addon += '

' + title + '

\n' if not u.startswith('http'): u = s3 + u if not u: print('[extract] no image url for ' + str(m)) if 'cloudinary' in u: u = 'img/lost.svg'