diff options
| author | Sergey M․ <dstftw@gmail.com> | 2016-03-26 01:46:57 +0600 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2016-03-26 01:46:57 +0600 | 
| commit | 15707c7e024f1f29e7abd8ddaa362196ef2d4af6 (patch) | |
| tree | 25f149d9df1cf58a171ecf765dd3cd5d0a20f87b /youtube_dl/extractor/funimation.py | |
| parent | 2156f16ca7babde4c5fa813dbe4e7ac1a2f758d1 (diff) | |
[compat] Add compat_urllib_parse_urlencode and eliminate encode_dict
encode_dict functionality has been improved and moved directly into compat_urllib_parse_urlencode
All occurrences of compat_urllib_parse.urlencode throughout the codebase have been replaced by compat_urllib_parse_urlencode
Closes #8974
Diffstat (limited to 'youtube_dl/extractor/funimation.py')
| -rw-r--r-- | youtube_dl/extractor/funimation.py | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/funimation.py b/youtube_dl/extractor/funimation.py index 0f37ed786..1eb528f31 100644 --- a/youtube_dl/extractor/funimation.py +++ b/youtube_dl/extractor/funimation.py @@ -5,7 +5,6 @@ from .common import InfoExtractor  from ..utils import (      clean_html,      determine_ext, -    encode_dict,      int_or_none,      sanitized_Request,      ExtractorError, @@ -54,10 +53,10 @@ class FunimationIE(InfoExtractor):          (username, password) = self._get_login_info()          if username is None:              return -        data = urlencode_postdata(encode_dict({ +        data = urlencode_postdata({              'email_field': username,              'password_field': password, -        })) +        })          login_request = sanitized_Request('http://www.funimation.com/login', data, headers={              'User-Agent': 'Mozilla/5.0 (Windows NT 5.2; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0',              'Content-Type': 'application/x-www-form-urlencoded'  | 
