'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

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2019-2023 Mike Fährmann
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -21,7 +21,7 @@ class SlickpicExtractor(Extractor):
def __init__(self, match):
Extractor.__init__(self, match)
self.user = match.group(1)
self.user = match[1]
self.root = "https://{}.slickpic.com".format(self.user)
@@ -37,7 +37,7 @@ class SlickpicAlbumExtractor(SlickpicExtractor):
def __init__(self, match):
SlickpicExtractor.__init__(self, match)
self.album = match.group(2)
self.album = match[2]
def items(self):
data = self.metadata()