diff options
author | rzhxeo <rzhxeo@users.noreply.github.com> | 2013-08-23 16:33:41 +0200 |
---|---|---|
committer | rzhxeo <rzhxeo@users.noreply.github.com> | 2013-08-23 16:33:41 +0200 |
commit | ce34e9ce5ec5cc403cf407ce8046b6271835cd6c (patch) | |
tree | 3712edf95b54c149d4289b587b59fb9bd5f52693 /youtube_dl/extractor/xhamster.py | |
parent | 67fb0c5495eb336e74da243e83a65acbf0a3dba8 (diff) |
XHamsterIE: Fix video extension
Cut off GET parameter
Diffstat (limited to 'youtube_dl/extractor/xhamster.py')
-rw-r--r-- | youtube_dl/extractor/xhamster.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index 0f1feeffd..5bedc25ce 100644 --- a/youtube_dl/extractor/xhamster.py +++ b/youtube_dl/extractor/xhamster.py @@ -36,7 +36,7 @@ class XHamsterIE(InfoExtractor): video_url = compat_urllib_parse.unquote(mobj.group('file')) else: video_url = mobj.group('server')+'/key='+mobj.group('file') - video_extension = video_url.split('.')[-1] + video_extension = video_url.split('.')[-1].split('?')[0] video_title = self._html_search_regex(r'<title>(?P<title>.+?) - xHamster\.com</title>', webpage, u'title') |