]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/movshare.py
Imported Upstream version 2015.02.28
[youtubedl] / youtube_dl / extractor / movshare.py
1 from __future__ import unicode_literals
2
3 from .novamov import NovaMovIE
4
5
6 class MovShareIE(NovaMovIE):
7 IE_NAME = 'movshare'
8 IE_DESC = 'MovShare'
9
10 _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'movshare\.(?:net|sx|ag)'}
11
12 _HOST = 'www.movshare.net'
13
14 _FILE_DELETED_REGEX = r'>This file no longer exists on our servers.<'
15 _TITLE_REGEX = r'<strong>Title:</strong> ([^<]+)</p>'
16 _DESCRIPTION_REGEX = r'<strong>Description:</strong> ([^<]+)</p>'
17
18 _TEST = {
19 'url': 'http://www.movshare.net/video/559e28be54d96',
20 'md5': 'abd31a2132947262c50429e1d16c1bfd',
21 'info_dict': {
22 'id': '559e28be54d96',
23 'ext': 'flv',
24 'title': 'dissapeared image',
25 'description': 'optical illusion dissapeared image magic illusion',
26 }
27 }