diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-04-05 16:09:03 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-04-05 16:09:03 +0700 |
commit | 1ff7c0f7d804dedb9186490f2d61c773e62650c5 (patch) | |
tree | 1f08f4f9b5867d3c7a6d11d39d65f089af895390 /youtube_dl | |
parent | 610e47c87e23bcadb5ef74ed4d008fc5f2a66302 (diff) |
[movshare] Add support for movshare.net
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/__init__.py | 1 | ||||
-rw-r--r-- | youtube_dl/extractor/movshare.py | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py index f8de85b27..689f94f67 100644 --- a/youtube_dl/extractor/__init__.py +++ b/youtube_dl/extractor/__init__.py @@ -156,6 +156,7 @@ from .mofosex import MofosexIE from .mooshare import MooshareIE from .morningstar import MorningstarIE from .motorsport import MotorsportIE +from .movshare import MovShareIE from .mtv import ( MTVIE, MTVIggyIE, diff --git a/youtube_dl/extractor/movshare.py b/youtube_dl/extractor/movshare.py new file mode 100644 index 000000000..2cf8b64bb --- /dev/null +++ b/youtube_dl/extractor/movshare.py @@ -0,0 +1,26 @@ +from __future__ import unicode_literals + +from .novamov import NovaMovIE + + +class MovShareIE(NovaMovIE): + IE_NAME = 'movshare' + IE_DESC = 'MovShare' + + _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'movshare\.(?:net|sx)'} + + _HOST = 'www.movshare.net' + + _TITLE_REGEX = r'<strong>Title:</strong> ([^<]+)</p>' + _DESCRIPTION_REGEX = r'<strong>Description:</strong> ([^<]+)</p>' + + _TEST = { + 'url': 'http://www.movshare.net/video/559e28be54d96', + 'md5': 'abd31a2132947262c50429e1d16c1bfd', + 'info_dict': { + 'id': '559e28be54d96', + 'ext': 'flv', + 'title': 'dissapeared image', + 'description': 'optical illusion dissapeared image magic illusion', + } + }
\ No newline at end of file |