mirror of https://gitlab.com/bashrc2/epicyon
Vetting of peertube sites list
parent
2920890dff
commit
1f46af59a8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue