Skip to content
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

Fix file relocation without rename #1162

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Fix file relocation without rename #1162

merged 1 commit into from
Aug 13, 2024

Conversation

ale183
Copy link
Contributor

@ale183 ale183 commented Aug 13, 2024

With "Move on import" enabled and "Rename on import" disabled the file remains in the import folder for two reasons:

  • in WebAOMRenamer.cs the variable success is always false, unless GetNewFileName is called (only if rename is enabled)
  • in VideoLocal_PlaceService.cs there is a check on result.FileName, which is always null if the rename is disabled, and the file is never moved

This commit should fix that behavior.

@revam
Copy link
Member

revam commented Aug 13, 2024

I'll need to look at the new renamer internals for the latter change, but the success change seems to be fine. Will check when I get home.

@revam revam merged commit b4e4447 into ShokoAnime:master Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants