More than one invidious site

main2
Bob Mottram 2019-10-01 12:31:29 +01:00
parent c9ec8d4d17
commit 73d1a89977
1 changed files with 8 additions and 7 deletions

View File

@ -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>"
return content
videoSite='https://invidio.us'
invidiousSites=['https://invidio.us','axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion']
for videoSite in invidiousSites:
if '"'+videoSite in content:
url=content.split('"'+videoSite)[1]
if '"' in url: