From 52aa5bad4f31daf47affb234a15684fdddb467a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 8 Mar 2025 10:05:49 +0100 Subject: [PATCH] [tenor] rename 'content_description' to just 'description' --- gallery_dl/extractor/tenor.py | 1 + test/results/tenor.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/tenor.py b/gallery_dl/extractor/tenor.py index 7971af90..978cbc44 100644 --- a/gallery_dl/extractor/tenor.py +++ b/gallery_dl/extractor/tenor.py @@ -44,6 +44,7 @@ class TenorExtractor(Extractor): url = fmt["url"] gif["width"], gif["height"] = fmt["dims"] gif["title"] = gif["h1_title"][:-4] + gif["description"] = gif.pop("content_description", "") gif["date"] = text.parse_timestamp(gif["created"]) if meta: gif.update(meta) diff --git a/test/results/tenor.py b/test/results/tenor.py index 5ef0f87c..e0bd1703 100644 --- a/test/results/tenor.py +++ b/test/results/tenor.py @@ -14,7 +14,7 @@ __tests__ = ( "#urls" : "https://media1.tenor.com/m/dlGgz3LRXEMAAAAC/moving.gif", "bg_color" : "", - "content_description": "an illustration of a tree with green leaves", + "description": "an illustration of a tree with green leaves", "created" : 1687512768.687436, "date" : "dt:2023-06-23 09:32:48", "embed" : r"re: