~ev/unity-lens-video/python3

« back to all changes in this revision

Viewing changes to src/unity-lens-video

  • Committer: David Callé
  • Date: 2012-03-17 16:54:47 UTC
  • Revision ID: davidc@framli.eu-20120317165447-p941efah39n54ose
Change strip to replace

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
            Gio.FILE_ATTRIBUTE_STANDARD_IS_HIDDEN,
285
285
            Gio.FileQueryInfoFlags.NONE,
286
286
            None).get_attribute_boolean('standard::is-hidden')
287
 
        blacklisted = None
 
287
        blacklisted = False
288
288
        for bt in blacklist:
289
 
            bt = bt.strip('dir-').encode("utf-8")
 
289
            bt = bt.replace('dir-/', '/').encode("utf-8")
290
290
            if uri.startswith(bt):
291
 
                blacklisted = 1
 
291
                blacklisted = True
292
292
        if hidden or uri.find('/.') > -1 or blacklisted:
293
293
            return True
294
294