diff --git a/publish.py b/publish.py index 805ea18..206e563 100644 --- a/publish.py +++ b/publish.py @@ -96,20 +96,6 @@ for folderinfo in index['folders']: htmlhome += "
  • {} [epub]
  • ".format(outfilename.replace('.md', '.html'),filetitle,outfilename.replace('.md', '.epub')) gmihome += "\n=> {} {}".format(outfilename.replace('.md', '.gmi').replace(' ', '%20'), filetitle) - elif fileextension == ".wav" or fileextension == ".3gp": - - # todo use builtin python library - outfilename = unidecode.unidecode(fileroot) + ".mp3" - subprocess.run(["ffmpeg", - "-i", - os.path.join(folderinfo['folder'], filename), - os.path.join('out/html', outfilename)]) - htmlhome += "
  • {}
  • ".format(filetitle, outfilename) - - elif fileextension == ".mp3": - shutil.copy(os.path.join(folderinfo['folder'], filename), os.path.join('out/html', outfilename)) - htmlhome += "
  • {}
  • ".format(filetitle, outfilename) - htmlhome += "\n" with open("out/html/index.html", "w", encoding="utf-8") as htmlindex: