Skip to content

Commit

Permalink
Version 4.2.2 (#223)
Browse files Browse the repository at this point in the history
* Fixing output_directory config option not highest priority (thanks to cwills75)
  • Loading branch information
cdgriffith authored May 12, 2021
1 parent 1ed0a16 commit ee48d7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion fastflix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "4.2.1"
__version__ = "4.2.2"
__author__ = "Chris Griffith"
4 changes: 2 additions & 2 deletions fastflix/widgets/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit ee48d7b

Please sign in to comment.