[trutube] Strip title
authorSergey M․ <dstftw@gmail.com>
Mon, 3 Nov 2014 13:14:18 +0000 (20:14 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 3 Nov 2014 13:14:18 +0000 (20:14 +0700)
youtube_dl/extractor/trutube.py

index a73f3c43a2637e0cee677fc83d20e761e585af17..e7b79243a8fb9f091087f5c452c8192c49c81af2 100644 (file)
@@ -29,7 +29,7 @@ class TruTubeIE(InfoExtractor):
 
         # filehd is always 404
         video_url = xpath_text(config, './file', 'video URL', fatal=True)
-        title = xpath_text(config, './title', 'title')
+        title = xpath_text(config, './title', 'title').strip()
         thumbnail = xpath_text(config, './image', ' thumbnail')
 
         return {