diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-22 17:37:00 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-22 17:37:00 +0600 |
commit | 1ad61430615b8552661ede21f2c3ce76c2e88d2d (patch) | |
tree | 383e1c242b9a7a0ba2de4daa5c2406b7444c2dd8 /youtube_dl/extractor/xfileshare.py | |
parent | 92da3cd84800bf285b5d2125421d0c8d6a4aff09 (diff) |
[xfileshare] Add support for powerwatch (Closes #8628)
Diffstat (limited to 'youtube_dl/extractor/xfileshare.py')
-rw-r--r-- | youtube_dl/extractor/xfileshare.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xfileshare.py b/youtube_dl/extractor/xfileshare.py index a3236e66c..94abdb4f3 100644 --- a/youtube_dl/extractor/xfileshare.py +++ b/youtube_dl/extractor/xfileshare.py @@ -17,7 +17,7 @@ class XFileShareIE(InfoExtractor): IE_DESC = 'XFileShare based sites: GorillaVid.in, daclips.in, movpod.in, fastvideo.in, realvid.net, filehoot.com and vidto.me' _VALID_URL = r'''(?x) https?://(?P<host>(?:www\.)? - (?:daclips\.in|gorillavid\.in|movpod\.in|fastvideo\.in|realvid\.net|filehoot\.com|vidto\.me))/ + (?:daclips\.in|gorillavid\.in|movpod\.in|fastvideo\.in|realvid\.net|filehoot\.com|vidto\.me|powerwatch\.pw))/ (?:embed-)?(?P<id>[0-9a-zA-Z]+)(?:-[0-9]+x[0-9]+\.html)? ''' @@ -81,6 +81,13 @@ class XFileShareIE(InfoExtractor): 'ext': 'mp4', 'title': 'test' } + }, { + 'url': 'http://powerwatch.pw/duecjibvicbu', + 'info_dict': { + 'id': 'duecjibvicbu', + 'ext': 'mp4', + 'title': 'Big Buck Bunny trailer', + }, }] def _real_extract(self, url): @@ -112,6 +119,7 @@ class XFileShareIE(InfoExtractor): title = (self._search_regex( [r'style="z-index: [0-9]+;">([^<]+)</span>', r'<td nowrap>([^<]+)</td>', + r'h4-fine[^>]*>([^<]+)<', r'>Watch (.+) ', r'<h2 class="video-page-head">([^<]+)</h2>'], webpage, 'title', default=None) or self._og_search_title(webpage)).strip() |