Remove tags if there is an image in the rss description

main
Bob Mottram 2020-10-11 11:05:06 +01:00
parent 82a89aa216
commit e13cec3bbc
1 changed files with 3 additions and 2 deletions

View File

@ -133,6 +133,7 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
translate['Read more...'] + '</a>'
# remove image dimensions
if '<img' in rssDescription:
rssDescription = removeHtmlTag(rssDescription, 'width')
rssDescription = removeHtmlTag(rssDescription, 'height')