1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-05 08:33:33 +08:00

Look for podcast description in generic extractor.

Tries sequentially to find common tags containing episode descriptions
for podcasts when using the generic extractor. Silently allows
description to be None if there are not any found.
This commit is contained in:
Cameron Rossington
2019-08-28 01:27:39 -04:00
committed by Cam.Rossington.MacAir
Unverified
parent e40c758c2a
commit d84347f367
+9
View File
@@ -2185,10 +2185,19 @@ class GenericIE(InfoExtractor):
if not next_url:
continue
description = None
for tag in ('description', 'content:encoded', 'itunes:summary', 'itunes:subtitle'):
try:
description = it.find(tag).text
break
except AttributeError:
pass
entries.append({
'_type': 'url_transparent',
'url': next_url,
'title': it.find('title').text,
'description': description
})
return {