feeds: fix multi rules parsing

master
pictuga 2018-11-11 15:21:43 +01:00
parent 401dfbc1ff
commit 75f691b009
1 changed files with 4 additions and 1 deletions

View File

@ -115,8 +115,11 @@ class ParserBase(object):
else: else:
key = 0 key = 0
len_items = len(rules['items'])
for arg in self.rules.keys(): for arg in self.rules.keys():
if isinstance(self.rules[arg], list): if (isinstance(self.rules[arg], list)
and len(self.rules[arg]) == len_items):
self.rules[arg] = self.rules[arg][key] self.rules[arg] = self.rules[arg][key]
def parse(self, raw): def parse(self, raw):