浏览代码

[mtv] Strip the description

There were some tabs and newlines added around the string.
Jaime Marquínez Ferrándiz 12 年之前
父节点
当前提交
0ab4ff6378
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/mtv.py

+ 1 - 1
youtube_dl/extractor/mtv.py

@@ -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