aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/turbo.py
diff options
context:
space:
mode:
authorNaglis Jonaitis <[email protected]>2015-06-06 13:56:46 +0300
committerNaglis Jonaitis <[email protected]>2015-06-06 13:58:51 +0300
commita9e58ecd3fdfa93cdc8a7f9fc852dbbd0814d6a4 (patch)
treeb1d83ef7d01c0876b877294e2dab1e9d98de88d9 /youtube_dl/extractor/turbo.py
parent3d8e9573a470594df6fa471dc33c4c4b938b668a (diff)
downloadyoutube-dl-a9e58ecd3fdfa93cdc8a7f9fc852dbbd0814d6a4.tar.gz
youtube-dl-a9e58ecd3fdfa93cdc8a7f9fc852dbbd0814d6a4.zip
[turbo] Improve description extraction
`og:description` is empty for some videos.
Diffstat (limited to 'youtube_dl/extractor/turbo.py')
-rw-r--r--youtube_dl/extractor/turbo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/turbo.py b/youtube_dl/extractor/turbo.py
index 29703a8a9..7ae63a499 100644
--- a/youtube_dl/extractor/turbo.py
+++ b/youtube_dl/extractor/turbo.py
@@ -23,7 +23,7 @@ class TurboIE(InfoExtractor):
'ext': 'mp4',
'duration': 3715,
'title': 'Turbo du 07/09/2014 : Renault Twingo 3, Bentley Continental GT Speed, CES, Guide Achat Dacia... ',
- 'description': 'Retrouvez dans cette rubrique toutes les vidéos de l\'Turbo du 07/09/2014 : Renault Twingo 3, Bentley Continental GT Speed, CES, Guide Achat Dacia... ',
+ 'description': 'Turbo du 07/09/2014 : Renault Twingo 3, Bentley Continental GT Speed, CES, Guide Achat Dacia...',
'thumbnail': 're:^https?://.*\.jpg$',
}
}
@@ -42,7 +42,7 @@ class TurboIE(InfoExtractor):
title = xpath_text(item, './title', 'title')
duration = int_or_none(xpath_text(item, './durate', 'duration'))
thumbnail = xpath_text(item, './visuel_clip', 'thumbnail')
- description = self._og_search_description(webpage)
+ description = self._html_search_meta('description', webpage)
formats = []
get_quality = qualities(['3g', 'sd', 'hq'])