mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-21 13:54:22 -07:00
Use urlencode_postdata across the codebase
This commit is contained in:
parent
15707c7e02
commit
6e6bc8dae5
36 changed files with 90 additions and 94 deletions
|
@ -5,11 +5,11 @@ import codecs
|
|||
import re
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..compat import compat_urllib_parse_urlencode
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
int_or_none,
|
||||
sanitized_Request,
|
||||
urlencode_postdata,
|
||||
)
|
||||
|
||||
|
||||
|
@ -41,7 +41,7 @@ class TubiTvIE(InfoExtractor):
|
|||
'username': username,
|
||||
'password': password,
|
||||
}
|
||||
payload = compat_urllib_parse_urlencode(form_data).encode('utf-8')
|
||||
payload = urlencode_postdata(form_data)
|
||||
request = sanitized_Request(self._LOGIN_URL, payload)
|
||||
request.add_header('Content-Type', 'application/x-www-form-urlencoded')
|
||||
login_page = self._download_webpage(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue