aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-08-11 23:52:17 +0700
committerSergey M․ <dstftw@gmail.com>2016-08-11 23:52:17 +0700
commit0fd1b1624cc42412fe4701f9de09f49adfa467f8 (patch)
treee248e130f1b49ffab66f201121bd5266ad783344
parent367976d49fba48ea44fc5bf622adcc989896f29a (diff)
[goldenmoustache] Remove extractor (Closes #10298)
Now uses dailymotion
-rw-r--r--youtube_dl/extractor/extractors.py2
-rw-r--r--youtube_dl/extractor/goldenmoustache.py48
2 files changed, 1 insertions, 49 deletions
diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py
index 387230be0..c0c18393f 100644
--- a/youtube_dl/extractor/extractors.py
+++ b/youtube_dl/extractor/extractors.py
@@ -311,7 +311,6 @@ from .globo import (
)
from .godtube import GodTubeIE
from .godtv import GodTVIE
-from .goldenmoustache import GoldenMoustacheIE
from .golem import GolemIE
from .googledrive import GoogleDriveIE
from .googleplus import GooglePlusIE
@@ -1004,6 +1003,7 @@ from .viki import (
VikiIE,
VikiChannelIE,
)
+from .viu import ViuIE
from .vk import (
VKIE,
VKUserVideosIE,
diff --git a/youtube_dl/extractor/goldenmoustache.py b/youtube_dl/extractor/goldenmoustache.py
deleted file mode 100644
index 0fb509724..000000000
--- a/youtube_dl/extractor/goldenmoustache.py
+++ /dev/null
@@ -1,48 +0,0 @@
-from __future__ import unicode_literals
-
-from .common import InfoExtractor
-
-
-class GoldenMoustacheIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?goldenmoustache\.com/(?P<display_id>[\w-]+)-(?P<id>\d+)'
- _TESTS = [{
- 'url': 'http://www.goldenmoustache.com/suricate-le-poker-3700/',
- 'md5': '0f904432fa07da5054d6c8beb5efb51a',
- 'info_dict': {
- 'id': '3700',
- 'ext': 'mp4',
- 'title': 'Suricate - Le Poker',
- 'description': 'md5:3d1f242f44f8c8cb0a106f1fd08e5dc9',
- 'thumbnail': 're:^https?://.*\.jpg$',
- }
- }, {
- 'url': 'http://www.goldenmoustache.com/le-lab-tout-effacer-mc-fly-et-carlito-55249/',
- 'md5': '27f0c50fb4dd5f01dc9082fc67cd5700',
- 'info_dict': {
- 'id': '55249',
- 'ext': 'mp4',
- 'title': 'Le LAB - Tout Effacer (Mc Fly et Carlito)',
- 'description': 'md5:9b7fbf11023fb2250bd4b185e3de3b2a',
- 'thumbnail': 're:^https?://.*\.(?:png|jpg)$',
- }
- }]
-
- def _real_extract(self, url):
- video_id = self._match_id(url)
- webpage = self._download_webpage(url, video_id)
-
- video_url = self._html_search_regex(
- r'data-src-type="mp4" data-src="([^"]+)"', webpage, 'video URL')
- title = self._html_search_regex(
- r'<title>(.*?)(?: - Golden Moustache)?</title>', webpage, 'title')
- thumbnail = self._og_search_thumbnail(webpage)
- description = self._og_search_description(webpage)
-
- return {
- 'id': video_id,
- 'url': video_url,
- 'ext': 'mp4',
- 'title': title,
- 'description': description,
- 'thumbnail': thumbnail,
- }