Skip to content

fixed filename iso-code overwriting explicit --language flag#334

Open
enodden wants to merge 1 commit intojkwill87:mainfrom
enodden:language-tag-overwritten
Open

fixed filename iso-code overwriting explicit --language flag#334
enodden wants to merge 1 commit intojkwill87:mainfrom
enodden:language-tag-overwritten

Conversation

@enodden
Copy link
Copy Markdown

@enodden enodden commented Mar 5, 2026

As detailed in issue #330, the explicit --language flag is overwritten if GuessIt detects an ISO code in the filename.

The fix in this PR is just adding a check after GuessIt parsing to see if the --language flag is set. If it was, then it restores the user-configured language in path_data. This should ensure that the --language flag is always respected, while still allowing GuessIt to populate other fields in path_data.

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.

1 participant