[tenor] support URLs with language codes (#6075)

This commit is contained in:
Mike Fährmann
2025-03-07 11:17:27 +01:00
parent fac4ef5679
commit 639ddc95e7
2 changed files with 14 additions and 4 deletions

View File

@@ -68,6 +68,11 @@ __tests__ = (
"#urls" : "https://media.tenor.com/dlGgz3LRXEMAAAAx/moving.webp",
},
{
"#url" : "https://tenor.com/ja/view/moving-gif-8525772382434057283",
"#class": tenor.TenorImageExtractor,
},
{
"#url" : "https://tenor.com/search/trees-gifs",
"#class" : tenor.TenorSearchExtractor,
@@ -78,6 +83,11 @@ __tests__ = (
"search_tags": "trees",
},
{
"#url" : "https://tenor.com/en-GB/search/trees-gifs",
"#class": tenor.TenorSearchExtractor,
},
{
"#url" : "https://tenor.com/search/trees-water-wind-sun-%3C&%3E-gifs",
"#class" : tenor.TenorSearchExtractor,