More checks

main
Bob Mottram 2020-12-24 13:57:02 +00:00
parent 00eadf8423
commit 27f797c8af
1 changed files with 7 additions and 0 deletions

View File

@ -138,6 +138,13 @@ def _addEmbeddedVideoFromSites(translate: {}, content: str,
'exode.me',
'peertube.video')
for site in peerTubeSites:
site = site.strip()
if not site:
continue
if len(site) < 5:
continue
if '.' not in site:
continue
siteStr = site
if site.startswith('http://'):
site = site.replace('http://', '')