[tenor] rename 'content_description' to just 'description'
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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=.+",
|
||||
|
||||
Reference in New Issue
Block a user