projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[YoutubeDL] use a more correct terminology in the error message for file:// URLs
[youtube-dl]
/
youtube_dl
/
extractor
/
safari.py
diff --git
a/youtube_dl/extractor/safari.py
b/youtube_dl/extractor/safari.py
index e9e33d0a3979a33c3a913d38a564c2d5f754cef5..7de7b7273523ea8a43a6d22e8ab684afb4fc5875 100644
(file)
--- a/
youtube_dl/extractor/safari.py
+++ b/
youtube_dl/extractor/safari.py
@@
-6,14
+6,12
@@
import re
from .common import InfoExtractor
from .brightcove import BrightcoveLegacyIE
from .common import InfoExtractor
from .brightcove import BrightcoveLegacyIE
-from ..compat import (
- compat_urllib_parse,
- compat_urllib_request,
-)
from ..utils import (
ExtractorError,
from ..utils import (
ExtractorError,
+ sanitized_Request,
smuggle_url,
std_headers,
smuggle_url,
std_headers,
+ urlencode_postdata,
)
)
@@
-58,8
+56,8
@@
class SafariBaseIE(InfoExtractor):
'next': '',
}
'next': '',
}
- request =
compat_urllib_request.
Request(
- self._LOGIN_URL,
compat_urllib_parse.urlencode
(login_form), headers=headers)
+ request =
sanitized_
Request(
+ self._LOGIN_URL,
urlencode_postdata
(login_form), headers=headers)
login_page = self._download_webpage(
request, None, 'Logging in as %s' % username)
login_page = self._download_webpage(
request, None, 'Logging in as %s' % username)