summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Suster <carl@contraflo.ws>2017-01-09 11:57:13 +1100
committerCarl Suster <carl@contraflo.ws>2017-01-12 12:19:43 +1100
commit14d1c8d4ff4bbf5b942d553fa8638decef9f41c9 (patch)
tree32d23640bcf6805465b227a9dcba473ba506263b
parent124074ce42e5d83c71e028a8757afb392cc96548 (diff)
set message_id properly in expat parser
Upstream had a typo in the expat parser wrapper which called the non-existent message_id() when set_message_id() was intended. Forwarded: https://github.com/ericflo/pynzb/pull/4
-rw-r--r--pynzb/expat_nzb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pynzb/expat_nzb.py b/pynzb/expat_nzb.py
index 5c1b096..313dee6 100644
--- a/pynzb/expat_nzb.py
+++ b/pynzb/expat_nzb.py
@@ -22,7 +22,7 @@ class ExpatNZBParser(BaseNZBParser):
elif name == 'group':
self.current_file.add_group(self.current_data)
elif name == 'segment':
- self.current_segment.message_id(self.current_data)
+ self.current_segment.set_message_id(self.current_data)
self.current_file.add_segment(self.current_segment)
def char_data(self, data):