Skip to content

Commit ed2dffa

Browse files
committed
Also handle lists inside of summary text
1 parent 846686c commit ed2dffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Contents/Code/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ def update(self, metadata, media, lang, force=False):
542542

543543

544544
#cleanup synopsis
545-
synopsis = re.sub(r'<([pP]|br|br ?/)>', '\n', synopsis)
546-
synopsis = re.sub(r'<(/?[iIuUbBpP])>', '', synopsis.strip())
545+
synopsis = re.sub(r'<([pP]|li|br|br ?/)>', '\n', synopsis)
546+
synopsis = re.sub(r'</?([iIuUbBpP]|li|ul)>', '', synopsis.strip())
547547

548548
self.Log('date: %s', date)
549549
self.Log('title: %s', title)

0 commit comments

Comments
 (0)