From e18c198db320a7e587819cbcd1d453fb250e65d3 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 24 Dec 2012 12:55:53 +0100 Subject: [PATCH] 'exclude' parameter is case insensitive --- contrib/downloadboob/downloadboob.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/downloadboob/downloadboob.py b/contrib/downloadboob/downloadboob.py index 54aa1d9a..dc997354 100755 --- a/contrib/downloadboob/downloadboob.py +++ b/contrib/downloadboob/downloadboob.py @@ -96,7 +96,7 @@ class Downloadboob: if not self.is_downloaded(video): self.backend.fill_video(video, ('url','title', 'url', 'duration')) - if not(self.is_excluded(video.title, title_exclude)): + if not(self.is_excluded(video.title.lower(), title_exclude)): print " %s\n Id:%s\n Duration:%s" % (video.title, video.id, video.duration) videos.append(video) else: @@ -113,7 +113,7 @@ class Downloadboob: def is_excluded(self, title, title_exclude): for exclude in title_exclude: - if title.find(exclude) > -1: + if title.find(exclude.lower()) > -1: return True return False