aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-12-10 21:03:53 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-12-10 21:03:53 +0100
commit182583623583c8e71af9b4e24acf8c409fcff197 (patch)
treec049216db457bd6b4592862eab000afb66a4088e /youtube_dl/utils.py
parenta0088bdf9342408a1fc5033a0f4599bae3b9aa0b (diff)
downloadyoutube-dl-182583623583c8e71af9b4e24acf8c409fcff197.tar.xz
Use `_download_xml` in more extractors
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 0dab9fcc5..4593488ce 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1057,3 +1057,8 @@ def month_by_name(name):
return ENGLISH_NAMES.index(name) + 1
except ValueError:
return None
+
+
+def fix_xml_all_ampersand(xml_str):
+ """Replace all the '&' by '&amp;' in XML"""
+ return xml_str.replace(u'&', u'&amp;')