[SCM] morituri/master: Make rip debug encode use the extension from profile by default
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:10:15 UTC 2014
The following commit has been merged in the master branch:
commit 87a424c03a54fe2d359e16d08e9dfbc8d550b5bc
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Sat Nov 23 16:55:12 2013 -0500
Make rip debug encode use the extension from profile by default
diff --git a/morituri/rip/debug.py b/morituri/rip/debug.py
index 678e64b..68a57cc 100644
--- a/morituri/rip/debug.py
+++ b/morituri/rip/debug.py
@@ -151,6 +151,9 @@ class Encode(logcommand.LogCommand):
default=default)
def do(self, args):
+ from morituri.common import encode
+ profile = encode.ALL_PROFILES[self.options.profile]()
+
try:
fromPath = unicode(args[0])
except IndexError:
@@ -160,12 +163,10 @@ class Encode(logcommand.LogCommand):
try:
toPath = unicode(args[1])
except IndexError:
- toPath = fromPath + '.' + self.options.profile
+ toPath = fromPath + '.' + profile.extension
runner = task.SyncRunner()
- from morituri.common import encode
- profile = encode.ALL_PROFILES[self.options.profile]()
self.debug('Encoding %s to %s',
fromPath.encode('utf-8'),
toPath.encode('utf-8'))
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list