More checks

This commit is contained in:
bashrc committed 2020-12-24 13:57:02 +00:00
1 parent 00eadf8423
commit 27f797c8af
1 file changed
+7
+7
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://', '')