Explorar o código

[mtv] Strip the description

There were some tabs and newlines added around the string.
Jaime Marquínez Ferrándiz %!s(int64=12) %!d(string=hai) anos
pai
achega
0ab4ff6378
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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