mirror of https://gitlab.com/bashrc2/epicyon
More checks
parent
00eadf8423
commit
27f797c8af
|
@ -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://', '')
|
||||
|
|
Loading…
Reference in New Issue