about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-22 03:49:16 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-22 03:49:17 +0100
commit780ee4e501b1234e51c3530a93930962bea42f34 (patch)
treeb1bf393022e79c8d264ffc07b664e2114eace81c
parentd7b51547c0220b28d6914f4721a7d0ff11d8d98e (diff)
downloadyoutube-dl-780ee4e501b1234e51c3530a93930962bea42f34.tar.gz
youtube-dl-780ee4e501b1234e51c3530a93930962bea42f34.tar.xz
youtube-dl-780ee4e501b1234e51c3530a93930962bea42f34.zip
[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.
-rw-r--r--youtube_dl/extractor/comedycentral.py2
-rw-r--r--youtube_dl/extractor/mtv.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/comedycentral.py b/youtube_dl/extractor/comedycentral.py
index 27bd8256e..6d55a07af 100644
--- a/youtube_dl/extractor/comedycentral.py
+++ b/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.',
         },
     }
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py
index 51f91ef1d..ceb3aa37e 100644
--- a/youtube_dl/extractor/mtv.py
+++ b/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,