diff options
author | Stefano <l.stickell@yahoo.it> | 2013-10-29 14:58:06 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-10-29 14:58:06 +0100 |
commit | 29f6a9e8638184d3c4618898a8708023e51b55e5 (patch) | |
tree | ac81fe3408b85466fd1ed71cfcc8d65e2828e3c2 /module/plugins/hoster/YoutubeCom.py | |
parent | SimpleHoster: new PREMIUM_ONLY_PATTERN (see #350). (diff) | |
download | pyload-29f6a9e8638184d3c4618898a8708023e51b55e5.tar.xz |
YouTube: using ASCII instead of LATIN-1.
Fixes #353
Diffstat (limited to 'module/plugins/hoster/YoutubeCom.py')
-rw-r--r-- | module/plugins/hoster/YoutubeCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/YoutubeCom.py b/module/plugins/hoster/YoutubeCom.py index 9ef49c2d6..319eb36e6 100644 --- a/module/plugins/hoster/YoutubeCom.py +++ b/module/plugins/hoster/YoutubeCom.py @@ -36,7 +36,7 @@ class YoutubeCom(Hoster): __name__ = "YoutubeCom" __type__ = "hoster" __pattern__ = r"https?://(?:[^/]*?)youtube\.com/watch.*?[?&]v=.*" - __version__ = "0.37" + __version__ = "0.38" __config__ = [("quality", "sd;hd;fullhd;240p;360p;480p;720p;1080p;3072p", "Quality Setting", "hd"), ("fmt", "int", "FMT/ITAG Number (5-102, 0 for auto)", 0), (".mp4", "bool", "Allow .mp4", True), @@ -138,7 +138,7 @@ class YoutubeCom(Hoster): name = re.search(file_name_pattern, html).group(1).replace("/", "") # Cleaning invalid characters from the file name - name = name.encode('latin-1', 'replace') + name = name.encode('ascii', 'replace') pyfile.name = html_unescape(name) |