aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-07-11 22:23:00 +0700
committerSergey M․ <dstftw@gmail.com>2014-07-11 22:23:00 +0700
commitaaefb347c0177d0b3f3fe6ade08fe4657479ee4c (patch)
tree023451c24d9bc81ca50a535bd565468d3e4b47f1 /youtube_dl/extractor
parent09018e19a596f3a39bf7d871d8bb14c185b2470b (diff)
[gorillavid] Fix embedded videos extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/gorillavid.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/gorillavid.py b/youtube_dl/extractor/gorillavid.py
index 50ef54cce..ca5f7c417 100644
--- a/youtube_dl/extractor/gorillavid.py
+++ b/youtube_dl/extractor/gorillavid.py
@@ -14,8 +14,8 @@ from ..utils import (
class GorillaVidIE(InfoExtractor):
IE_DESC = 'GorillaVid.in and daclips.in'
_VALID_URL = r'''(?x)
- https?://(?:www\.)?
- (?:daclips\.in|gorillavid\.in)/
+ https?://(?P<host>(?:www\.)?
+ (?:daclips\.in|gorillavid\.in))/
(?:embed-)?(?P<id>[0-9a-zA-Z]+)(?:-[0-9]+x[0-9]+\.html)?
'''
@@ -39,6 +39,7 @@ class GorillaVidIE(InfoExtractor):
},
}, {
'url': 'http://daclips.in/3rso4kdn6f9m',
+ 'md5': '1ad8fd39bb976eeb66004d3a4895f106',
'info_dict': {
'id': '3rso4kdn6f9m',
'ext': 'mp4',
@@ -51,7 +52,7 @@ class GorillaVidIE(InfoExtractor):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')
- webpage = self._download_webpage(url, video_id)
+ webpage = self._download_webpage('http://%s/%s' % (mobj.group('host'), video_id), video_id)
fields = dict(re.findall(r'''(?x)<input\s+
type="hidden"\s+