Vetting of peertube sites list

merge-requests/8/head
Bob Mottram 2020-12-24 12:39:54 +00:00
parent 2920890dff
commit 1f46af59a8
1 changed files with 0 additions and 12 deletions

View File

@ -28,18 +28,6 @@ def loadPeertubeInstances(baseDir: str, peertubeInstances: []) -> None:
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,
peertubeInstances: [],
width=400, height=300) -> str: