diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-04-05 20:05:47 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-04-05 20:05:47 +0200 |
commit | 2a9e1e453ac1543426637d45bd59afe2783dc923 (patch) | |
tree | 9753d59c71bb55e537d1bfbe5900a4ebdb09d328 /youtube_dl/extractor/movshare.py | |
parent | ee1e199685fd7cc1161bc321b7cab6efa7afc295 (diff) | |
parent | 17c5a0077463240ec37aa6275ad65b6b0f79efeb (diff) |
Merge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'youtube_dl/extractor/movshare.py')
-rw-r--r-- | youtube_dl/extractor/movshare.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/youtube_dl/extractor/movshare.py b/youtube_dl/extractor/movshare.py new file mode 100644 index 000000000..4191cf7a0 --- /dev/null +++ b/youtube_dl/extractor/movshare.py @@ -0,0 +1,27 @@ +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|ag)'} + + _HOST = 'www.movshare.net' + + _FILE_DELETED_REGEX = r'>This file no longer exists on our servers.<' + _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 |