projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #7320 from remitamine/adobetv
[youtube-dl]
/
youtube_dl
/
extractor
/
sharesix.py
diff --git
a/youtube_dl/extractor/sharesix.py
b/youtube_dl/extractor/sharesix.py
index 7531e8325bf88e3d89958dca1107334c41b78c6c..f1ea9bdb208c79cb59c189c5a3b17a9e1dec460a 100644
(file)
--- a/
youtube_dl/extractor/sharesix.py
+++ b/
youtube_dl/extractor/sharesix.py
@@
-4,10
+4,10
@@
from __future__ import unicode_literals
import re
from .common import InfoExtractor
import re
from .common import InfoExtractor
+from ..compat import compat_urllib_parse
from ..utils import (
from ..utils import (
- compat_urllib_parse,
- compat_urllib_request,
parse_duration,
parse_duration,
+ sanitized_Request,
)
)
@@
-48,7
+48,7
@@
class ShareSixIE(InfoExtractor):
'method_free': 'Free'
}
post = compat_urllib_parse.urlencode(fields)
'method_free': 'Free'
}
post = compat_urllib_parse.urlencode(fields)
- req =
compat_urllib_request.
Request(url, post)
+ 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,