[pitivi] effects: Fix removal of unuseful words from names



commit 18e43700eecf00c0d2f3d2d190251f96f4353836
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Oct 10 09:30:49 2016 +0200

    effects: Fix removal of unuseful words from names
    
    Reviewed-by: Thibault Saunier <tsaunier gnome org>
    Differential Revision: https://phabricator.freedesktop.org/D1365

 pitivi/effects.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/effects.py b/pitivi/effects.py
index 0f48af0..982a59a 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -178,8 +178,9 @@ class EffectsManager(object):
         self.audio_effects = []
         self._effects = {}
 
-        uselessWords = [_("Video"), _("Audio"), _("Audio").lower(), _("effect")]
-        uselessRe = re.compile(" |".join(uselessWords))
+        useless_words = ["Video", "Audio", "audio", "effect",
+                         _("Video"), _("Audio"), _("Audio").lower(), _("effect")]
+        uselessRe = re.compile(" |".join(useless_words))
 
         factories = Gst.Registry.get().get_feature_list(Gst.ElementFactory)
         longnames = set()


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