aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/crunchyroll.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-20 17:20:39 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-20 17:20:39 +0100
commit79fed2a4dfb9be350671632b8e0364cbed9dc83c (patch)
treefad56b4bbd505017eeb558b09ff0f362a487b413 /youtube_dl/extractor/crunchyroll.py
parent304cbe981e9f3b62288abc54bd84b0eaef286795 (diff)
[crunchyroll] Fix test (#1721)
Diffstat (limited to 'youtube_dl/extractor/crunchyroll.py')
-rw-r--r--youtube_dl/extractor/crunchyroll.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py
index 4bd366079..2b66bddbb 100644
--- a/youtube_dl/extractor/crunchyroll.py
+++ b/youtube_dl/extractor/crunchyroll.py
@@ -24,7 +24,7 @@ class CrunchyrollIE(InfoExtractor):
u'file': u'645513.flv',
#u'md5': u'b1639fd6ddfaa43788c85f6d1dddd412',
u'info_dict': {
- u'title': u'Wanna be the Strongest in the World – Episode 1 – An Idol-Wrestler is Born!',
+ u'title': u'Wanna be the Strongest in the World Episode 1 – An Idol-Wrestler is Born!',
u'description': u'md5:2d17137920c64f2f49981a7797d275ef',
u'thumbnail': u'http://img1.ak.crunchyroll.com/i/spire1-tmb/20c6b5e10f1a47b10516877d3c039cae1380951166_full.jpg',
u'uploader': u'Yomiuri Telecasting Corporation (YTV)',
@@ -37,9 +37,9 @@ class CrunchyrollIE(InfoExtractor):
}]
_FORMAT_IDS = {
- u'360': (u'60', u'106'),
- u'480': (u'61', u'106'),
- u'720': (u'62', u'106'),
+ u'360': (u'60', u'106'),
+ u'480': (u'61', u'106'),
+ u'720': (u'62', u'106'),
u'1080': (u'80', u'108'),
}
@@ -102,7 +102,7 @@ class CrunchyrollIE(InfoExtractor):
raise ExtractorError(note_m)
video_title = self._html_search_regex(r'<h1[^>]*>(.+?)</h1>', webpage, u'video_title', flags=re.DOTALL)
- video_title = re.sub(r' {5} *–? *', u' – ', video_title)
+ video_title = re.sub(r' {2,}', u' ', video_title)
video_description = self._html_search_regex(r'"description":"([^"]+)', webpage, u'video_description', default=u'')
if not video_description:
video_description = None