diff --git a/pirate-get.py b/pirate-get.py index 1d8fcd0..9f81509 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -266,9 +266,9 @@ def remote(args, mirror): def local(db, search): - xml = open(db).read() - parser = BaParser(search) - parser.feed(xml) + xml = open(db).readlines() + parser = BayParser(' '.join(search)) + parser.feed(''.join(xml)) return parser.results