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

Error: Unable to parse series name from filename #4

Closed
urbster1 opened this issue Jan 16, 2021 · 8 comments
Closed

Error: Unable to parse series name from filename #4

urbster1 opened this issue Jan 16, 2021 · 8 comments

Comments

@urbster1
Copy link

urbster1 commented Jan 16, 2021

Hi! I am running this in a folder structure with files as follows:
Series/Season 1/S01E01 Title.mp4

using autotag -t --no-rename -v .

Running with --manual "Series" doesn't make a difference, and it's not clearly documented how that feature should be used. Either way, it finds all episodes, then outputs the above error. Any help is appreciated - thanks!

@jamerst
Copy link
Owner

jamerst commented Jan 17, 2021

Hi,

AutoTag is designed to parse all the required information from just the filename, not the file path, so it's not able to find the series name in your file structure.

The --manual flag doesn't take any options, it simply allows the correct series to be chosen from the results returned from searching. It's useful when there are multiple series in the results with very similar names.

I'll look into adding an option to manually specify the file/directory structure to parse the episode info, or failing that an option to manually specify the series name to be searched for.

@jamerst
Copy link
Owner

jamerst commented Jan 17, 2021

This should now be addressed in v3.0.2.

If you run AutoTag with --pattern ".*/(?<SeriesName>.+)/Season (?<Season>\d+)/S\d+E(?<Episode>\d+)" that should be able to parse episodes in your file structure.

@jamerst jamerst closed this as completed Jan 17, 2021
@urbster1
Copy link
Author

urbster1 commented Jan 17, 2021 via email

@urbster1
Copy link
Author

Hmm, I'm still unable to get -p to work. I've tried escaping the pattern with single- and double-quotes but either way I'm getting the following error when running autotag -t -v --no-cover -p '.*/(?<SeriesName>.+)/Season (?<Season>\d+)/S\d+E(?<Episode>\d+).*' .

./S01E01 Title.mp4
    Error: Input string was not in a correct format

@jamerst
Copy link
Owner

jamerst commented Jan 19, 2021

Looks like there was a bug when used with relative paths, I've uploaded v3.0.3, that should hopefully work this time.

@urbster1
Copy link
Author

urbster1 commented Jan 19, 2021 via email

@jamerst
Copy link
Owner

jamerst commented Jan 19, 2021

That's odd, any invalid characters should definitely be removed, maybe Path.GetInvalidFileNameChars() doesn't return all invalid characters?

I assume this is on Windows? I'm Linux-based so I don't have any issues with question marks in file names.

If you wouldn't mind creating a separate issue, I'll investigate it further when I get chance.

@urbster1
Copy link
Author

urbster1 commented Jan 19, 2021 via email

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

2 participants