浏览代码

[comedycentral] Adapt testcase

In contrast to other sites, ComedyCentral seems to understand how to sensibly use MTV IE, but the additional text shouldn't hurt.
Philipp Hagemeister 11 年之前
父节点
当前提交
780ee4e501
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/comedycentral.py
  2. 1 0
      youtube_dl/extractor/mtv.py

+ 1 - 1
youtube_dl/extractor/comedycentral.py

@@ -23,7 +23,7 @@ class ComedyCentralIE(MTVServicesInfoExtractor):
         u'info_dict': {
             u'id': u'cef0cbb3-e776-4bc9-b62e-8016deccb354',
             u'ext': u'mp4',
-            u'title': u'Uncensored - Greg Fitzsimmons - Too Good of a Mother',
+            u'title': u'CC:Stand-Up|Greg Fitzsimmons: Life on Stage|Uncensored - Too Good of a Mother',
             u'description': u'After a certain point, breastfeeding becomes c**kblocking.',
         },
     }

+ 1 - 0
youtube_dl/extractor/mtv.py

@@ -89,6 +89,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
         title = title_el.text
         if title is None:
             raise ExtractorError('Could not find video title')
+        title = title.strip()
 
         return {
             'title': title,