-
-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add scene auto-tagging from filename #204
Conversation
Omg i love this feature!!!! Does it spit what it tags into some sort of log? |
@WithoutPants the TravisCI build failed due to TravisCI being Travis again. |
Yep nevermind this time it wasn't. |
Definitely see the benefit of checking before and after name, but you don't think the separator should be optional within the name? ie |
Changed to only log when performer/studio/tag added. Improved regex to prevent false positives. |
Will this find stars and studios i might have missed? OR is this just looking for tags? |
It only operates on performers, studios and tags that are in the system already but not applied to scenes. |
It already does this. To clarify the above comment, it doesn't detect if there are performers/studios/tags you haven't added to your system. I may have misunderstood @Ch00nassid's original question. |
No, you understood fine. Im worried about my current scenes having missed a current performer or studio i already have in my collections. I'd like the option to review the findings and make final approvals but this sounds like an automated "seek and destroy" or "seek and input" ;) |
From a quick test the performers name regex seems to work better than all (at least in my DB). For all of them and especially for the tags that i could test better you get maximum 25 matches. i have for example a specifc tag in 200+ filenames and it only matches 25. EDIT models/querybuilder_sql.go
|
I added this as I think it's important to this kind of stuff. #221 |
once more
studio WildOnCam not autotagged if you create a tag called WildOnCam to try , that won't get autotagged also if the filename is |
2d42db4
to
4cd37b2
Compare
Issue was due to the regex pattern not considering path separators in the scene paths. Added a test for this particular scenario. Should be ready to retest @bnkai |
I can confirm everything now seems ok |
Adds an "Auto tag" section to the tasks settings page. Here you can tick whether to include performers, studios and tags. Clicking the button starts the auto-tagging job.
The auto-tagger loops through all of the performers/studios/tags in the database, and searches for scenes that match the following the name - using the following regex to handle word separators:
(?: |\.|-|_)?
. For each scene it finds, it adds the performer/studio/tag to the scene.Also adds buttons to the performer/studio and tags pages which runs the auto-tag process for a specific performer/studio/tag.
Should resolve #6 and #34