summaryrefslogtreecommitdiffstats
path: root/Plugins/YoutubeCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/YoutubeCom.py')
-rw-r--r--Plugins/YoutubeCom.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Plugins/YoutubeCom.py b/Plugins/YoutubeCom.py
index c780345ee..7428f532d 100644
--- a/Plugins/YoutubeCom.py
+++ b/Plugins/YoutubeCom.py
@@ -47,7 +47,10 @@ class YoutubeCom(Plugin):
file_suffix = ".flv"
if self.config['high_quality']:
file_suffix = ".mp4"
- return re.search(file_name_pattern, self.html).group(1).replace("/", "") + file_suffix
+ name = re.search(file_name_pattern, self.html).group(1).replace("/", "") + file_suffix
+
+ name = name.replace("&", "&")
+ return name
def file_exists(self):
""" returns True or False