X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fgoldenmoustache.py;h=0fb5097244a6218afca0a0908448127f74073b77;hb=a8b7b26068fa8de9983ffef995ea6cd4fd3ce90a;hp=7e13b131ba7702bc0db40781a0e9942f721afeee;hpb=bbefcf04bf953a24d3cfaa3ac0eeab04589aed73;p=youtube-dl diff --git a/youtube_dl/extractor/goldenmoustache.py b/youtube_dl/extractor/goldenmoustache.py index 7e13b131b..0fb509724 100644 --- a/youtube_dl/extractor/goldenmoustache.py +++ b/youtube_dl/extractor/goldenmoustache.py @@ -1,11 +1,6 @@ from __future__ import unicode_literals -import re from .common import InfoExtractor -from ..utils import ( - parse_duration, - int_or_none, -) class GoldenMoustacheIE(InfoExtractor): @@ -19,7 +14,6 @@ class GoldenMoustacheIE(InfoExtractor): 'title': 'Suricate - Le Poker', 'description': 'md5:3d1f242f44f8c8cb0a106f1fd08e5dc9', 'thumbnail': 're:^https?://.*\.jpg$', - 'view_count': int, } }, { 'url': 'http://www.goldenmoustache.com/le-lab-tout-effacer-mc-fly-et-carlito-55249/', @@ -30,7 +24,6 @@ class GoldenMoustacheIE(InfoExtractor): 'title': 'Le LAB - Tout Effacer (Mc Fly et Carlito)', 'description': 'md5:9b7fbf11023fb2250bd4b185e3de3b2a', 'thumbnail': 're:^https?://.*\.(?:png|jpg)$', - 'view_count': int, } }] @@ -44,9 +37,6 @@ class GoldenMoustacheIE(InfoExtractor): r'(.*?)(?: - Golden Moustache)?', webpage, 'title') thumbnail = self._og_search_thumbnail(webpage) description = self._og_search_description(webpage) - view_count = int_or_none(self._html_search_regex( - r'([0-9]+)\s*VUES', - webpage, 'view count', fatal=False)) return { 'id': video_id, @@ -55,5 +45,4 @@ class GoldenMoustacheIE(InfoExtractor): 'title': title, 'description': description, 'thumbnail': thumbnail, - 'view_count': view_count, }