1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 03:32:05 +00:00

[torrins] Removed function override

This commit is contained in:
Aniruddh Joshi 2018-03-28 02:35:47 +05:30 committed by GitHub
parent 83ab02db3e
commit de60d4966c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,7 @@ from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_kwargs,
)
from ..utils import (
ExtractorError,
urlencode_postdata,
@ -45,11 +43,6 @@ class TorrinsIE(InfoExtractor):
error_str += ' - %s' % error_data['formErrors']
raise ExtractorError(error_str, expected=True)
def _download_webpage(self, *args, **kwargs):
kwargs.setdefault('headers', {})['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4'
return super(TorrinsIE, self)._download_webpage(
*args, **compat_kwargs(kwargs))
def _real_initialize(self):
self._login()