diff --git a/youtube_dl/extractor/torrins.py b/youtube_dl/extractor/torrins.py index 70a0b31fa..a9a79a0ec 100644 --- a/youtube_dl/extractor/torrins.py +++ b/youtube_dl/extractor/torrins.py @@ -4,21 +4,10 @@ import re from .common import InfoExtractor from ..compat import ( - compat_HTTPError, compat_kwargs, - compat_str, - compat_urllib_request, - compat_urlparse, ) from ..utils import ( - determine_ext, - extract_attributes, ExtractorError, - float_or_none, - int_or_none, - js_to_json, - sanitized_Request, - unescapeHTML, urlencode_postdata, ) @@ -78,7 +67,7 @@ class TorrinsIE(InfoExtractor): if username is None: return - login_popup = self._download_webpage( + self._download_webpage( self._LOGIN_URL, None, 'Downloading login popup') def is_logged(reason): @@ -92,8 +81,6 @@ class TorrinsIE(InfoExtractor): if is_logged('Checking if already logged in'): return - #login_form = self._form_hidden_inputs('login-form', login_popup) - login_form = { 'email': username, 'password': password, @@ -122,7 +109,7 @@ class TorrinsIE(InfoExtractor): title = self._og_search_title(webpage) - video_json = self._html_search_regex(r"