projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[compat] Add compat_urllib_parse_urlencode and eliminate encode_dict
[youtube-dl]
/
youtube_dl
/
extractor
/
comedycentral.py
diff --git
a/youtube_dl/extractor/comedycentral.py
b/youtube_dl/extractor/comedycentral.py
index 5b1b99675c760a7249bcdb23ff3072af86710114..0c59102e072594857cc0f1c53e15c183b1885a93 100644
(file)
--- a/
youtube_dl/extractor/comedycentral.py
+++ b/
youtube_dl/extractor/comedycentral.py
@@
-5,7
+5,7
@@
import re
from .mtv import MTVServicesInfoExtractor
from ..compat import (
compat_str,
from .mtv import MTVServicesInfoExtractor
from ..compat import (
compat_str,
- compat_urllib_parse,
+ compat_urllib_parse
_urlencode
,
)
from ..utils import (
ExtractorError,
)
from ..utils import (
ExtractorError,
@@
-201,7
+201,7
@@
class ComedyCentralShowsIE(MTVServicesInfoExtractor):
# Correct cc.com in uri
uri = re.sub(r'(episode:[^.]+)(\.cc)?\.com', r'\1.com', uri)
# Correct cc.com in uri
uri = re.sub(r'(episode:[^.]+)(\.cc)?\.com', r'\1.com', uri)
- index_url = 'http://%s.cc.com/feeds/mrss?%s' % (show_name, compat_urllib_parse
.
urlencode({'uri': uri}))
+ index_url = 'http://%s.cc.com/feeds/mrss?%s' % (show_name, compat_urllib_parse
_
urlencode({'uri': uri}))
idoc = self._download_xml(
index_url, epTitle,
'Downloading show index', 'Unable to download episode index')
idoc = self._download_xml(
index_url, epTitle,
'Downloading show index', 'Unable to download episode index')