diff --git a/webapp_media.py b/webapp_media.py index 9eb2038b1..eef86da37 100644 --- a/webapp_media.py +++ b/webapp_media.py @@ -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: