From ee48d7b764da05e01de7d31cf15494dcfd62595d Mon Sep 17 00:00:00 2001 From: Chris Griffith Date: Tue, 11 May 2021 22:05:08 -0500 Subject: [PATCH] Version 4.2.2 (#223) * Fixing output_directory config option not highest priority (thanks to cwills75) --- CHANGES | 4 ++++ fastflix/version.py | 2 +- fastflix/widgets/main.py | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 8c0bc1c5..51d145cd 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ # Changelog +## Version 4.2.2 + +* Fixing output_directory not highest priority (thanks to cwills75) + ## Version 4.2.1 * Adding support for source_directory and output_name_format in config file (thanks to cwills75) diff --git a/fastflix/version.py b/fastflix/version.py index 8d965533..c10e5581 100644 --- a/fastflix/version.py +++ b/fastflix/version.py @@ -1,4 +1,4 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -__version__ = "4.2.1" +__version__ = "4.2.2" __author__ = "Chris Griffith" diff --git a/fastflix/widgets/main.py b/fastflix/widgets/main.py index 12e1fdc0..075c8d1c 100644 --- a/fastflix/widgets/main.py +++ b/fastflix/widgets/main.py @@ -854,10 +854,10 @@ def generate_output_filename(self): rand_8 = secrets.token_hex(4) ext = self.current_encoder.video_extension out_loc = f"{Path('~').expanduser()}{os.sep}" - if self.app.fastflix.config.output_directory: - out_loc = f"{self.app.fastflix.config.output_directory}{os.sep}" if self.input_video: out_loc = f"{self.input_video.parent}{os.sep}" + if self.app.fastflix.config.output_directory: + out_loc = f"{self.app.fastflix.config.output_directory}{os.sep}" gen_string = self.app.fastflix.config.output_name_format or "{source}-fastflix-{rand_4}.{ext}"