X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/youtubedl/blobdiff_plain/540fd68c40df72763aee5d75598675c45cfa9aba..929d540d5979815dd13aa119b6fdb41454907d0c:/youtube_dl/extractor/primesharetv.py diff --git a/youtube_dl/extractor/primesharetv.py b/youtube_dl/extractor/primesharetv.py deleted file mode 100644 index 01cc3d9..0000000 --- a/youtube_dl/extractor/primesharetv.py +++ /dev/null @@ -1,69 +0,0 @@ -from __future__ import unicode_literals - -import re - -from .common import InfoExtractor -from ..compat import ( - compat_urllib_parse, - compat_urllib_request, -) -from ..utils import ExtractorError - - -class PrimeShareTVIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?primeshare\.tv/download/(?P[\da-zA-Z]+)' - - _TEST = { - 'url': 'http://primeshare.tv/download/238790B611', - 'md5': 'b92d9bf5461137c36228009f31533fbc', - 'info_dict': { - 'id': '238790B611', - 'ext': 'mp4', - 'title': 'Public Domain - 1960s Commercial - Crest Toothpaste-YKsuFona', - }, - } - - def _real_extract(self, url): - video_id = self._match_id(url) - - webpage = self._download_webpage(url, video_id) - - if '>File not exist<' in webpage: - raise ExtractorError('Video %s does not exist' % video_id, expected=True) - - fields = dict(re.findall(r'''(?x)Watch\s*(?: )?\s*\((.+?)(?:\s*\[\.\.\.\])?\)\s*(?: )?\s*', - video_page, 'title') - - return { - 'id': video_id, - 'url': video_url, - 'title': title, - 'ext': 'mp4', - }