mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-19 14:49:15 +00:00
Change parsing of 'description'
This commit is contained in:
parent
d8d31be98e
commit
abd99c4f07
|
@ -1,6 +1,5 @@
|
||||||
import functools
|
import functools
|
||||||
import json
|
import json
|
||||||
# import time
|
|
||||||
from http.cookiejar import CookieJar
|
from http.cookiejar import CookieJar
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import urllib.request
|
import urllib.request
|
||||||
|
@ -396,7 +395,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
return {
|
return {
|
||||||
**traverse_obj(metadata, {
|
**traverse_obj(metadata, {
|
||||||
'description': ('seo', 'description', {clean_html}),
|
'description': ('seo', 'description', {str_or_none}),
|
||||||
'timestamp': ('episode', 'onTimeRaw', {parse_iso8601}),
|
'timestamp': ('episode', 'onTimeRaw', {parse_iso8601}),
|
||||||
'release_timestamp': ('episode', 'onTimeRaw', {parse_iso8601}),
|
'release_timestamp': ('episode', 'onTimeRaw', {parse_iso8601}),
|
||||||
'series': ('episode', 'program', 'title'),
|
'series': ('episode', 'program', 'title'),
|
||||||
|
|
Loading…
Reference in a new issue