mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-02-04 01:52:30 -06:00
- Updated FileMonitor plugin URL to Discourse link - Updated LocalVisage plugin URL to Discourse link - Updated PlexSync plugin URL to Discourse link - Updated PythonDepManager plugin URL to Discourse link - Updated PythonToolsInstaller plugin URL to Discourse link - Updated RenameFile plugin URL to Discourse link - Updated SFW Switch plugin URL to Discourse link - Updated SecondaryPerformerImage plugin URL to Discourse link - Updated StashRandomButton plugin URL to Discourse link - Updated TPDBMarkers plugin URL to Discourse link - Updated ThumbPreviews plugin URL to Discourse link - Updated VideoBanner plugin URL to Discourse link - Updated VideoScrollWheel plugin URL to Discourse link - Updated additionalFilesDeleter plugin URL to Discourse link - Updated audio-transcodes plugin URL to Discourse link - Updated bulkImageScrape plugin URL to Discourse link - Updated chooseYourAdventurePlayer plugin URL to Discourse link - Updated cjCardTweaks plugin URL to Discourse link - Updated comicInfoExtractor plugin URL to Discourse link - Updated defaultDataForPath plugin URL to Discourse link - Updated dupeMarker plugin URL to Discourse link - Updated e621_tagger plugin URL to Discourse link - Updated externalLinksEnhanced plugin URL to Discourse link - Updated filenameParser plugin URL to Discourse link - Updated funscriptMarkers plugin URL to Discourse link - Updated hotCards plugin URL to Discourse link - Updated imageGalleryNavigation plugin URL to Discourse link - Updated image_date_from_metadata plugin URL to Discourse link - Updated markerDeleteButton plugin URL to Discourse link - Updated markerTagToScene plugin URL to Discourse link - Updated miscTags plugin URL to Discourse link - Updated nfoSceneParser plugin URL to Discourse link - Updated pathParser plugin URL to Discourse link - Updated performerStashboxUrlToID plugin URL to Discourse link - Updated sceneCoverCropper plugin URL to Discourse link - Updated scenePageRememberStates plugin URL to Discourse link - Updated setPerformersFromTags plugin URL to Discourse link - Updated setSceneCoverFromFile plugin URL to Discourse link - Updated starIdentifier plugin URL to Discourse link - Updated stashAI plugin URL to Discourse link - Updated stashAppAndroidTvCompanion plugin URL to Discourse link - Updated stashNotes plugin URL to Discourse link - Updated stashNotifications plugin URL to Discourse link - Updated stashdb-performer-gallery plugin URL to Discourse link - Updated stats plugin URL to Discourse link - Updated tagCopyPaste plugin URL to Discourse link - Updated tagGalleriesFromImages plugin URL to Discourse link - Updated tagImagesWithPerfTags plugin URL to Discourse link - Updated tagScenesWithPerfTags plugin URL to Discourse link - Updated themeSwitch plugin URL to Discourse link - Updated timestampTrade plugin URL to Discourse link - Updated titleFromFilename plugin URL to Discourse link - Updated untagRedundantTags plugin URL to Discourse link - Updated videoChapterMarkers plugin URL to Discourse link - Updated BlackHole theme URL to Discourse link - Updated ColorPalette theme URL to Discourse link - Updated Minimal theme URL to Discourse link - Updated ModernDark theme URL to Discourse link - Updated NeonDark theme URL to Discourse link - Updated Night theme URL to Discourse link - Updated Plex theme URL to Discourse link - Updated PornHub theme URL to Discourse link - Updated Pulsar theme URL to Discourse link - Updated PulsarLight theme URL to Discourse link - Updated RoundedYellow theme URL to Discourse link - Updated FansDB Submission Helper userscript URL to Discourse link - Updated StashDB Submission Helper userscript URL to Discourse link
53 lines
2.5 KiB
YAML
53 lines
2.5 KiB
YAML
name: RenameFile
|
|
description: Renames video (scene) file names when the user edits the [Title] field located in the scene [Edit] tab.
|
|
version: 1.0.0
|
|
url: https://discourse.stashapp.cc/t/renamefile/1334
|
|
ui:
|
|
css:
|
|
- renamefile.css
|
|
javascript:
|
|
- renamefile.js
|
|
settings:
|
|
yRenameEvenIfTitleEmpty:
|
|
displayName: Empty Title Rename
|
|
description: If enable, rename files even if TITLE field is empty.
|
|
type: BOOLEAN
|
|
z_keyFIeldsIncludeInFileName: # Prefixing z_ to variable names so that the GUI will place these fields after above fields (alphabatically listed)
|
|
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
|
|
zfieldKeyList:
|
|
displayName: Key Fields
|
|
description: '(Default=title,performers,studio,tags) Define key fields to use to format the file name. This is a comma seperated list, and the list should be in the desired format order. For example, if the user wants the performers name before the title, set the performers name first. Example:"performers,title,tags". This is an example of user adding height:"title,performers,tags,height" Here''s an example using all of the supported fields: "title,performers,tags,studio,galleries,resolution,width,height,video_codec,frame_rate,date".'
|
|
type: STRING
|
|
zmaximumTagKeys:
|
|
displayName: Max Tag Keys
|
|
description: (Default=12) Maximum quantity of tag keys to append to file name. 0=Default(12); -1=No tags appended.
|
|
type: NUMBER
|
|
zseparators:
|
|
displayName: Separator
|
|
description: '(Default=-) Define the separator to use between different parts of the filename. Example Usage: ","'
|
|
type: STRING
|
|
zzdebugTracing:
|
|
displayName: Debug Tracing
|
|
description: Enable debug tracing so-as to add additional debug logging in Stash\plugins\RenameFile\renamefile.log
|
|
type: BOOLEAN
|
|
zzdryRun:
|
|
displayName: Dry Run
|
|
description: Enable to run script in [Dry Run] mode. In dry run mode, files are NOT renamed, and only logging is performed. Use the logging to determine if rename will occur as expected. This should always be enabled on the first run after renamefile_settings.py has been modified.
|
|
type: BOOLEAN
|
|
exec:
|
|
- python
|
|
- "{pluginDir}/renamefile.py"
|
|
interface: raw
|
|
hooks:
|
|
- name: RenameFiles
|
|
description: Renames scene files.
|
|
triggeredBy:
|
|
- Scene.Update.Post
|
|
tasks:
|
|
- name: Rename Last Scene
|
|
description: Renames file of last updated scene.
|
|
defaultArgs:
|
|
mode: rename_files_task
|