From cfe5537ee5ca5156f3969f513a1257be83015b1d Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Tue, 14 Jul 2015 00:21:11 +0800 Subject: [PATCH] [myspass] Fix extraction (closes #6206) --- youtube_dl/extractor/myspass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/myspass.py b/youtube_dl/extractor/myspass.py index 5b9b9fbcd..4557a2b13 100644 --- a/youtube_dl/extractor/myspass.py +++ b/youtube_dl/extractor/myspass.py @@ -35,7 +35,8 @@ class MySpassIE(InfoExtractor): # get metadata metadata_url = META_DATA_URL_TEMPLATE % video_id - metadata = self._download_xml(metadata_url, video_id) + metadata = self._download_xml( + metadata_url, video_id, transform_source=lambda s: s.strip()) # extract values from metadata url_flv_el = metadata.find('url_flv')