I've rolled my own scene file renamer plugin, if there is interest I could share

Hi,

[new here, so if I’m not posting in the right spot, using wrong tags, or generally mess up in some way, don’t hesitate to correct me…]

When I started using Stash about a month ago, I didn’t quite find the right scene file renamer plugin, so in the end I rolled my own based on an existing one. I wasn’t happy with the choices other plugin developers made, so I made my own.

The big feature is that you can define the new filename based on a pattern like below.

[$(studio)] $(title) - $(performers:filter(!male):separator(, )) ($(date:%Y-%m-%d)) [$(height)p]

It uses placeholders for the scene properties and packs some property specific format specifiers (like a customizable date format and a filter for performers). Of course I only implemented the scene properties/format specifiers I needed.

Like the other scene rename plugins it acts on scene updates, but you can also use it to rename all scene files for the last updated studio.

I have it running and occasionally use the studio batch rename feature (I don’t presume it’s bug free, but for me it works).

If there is any interest from the community I could share it to give something back.

Best regards,

Teolith

1 Like

Just share it, why even ask permission…

2 Likes

Hi @sashi,

Because

  1. I don’t know the correct procedure.
  2. I’m new and don’t know the community, nor how things generally work in here.
  3. Frankly, I’m a bit of a Social Media dinosaur (no Facebook, X, Instagram, etc…)

If you can point me to a HOWTO on sharing my code in a non-obtrusive way I’m all ears.

Thanks in advance and have a great weekend.

Best regards,

Teolith

2 Likes

if you can join the discord server and share the github url as a starting point, that would be great. people will need to evaluate your plugin to see it does not cause data loss and is not harmful/malicious. otherwise, in case you dont prefer to use discord, About the Other Projects category could be your go-to.

Hi @l34240013,

Thanks for your suggestion, I’ll take it up.

I’ll polish the plugin up a bit and upload it to my github account.
Then I’ll check out the discord server you mentioned, I’m not yet familiar with it.
If it’s not to big of a hustle, I should be able to register and share it there.
To be frank, I’m kind of curious how bad/mediocre/ok my code is.

Is the place to share this on the discord server obvious?

Well, we’ll see after the weekend I suppose.

Best regards,

Teolith

2 Likes

Hi Teolith,
Yes, on discord server there is a Plugins channel where you can share directly. The link to the server can be found at https://docs.stashapp.cc/ :slight_smile: Should not be too big of a hassle.
On another note, regarding to code quality, well we are in the times of LLMs, so why not try one :slight_smile:
Thanks for the plugin in advance!

Hey welcome to the community. Unless you spam or do thing like that, just consider yourself ‘one of us’ and do thing like you would with your friend. Sometimes don’t take thing too serious, it all fun and games and rarely is an attack.

Most developer or coder use Github to post their Code/Plugins/Documents.

I don’t want to use Github (create account) so I post mine (a basic scraper) on Discord Plugins and ask someone else to add it to Github so other people can use it.

As for discord, think of it like a chat software, it a bit more casual there and less formal like this essay I’m writing.