]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[mtv] Strip the description
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 10 Oct 2013 17:53:44 +0000 (19:53 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 10 Oct 2013 17:53:44 +0000 (19:53 +0200)
There were some tabs and newlines added around the string.

youtube_dl/extractor/mtv.py

index 001a576a8710fb45a7c3e4d4dfc9f634af39dc87..e520e2bb491f2c55f3867ab214b2b949eca6e684 100644 (file)
@@ -87,7 +87,7 @@ class MTVIE(InfoExtractor):
 
         description_node = itemdoc.find('description')
         if description_node is not None:
-            description = description_node.text
+            description = description_node.text.strip()
         else:
             description = None