projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'akamai_pv' of https://github.com/remitamine/youtube-dl into remitamine...
[youtube-dl]
/
youtube_dl
/
extractor
/
sharesix.py
diff --git
a/youtube_dl/extractor/sharesix.py
b/youtube_dl/extractor/sharesix.py
index 7531e8325bf88e3d89958dca1107334c41b78c6c..9cce5ceb43b71877202a77067458a39e5a810432 100644
(file)
--- a/
youtube_dl/extractor/sharesix.py
+++ b/
youtube_dl/extractor/sharesix.py
@@
-5,9
+5,9
@@
import re
from .common import InfoExtractor
from ..utils import (
from .common import InfoExtractor
from ..utils import (
- compat_urllib_parse,
- compat_urllib_request,
parse_duration,
parse_duration,
+ sanitized_Request,
+ urlencode_postdata,
)
)
@@
-47,8
+47,8
@@
class ShareSixIE(InfoExtractor):
fields = {
'method_free': 'Free'
}
fields = {
'method_free': 'Free'
}
- post =
compat_urllib_parse.urlencode
(fields)
- req =
compat_urllib_request.
Request(url, post)
+ post =
urlencode_postdata
(fields)
+ req =
sanitized_
Request(url, post)
req.add_header('Content-type', 'application/x-www-form-urlencoded')
webpage = self._download_webpage(req, video_id,
req.add_header('Content-type', 'application/x-www-form-urlencoded')
webpage = self._download_webpage(req, video_id,