forked from Github/Axter-Stash
misc
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# RenameFile: Ver 0.4.3 (By David Maisonave)
|
||||
# RenameFile: Ver 0.4.4 (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
|
||||
|
||||
@@ -66,7 +66,7 @@ settings = {
|
||||
"studioAppend": False,
|
||||
"tagAppend": False,
|
||||
"z_keyFIeldsIncludeInFileName": False,
|
||||
"zafileRenameViaMove": False,
|
||||
"zafileRenameViaRaname": False,
|
||||
"zfieldKeyList": DEFAULT_FIELD_KEY_LIST,
|
||||
"zmaximumTagKeys": 12,
|
||||
"zseparators": DEFAULT_SEPERATOR,
|
||||
@@ -133,7 +133,7 @@ endpoint = f"{json_input['server_connection']['Scheme']}://{endpointHost}:{json_
|
||||
if debugTracing: logger.info(f"Debug Tracing (endpoint={endpoint})................")
|
||||
# Extract rename_files and move_files settings from renamefile_settings.py
|
||||
rename_files = config["rename_files"]
|
||||
move_files = settings["zafileRenameViaMove"]
|
||||
move_files = False if settings["zafileRenameViaRaname"] else True
|
||||
if debugTracing: logger.info("Debug Tracing................")
|
||||
fieldKeyList = settings["zfieldKeyList"] # Default Field Key List with the desired order
|
||||
if not fieldKeyList or fieldKeyList == "":
|
||||
|
||||
@@ -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.3
|
||||
version: 0.4.4
|
||||
url: https://github.com/David-Maisonave/Axter-Stash/tree/main/plugins/RenameFile
|
||||
settings:
|
||||
performerAppend:
|
||||
@@ -19,9 +19,9 @@ settings:
|
||||
displayName: Include Existing Key Field
|
||||
description: Enable to append performer, tags, studios, & galleries even if name already exists in the original file name.
|
||||
type: BOOLEAN
|
||||
zafileRenameViaMove:
|
||||
displayName: Rename Using Move
|
||||
description: Enable to have file moved when renaming file.
|
||||
zafileRenameViaRaname:
|
||||
displayName: Rename Instead of Move
|
||||
description: Enable to rename file instead of Move file. (Not recommended for Windows OS)
|
||||
type: BOOLEAN
|
||||
zfieldKeyList:
|
||||
displayName: Key Fields
|
||||
|
||||
Reference in New Issue
Block a user