@@ -41,8 +41,8 @@ class VichanThreadExtractor(VichanExtractor):
|
||||
def __init__(self, match):
|
||||
VichanExtractor.__init__(self, match)
|
||||
index = match.lastindex
|
||||
self.board = match.group(index-1)
|
||||
self.thread = match.group(index)
|
||||
self.board = match[index-1]
|
||||
self.thread = match[index]
|
||||
|
||||
def items(self):
|
||||
url = "{}/{}/res/{}.json".format(self.root, self.board, self.thread)
|
||||
@@ -96,7 +96,7 @@ class VichanBoardExtractor(VichanExtractor):
|
||||
|
||||
def __init__(self, match):
|
||||
VichanExtractor.__init__(self, match)
|
||||
self.board = match.group(match.lastindex)
|
||||
self.board = match[match.lastindex]
|
||||
|
||||
def items(self):
|
||||
url = "{}/{}/threads.json".format(self.root, self.board)
|
||||
|
||||
Reference in New Issue
Block a user