forked from Github/Axter-Stash
Change UI options
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# RenameFile: Ver 0.4.4 (By David Maisonave)
|
||||
# RenameFile: Ver 0.4.5 (By David Maisonave)
|
||||
RenameFile is a [Stash](https://github.com/stashapp/stash) plugin which performs the following tasks.
|
||||
- **Rename Scene File Name** (On-The-Fly)
|
||||
- **Append tag names** to file name
|
||||
|
||||
@@ -479,7 +479,10 @@ def rename_scene(scene_id, stash_directory):
|
||||
new_path_info = {'new_file_path': new_path}
|
||||
if debugTracing: logger.info(f"{dry_run_prefix}New filename: {new_path}")
|
||||
|
||||
if move_files and original_parent_directory.name != scene_details['studio']['name']:
|
||||
studioName = ""
|
||||
if 'studio' in scene_details and scene_details['studio'] != None and 'name' in scene_details['studio']:
|
||||
studioName = scene_details['studio']['name']
|
||||
if move_files and studioName != "" and original_parent_directory.name != studioName:
|
||||
new_path = original_parent_directory / scene_details['studio']['name'] / (new_filename + Path(original_file_path).suffix)
|
||||
new_path_info = {'new_file_path': new_path}
|
||||
move_or_rename_files(scene_details, new_filename, original_parent_directory)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: RenameFile
|
||||
description: Renames video (scene) file names when the user edits the [Title] field located in the scene [Edit] tab.
|
||||
version: 0.4.4
|
||||
version: 0.4.5
|
||||
url: https://github.com/David-Maisonave/Axter-Stash/tree/main/plugins/RenameFile
|
||||
settings:
|
||||
performerAppend:
|
||||
|
||||
Reference in New Issue
Block a user