Make rip debug encode use the extension from profile by default
This commit is contained in:
@@ -151,6 +151,9 @@ class Encode(logcommand.LogCommand):
|
|||||||
default=default)
|
default=default)
|
||||||
|
|
||||||
def do(self, args):
|
def do(self, args):
|
||||||
|
from morituri.common import encode
|
||||||
|
profile = encode.ALL_PROFILES[self.options.profile]()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fromPath = unicode(args[0])
|
fromPath = unicode(args[0])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
@@ -160,12 +163,10 @@ class Encode(logcommand.LogCommand):
|
|||||||
try:
|
try:
|
||||||
toPath = unicode(args[1])
|
toPath = unicode(args[1])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
toPath = fromPath + '.' + self.options.profile
|
toPath = fromPath + '.' + profile.extension
|
||||||
|
|
||||||
runner = task.SyncRunner()
|
runner = task.SyncRunner()
|
||||||
|
|
||||||
from morituri.common import encode
|
|
||||||
profile = encode.ALL_PROFILES[self.options.profile]()
|
|
||||||
self.debug('Encoding %s to %s',
|
self.debug('Encoding %s to %s',
|
||||||
fromPath.encode('utf-8'),
|
fromPath.encode('utf-8'),
|
||||||
toPath.encode('utf-8'))
|
toPath.encode('utf-8'))
|
||||||
|
|||||||
Reference in New Issue
Block a user