Fix several issues in the gstreamer removal PR

Patch by JoeLametta
This commit is contained in:
Merlijn Wajer
2017-04-23 22:32:05 +02:00
parent e7767694af
commit 304c66876b
6 changed files with 3 additions and 25 deletions

View File

@@ -31,7 +31,6 @@ import gobject
gobject.threads_init()
from morituri.command.basecommand import BaseCommand
from morituri.common import encode
from morituri.common import (
accurip, common, config, drive, program, task
)
@@ -510,7 +509,8 @@ Log files will log the path to tracks relative to this directory.
logger.debug('writing m3u file for %r', discName)
m3uPath = u'%s.m3u' % discName
handle = open(m3uPath, 'w')
handle.write(u'#EXTM3U\n')
u = u'#EXTM3U\n'
handle.write(u.encode('utf-8'))
def writeFile(handle, path, length):
targetPath = common.getRelativePath(path, m3uPath)