[transmageddon] Continue work on DVD ripping support



commit 12554510e110ddab1c448d78526c9c2369a7916a
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date:   Fri Mar 29 15:56:22 2013 +0100

    Continue work on DVD ripping support

 src/transmageddon.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/transmageddon.py b/src/transmageddon.py
index adaef3c..816b19c 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -43,7 +43,7 @@ import about
 import presets
 import utils
 import datetime
-import langchooser
+import langchooser, dvdtrackchooser
 
 major, minor, patch, micro = Gst.version()
 if (major == 1) and (patch < 0):
@@ -633,6 +633,10 @@ class TransmageddonUI(Gtk.ApplicationWindow):
                    if streamid not in self.audiostreamids:
                        self.audiostreamcounter=self.audiostreamcounter+1
                        self.audiostreamids.append(streamid)
+
+           # Will use language code if found, if not it will assume that it is a free 
+           # form language description.
+
                        languagedata=i.get_language()
                        if languagedata != None:
                            if GstTag.tag_check_language_code(languagedata):
@@ -640,10 +644,7 @@ class TransmageddonUI(Gtk.ApplicationWindow):
                                languagename=GstTag.tag_get_language_name(languagedata)
                            else:
                                languagecode = False
-                               languagename = languagedata
-                       else:
-                               languagecode = False
-                               languagename = _("Unknown")            
+                               languagename = languagedata            
 
                        self.haveaudio=True
                        self.audiodata.append(self.add_audiodata_row(i.get_channels(), i.get_sample_rate(), 
i.get_caps(), False, streamid, False, False, languagename, languagecode))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]