From: Chris Read Date: Wed, 5 Jul 2017 06:24:29 +0000 (+0000) Subject: Fix issues with source listings including leading spaces in program names X-Git-Url: https://code.delx.au/webdl/commitdiff_plain/ae91049176e88457a41400d670cddd482c414da6 Fix issues with source listings including leading spaces in program names Approved-by: delx --- diff --git a/autograbber.py b/autograbber.py index f291e0b..c1e3fa2 100755 --- a/autograbber.py +++ b/autograbber.py @@ -33,11 +33,11 @@ class DownloadList(object): shutil.move(old_filename, HISTORY_FILENAME) def has_seen(self, node): - return node.title in self.seen_list + return node.title.strip() in self.seen_list def mark_seen(self, node): - self.seen_list.add(node.title) - self.f.write(node.title + "\n") + self.seen_list.add(node.title.strip()) + self.f.write(node.title.strip() + "\n") self.f.flush()