1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-30 19:02:55 +01:00

[24video] Fix description extraction

This commit is contained in:
Sergey M․ 2016-05-20 08:53:04 +06:00
parent a001296703
commit f6e588afc0
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -47,7 +47,8 @@ class TwentyFourVideoIE(InfoExtractor):
title = self._og_search_title(webpage) title = self._og_search_title(webpage)
description = self._html_search_regex( description = self._html_search_regex(
r'<span itemprop="description">([^<]+)</span>', webpage, 'description', fatal=False) r'<(p|span)[^>]+itemprop="description"[^>]*>(?P<description>[^<]+)</\1>',
webpage, 'description', fatal=False, group='description')
thumbnail = self._og_search_thumbnail(webpage) thumbnail = self._og_search_thumbnail(webpage)
duration = int_or_none(self._og_search_property( duration = int_or_none(self._og_search_property(
'duration', webpage, 'duration', fatal=False)) 'duration', webpage, 'duration', fatal=False))