forked from indymedia/epicyon
Vetting of peertube sites list
parent
2920890dff
commit
1f46af59a8
|
@ -28,18 +28,6 @@ def loadPeertubeInstances(baseDir: str, peertubeInstances: []) -> None:
|
||||||
peertubeInstances.append(url)
|
peertubeInstances.append(url)
|
||||||
|
|
||||||
|
|
||||||
def savePeertubeInstances(baseDir: str, peertubeInstances: []) -> None:
|
|
||||||
"""Saves peertube instances to file from the given list
|
|
||||||
"""
|
|
||||||
peertubeStr = ''
|
|
||||||
for url in peertubeInstances:
|
|
||||||
peertubeStr += url.strip() + '\n'
|
|
||||||
|
|
||||||
peertubeInstancesFilename = baseDir + '/accounts/peertube.txt'
|
|
||||||
with open(peertubeInstancesFilename, 'w+') as fp:
|
|
||||||
fp.write(peertubeStr)
|
|
||||||
|
|
||||||
|
|
||||||
def _addEmbeddedVideoFromSites(translate: {}, content: str,
|
def _addEmbeddedVideoFromSites(translate: {}, content: str,
|
||||||
peertubeInstances: [],
|
peertubeInstances: [],
|
||||||
width=400, height=300) -> str:
|
width=400, height=300) -> str:
|
||||||
|
|
Loading…
Reference in New Issue