update 'match.lastindex' usage

This commit is contained in:
Mike Fährmann
2025-06-18 16:58:25 +02:00
parent 41191bb60a
commit b0580aba86
16 changed files with 126 additions and 219 deletions

View File

@@ -24,9 +24,8 @@ class NitterExtractor(BaseExtractor):
self.cookies_domain = self.root.partition("://")[2]
BaseExtractor.__init__(self, match)
lastindex = match.lastindex
self.user = match[lastindex]
self.user_id = match[lastindex + 1]
self.user = self.groups[-2]
self.user_id = self.groups[-1]
self.user_obj = None
def items(self):