summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar enkore <public@enkore.de> 2013-03-26 13:50:19 +0100
committerGravatar enkore <public@enkore.de> 2013-03-26 13:50:19 +0100
commit1b935cc92a420b264dabe5160c64eba165200c73 (patch)
tree853f83477995a793eea0313016ccc282f214d193
parentYoutubeCom: fix program flow quirks (diff)
downloadpyload-1b935cc92a420b264dabe5160c64eba165200c73.tar.xz
YoutubeCom: Fix file naming quirks
-rw-r--r--module/plugins/hoster/YoutubeCom.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py
index ce9fe4945..8b8764367 100644
--- a/module/plugins/hoster/YoutubeCom.py
+++ b/module/plugins/hoster/YoutubeCom.py
@@ -135,7 +135,7 @@ class YoutubeCom(Hoster):
#set file name
file_suffix = self.formats[fmt][0] if fmt in self.formats else ".flv"
file_name_pattern = '<meta name="title" content="(.+?)">'
- name = re.search(file_name_pattern, html).group(1).replace("/", "") + file_suffix
+ name = re.search(file_name_pattern, html).group(1).replace("/", "")
pyfile.name = html_unescape(name)
time = re.search(r"t=((\d+)m)?(\d+)s", pyfile.url)
@@ -146,6 +146,7 @@ class YoutubeCom(Hoster):
m = "0"
pyfile.name += " (starting at %s:%s)" % (m, s)
+ pyfile.name += file_suffix
filename = self.download(url)