From 925e4b234275eb8e46c803a14587c90198f51d92 Mon Sep 17 00:00:00 2001 From: xantares Date: Sat, 15 Nov 2014 12:49:00 +0100 Subject: [PATCH] [goldenmoustache] Fix title extraction on all categories --- youtube_dl/extractor/goldenmoustache.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/goldenmoustache.py b/youtube_dl/extractor/goldenmoustache.py index f2e231bf4..ba88e8049 100644 --- a/youtube_dl/extractor/goldenmoustache.py +++ b/youtube_dl/extractor/goldenmoustache.py @@ -16,7 +16,7 @@ class GoldenMoustacheIE(InfoExtractor): 'info_dict': { 'id': '3700', 'ext': 'mp4', - 'title': 'Suricate - Le Poker', + 'title': 'Suricate - Le Poker - Golden Moustache', 'description': 'md5:3d1f242f44f8c8cb0a106f1fd08e5dc9', 'thumbnail': 're:^https?://.*\.jpg$', 'view_count': int, @@ -29,8 +29,9 @@ class GoldenMoustacheIE(InfoExtractor): video_url = self._html_search_regex( r'data-src-type="mp4" data-src="([^"]+)"', webpage, 'video URL') - title = self._html_search_regex( - r'(.*?) - Golden Moustache', webpage, 'title') + + title = self._og_search_title(webpage) + thumbnail = self._og_search_thumbnail(webpage) description = self._og_search_description(webpage) view_count = int_or_none(self._html_search_regex(