-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Extras: Clean filename and process NFOs #9403
Conversation
Any feedback on the unit test I changed? I'm not aware of which issues that might be related to, or if my change will affect them. |
- Adds regular expression to CleanStrings to remove suffix style extra naming from the name presented in JF. - Override Resolve for Extras to enable parsename - remove exclusion on parsename of extratypes
- Change test to prevent owned items from using parent NFO. Test is now in MovieNFOSaver, only movie type will use movie.nfo.
I need more information about the need for this test, to make sure I am not introducing an issue.
Apply code review Co-authored-by: Cody Robibero <cody@robibe.ro>
dd8cd8a
to
4f06154
Compare
I added that test when I did some work on I've never used NFOs so I can't attest to the necessity of that check. I expect that if you're changing the behavior you've done some testing with various NFO and naming arrangements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some tests for the new naming would be helpful, without doing much checking I think you can plug directly into FindExtrasTests
@crobibero Added one test of cleaning 3 extra names. |
Changes
A file named
Interview with director-interview.mkv
will now be namedInterview with director
in JF.NFO files named the same as extra file will be read for metadata.