stashapp / CommunityScripts

This is a public repository containing plugin and utility scripts created by the Stash Community.
https://docs.stashapp.cc/add-ons/
GNU Affero General Public License v3.0
191 stars 147 forks source link

Adding NFOSceneParser #462

Open Gykes opened 2 weeks ago

Gykes commented 2 weeks ago

This was created by a different user. I modified it slightly.

Currently the parser uses the "originaltitle" from the NFO for JAV (Japanese) if not found then reverts to "title" for English. If the user wants it flipped then it can be modified in the nfoParser.py line 170 by flipping originaltitle and title in the quotes.

This script will also create any studios and performers if needed. That can be disabled in the settings in the config. Again, it's not really my script but I plan on making some additions and cleaning some stuff up.

Currently this will run on any new scenes that are scanned in. For it to function correctly then a NFO with the exact same name needs to be in the same folder as the scene file. If no NFO is found then nothing will happen and you tag as usual. There is also a setting that allows users to tag a scene and rerun the command on anything with that tag but it seems to be broken for V27. If you want a scene reran then you need to remove the scene and rescan so that stash will pick it back up and repopulate the data.