'match.group(N)' -> 'match[N]' (#7671)

2.5x faster
This commit is contained in:
Mike Fährmann
2025-06-18 12:59:37 +02:00
parent 475506cc39
commit 41191bb60a
135 changed files with 363 additions and 363 deletions

View File

@@ -60,7 +60,7 @@ class PornhubGalleryExtractor(PornhubExtractor):
def __init__(self, match):
PornhubExtractor.__init__(self, match)
self.gallery_id = match.group(1)
self.gallery_id = match[1]
self._first = None
def items(self):
@@ -141,7 +141,7 @@ class PornhubGifExtractor(PornhubExtractor):
def __init__(self, match):
PornhubExtractor.__init__(self, match)
self.gallery_id = match.group(1)
self.gallery_id = match[1]
def items(self):
url = "{}/gif/{}".format(self.root, self.gallery_id)