[tenor] relax '/view/' URL pattern (#6075)

This commit is contained in:
Mike Fährmann
2025-03-08 15:54:46 +01:00
parent 52aa5bad4f
commit d6281b5685
2 changed files with 10 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ class TenorExtractor(Extractor):
class TenorImageExtractor(TenorExtractor):
subcategory = "image"
pattern = BASE_PATTERN + r"view/(?:[\w-]*-)?(\d+)"
pattern = BASE_PATTERN + r"view/(?:[^/?#]*-)?(\d+)"
example = "https://tenor.com/view/SLUG-1234567890"
def gifs(self):