[tenor] rename 'content_description' to just 'description'

This commit is contained in:
Mike Fährmann
2025-03-08 10:05:49 +01:00
parent 486e307ecd
commit 52aa5bad4f
2 changed files with 2 additions and 1 deletions

View File

@@ -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)

View File

@@ -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:<div class=.+",