[comedycentral] Adapt testcase
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 22 Jan 2014 02:49:16 +0000 (03:49 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 22 Jan 2014 02:49:17 +0000 (03:49 +0100)
In contrast to other sites, ComedyCentral seems to understand how to sensibly use MTV IE, but the additional text shouldn't hurt.

youtube_dl/extractor/comedycentral.py
youtube_dl/extractor/mtv.py

index 27bd8256e6bf6dfb8dc7ae7997a29c2162d863d2..6d55a07afc0623346a6d68b2a484daab5ed67fc4 100644 (file)
@@ -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.',
         },
     }
index 51f91ef1d139e9a12352c04f9653cd59e1e90784..ceb3aa37e65f9fe4b18eabe63c5c3fd483f53d77 100644 (file)
@@ -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,