add new item to importer to automatically set exact and case-sensitive match
authorMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Mon, 2 Feb 2009 12:05:09 +0000 (12:05 +0000)
committerMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Mon, 2 Feb 2009 12:05:09 +0000 (12:05 +0000)
autotimer/src/AutoTimerImporter.py

index f3c3d76..f8ec4e9 100644 (file)
@@ -132,13 +132,20 @@ class AutoTimerImporter(Screen):
                        ))
 
                if name != "":
-                       list.append(
+                       list.extend([
                                SelectionEntryComponent(
                                        _("Match title: %s") % (name),
                                        name,
                                        1,
                                        True
-                       ))
+                               ),
+                               SelectionEntryComponent(
+                                       _("Exact match"),
+                                       True,
+                                       8,
+                                       True
+                               )
+                       ])
 
                if begin and end:
                        begin = localtime(begin)
@@ -277,6 +284,9 @@ class AutoTimerImporter(Screen):
                                autotimer.destination = item[1]
                        elif item[2] == 7: # Tags
                                autotimer.tags = item[1]
+                       elif item[2] == 8: # Exact match
+                               autotimer.searchType = "exact"
+                               autotimer.searchCase = "sensitive"
 
                if autotimer.match == "":
                        self.session.openWithCallback(