diff options
author | enkore <public@enkore.de> | 2013-03-26 13:50:19 +0100 |
---|---|---|
committer | enkore <public@enkore.de> | 2013-03-26 13:50:19 +0100 |
commit | 1b935cc92a420b264dabe5160c64eba165200c73 (patch) | |
tree | 853f83477995a793eea0313016ccc282f214d193 /module | |
parent | YoutubeCom: fix program flow quirks (diff) | |
download | pyload-1b935cc92a420b264dabe5160c64eba165200c73.tar.xz |
YoutubeCom: Fix file naming quirks
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 3 |
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) |