migration wip

This commit is contained in:
2021-08-20 12:30:52 +03:00
parent 3075dbb64b
commit f756cb9fb6
3 changed files with 4 additions and 2 deletions

View File

@@ -75,8 +75,6 @@ def migrate(entry):
r['body'] = '<ShoutVideo src=\"' + entry['media'][0]['youtubeId'] + '\" />'
elif entry.get('type') == 'Music':
r['body'] = '<ShoutMusic media={\"' + json.dumps(entry['media']) +'\"} />'
else entry.get('type') == 'Image':
r['body'] = r['body']
else:
r['body'] = '## ' + r['title']
# TODO: compile md with graymatter