Fixed the ümläüts becäüse I älwäys förget äböüt them
This commit is contained in:
parent
57933a1815
commit
bccb1355b7
|
@ -5,6 +5,7 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
|
import codecs
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
import mutagen
|
import mutagen
|
||||||
|
@ -115,7 +116,7 @@ def make_mp4_cover(cover, path):
|
||||||
|
|
||||||
def make_mp4_chapters(chapters, path):
|
def make_mp4_chapters(chapters, path):
|
||||||
chap_path = "%s.chapters.txt" % os.path.splitext(path)[0]
|
chap_path = "%s.chapters.txt" % os.path.splitext(path)[0]
|
||||||
chapter_file = open(chap_path, 'w')
|
chapter_file = codecs.open(chap_path, 'w', 'utf-8')
|
||||||
lines = [u"%s %s\n" % (start_time, name) for start_time, name in chapters]
|
lines = [u"%s %s\n" % (start_time, name) for start_time, name in chapters]
|
||||||
chapter_file.writelines(lines)
|
chapter_file.writelines(lines)
|
||||||
chapter_file.close()
|
chapter_file.close()
|
||||||
|
|
Loading…
Reference in New Issue