X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=inline;f=youtube_dl%2Fextractor%2Fspankwire.py;h=bff75d6b2945584e0193b50ff8915b91fec26f1f;hb=97f4aecfc1c5fd446e1d3edd37e49aafe246fe0b;hp=45703ec254bee6d1c07cb8ddf2ad32ee1172aee7;hpb=9767726b6689e25540530b6551296aed43a0808e;p=youtube-dl.git diff --git a/youtube_dl/extractor/spankwire.py b/youtube_dl/extractor/spankwire.py index 45703ec25..bff75d6b2 100644 --- a/youtube_dl/extractor/spankwire.py +++ b/youtube_dl/extractor/spankwire.py @@ -3,13 +3,14 @@ from __future__ import unicode_literals import re from .common import InfoExtractor -from ..utils import ( +from ..compat import ( + compat_urllib_parse, compat_urllib_parse_urlparse, compat_urllib_request, - compat_urllib_parse, - unified_strdate, +) +from ..utils import ( str_to_int, - int_or_none, + unified_strdate, ) from ..aes import aes_decrypt_text @@ -26,7 +27,7 @@ class SpankwireIE(InfoExtractor): 'description': 'Crazy Bitch X rated music video.', 'uploader': 'oreusz', 'uploader_id': '124697', - 'upload_date': '20070508', + 'upload_date': '20070507', 'age_limit': 18, } } @@ -40,31 +41,42 @@ class SpankwireIE(InfoExtractor): req.add_header('Cookie', 'age_verified=1') webpage = self._download_webpage(req, video_id) - title = self._html_search_regex(r'