diff --git a/lib/svtplay_dl/output.py b/lib/svtplay_dl/output.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/output.py
+++ b/lib/svtplay_dl/output.py
@@ -118,7 +118,7 @@ def filename(options, stream):
     if options.output:
         if is_py2:
             if platform.system() == "Windows":
-                options.output = options.output.decode("lain1")
+                options.output = options.output.decode("latin1")
             else:
                 options.output = options.output.decode("utf-8")
         options.output = options.output.replace('"', '').replace("'", "").rstrip('\\')
filename: it should be latin1 not lain1.