X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fxtube.py;h=1a6a7688d435bd275777aeb4ba5425cf56d00267;hb=4fb757d1e0dd9c2b08921e88aa348b3a34e14937;hp=03ad88bededd60a7d8462bb85e5a8cb23db381b2;hpb=2b35c9ef742bf261078ea10c6c0bba848db1a0df;p=youtube-dl diff --git a/youtube_dl/extractor/xtube.py b/youtube_dl/extractor/xtube.py index 03ad88bed..1a6a7688d 100644 --- a/youtube_dl/extractor/xtube.py +++ b/youtube_dl/extractor/xtube.py @@ -5,7 +5,6 @@ from .common import InfoExtractor from ..utils import ( compat_urllib_parse_urlparse, compat_urllib_request, - compat_urllib_parse, ) class XTubeIE(InfoExtractor): @@ -33,7 +32,7 @@ class XTubeIE(InfoExtractor): video_title = self._html_search_regex(r'
([^<]+)', webpage, u'description', default=None) + video_description = self._html_search_regex(r'

([^<]+)', webpage, u'description', fatal=False) video_url= self._html_search_regex(r'var videoMp4 = "([^"]+)', webpage, u'video_url').replace('\\/', '/') path = compat_urllib_parse_urlparse(video_url).path extension = os.path.splitext(path)[1][1:]