mirror of https://gitlab.com/bashrc2/epicyon
More than one invidious site
parent
c9ec8d4d17
commit
73d1a89977
|
@ -1519,7 +1519,8 @@ def addEmbeddedVideoFromSites(translate: {},content: str,width=400,height=300) -
|
||||||
content=content+"<center><iframe src=\""+videoSite+url+"\" width=\""+str(width)+"\" height=\""+str(height)+"\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe></center>"
|
content=content+"<center><iframe src=\""+videoSite+url+"\" width=\""+str(width)+"\" height=\""+str(height)+"\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe></center>"
|
||||||
return content
|
return content
|
||||||
|
|
||||||
videoSite='https://invidio.us'
|
invidiousSites=['https://invidio.us','axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion']
|
||||||
|
for videoSite in invidiousSites:
|
||||||
if '"'+videoSite in content:
|
if '"'+videoSite in content:
|
||||||
url=content.split('"'+videoSite)[1]
|
url=content.split('"'+videoSite)[1]
|
||||||
if '"' in url:
|
if '"' in url:
|
||||||
|
|
Loading…
Reference in New Issue