diff --git a/lib/svtplay_dl/__init__.py b/lib/svtplay_dl/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/__init__.py
+++ b/lib/svtplay_dl/__init__.py
@@ -72,7 +72,7 @@ def get_media(url, options):
                 options.output = filenamify(title_tag)
             else:
                 # output is a directory
-                os.path.join(options.output, filenamify(title_tag))
+                options.output = os.path.join(options.output, filenamify(title_tag))
 
     try:
         stream.get(options)
Fix automatic filename generation when output is a directory