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

More verbose debug when writing custom filename pattern #216

Open
cweiske opened this issue Oct 8, 2024 · 1 comment
Open

More verbose debug when writing custom filename pattern #216

cweiske opened this issue Oct 8, 2024 · 1 comment

Comments

@cweiske
Copy link

cweiske commented Oct 8, 2024

I'm trying to add my own filename pattern and always only get an error output:

tvnamer --dry-run --verbose Episode\ 2\ Staffel\ 4\ von\ The\ Big\ Bang\ Theory.mp4 
Loading config: /home/cweiske/.config/tvnamer/tvnamer.json
####################
# Starting tvnamer
Invalid filename: Cannot parse '/home/cweiske/Videos/download/Episode 2 Staffel 4 von The Big Bang Theory.mp4'
Usage: tvnamer [options] <files>

tvnamer: error: No valid files were supplied

Despite the verbose flag, I don't see if tvnamer has a bug or if my custom filename_patterns is invalid.

I'd expect that verbose tells me when a pattern matches, but also when something else is missing (pattern incomplete, not enough info, ...).

@cweiske
Copy link
Author

cweiske commented Oct 11, 2024

My issue with the regex was that the "verbose regex" option is enabled, which means that spaces are ignored.
I had to replace the spaces with \s+ in my regex.

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

No branches or pull requests

1 participant