projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[__init__] Simplify colon presence check
[youtube-dl]
/
youtube_dl
/
extractor
/
miomio.py
diff --git
a/youtube_dl/extractor/miomio.py
b/youtube_dl/extractor/miomio.py
index ce391c759c22af0cb8949118b3915602197b9f47..170ebd9eb9e285f91e4b8bd85c05b13f745039a8 100644
(file)
--- a/
youtube_dl/extractor/miomio.py
+++ b/
youtube_dl/extractor/miomio.py
@@
-4,11
+4,11
@@
from __future__ import unicode_literals
import random
from .common import InfoExtractor
import random
from .common import InfoExtractor
-from ..compat import compat_urllib_request
from ..utils import (
xpath_text,
int_or_none,
ExtractorError,
from ..utils import (
xpath_text,
int_or_none,
ExtractorError,
+ sanitized_Request,
)
)
@@
-63,7
+63,7
@@
class MioMioIE(InfoExtractor):
'http://www.miomio.tv/mioplayer/mioplayerconfigfiles/xml.php?id=%s&r=%s' % (id, random.randint(100, 999)),
video_id)
'http://www.miomio.tv/mioplayer/mioplayerconfigfiles/xml.php?id=%s&r=%s' % (id, random.randint(100, 999)),
video_id)
- vid_config_request =
compat_urllib_request.
Request(
+ vid_config_request =
sanitized_
Request(
'http://www.miomio.tv/mioplayer/mioplayerconfigfiles/sina.php?{0}'.format(xml_config),
headers=http_headers)
'http://www.miomio.tv/mioplayer/mioplayerconfigfiles/sina.php?{0}'.format(xml_config),
headers=http_headers)