Closed kngspook closed 11 years ago
There is some additional processing to preserve numbers in series names (e.g "Jake 2.0"), because thetvdb cannot find series without the decimal point ("jake 2.0" finds the series, but "jake 2 0" has no results)
Unfortunately that file name is ambiguous with this, as it thinks the 0.2010" is a number it should preserve..
I think the series name cleanup can be improved (so there has to be a space before a decimal number)
For now, you could use the custom-replacements feature, to clean up the series name (replace Hawii.Five-0.2010
with Hawii Five-0
or similar)
I'd post an example config, but am not near a proper computer current Y.. Check the 'tests' directory in the code for examples.
I can't think of a simple way to clean the matched series names in a way that handles both cases.. Ideally thetvdb's search would find the series based on Hawaii Five-0.2010
(by ignoring punctuation), but for now the replacements will fix this
in sickbeard we use the cleanRegexedSeriesName
function, I noticed that midget has a line added that you dont. wonder if this would help solve your problem.
add this line:
seriesname = re.sub("(\d)\.(\d{4})", "\\1 \\2", seriesname) # if it ends in a year then don't keep the dot
right above
seriesname = re.sub("(\D)[.]", "\\1 ", seriesname)
So I'm having a weird parse error:
I took a quick glance at the config_defaults and the regexes therein, and didn't find one that obviously applies to any of these filenames, so I can only speculate, but I'm guessing it's maybe because "Hawaii Five-0" is two words instead of one?
A call to
tvnamer-2.6 -n "Hawaii Five-0" Hawaii.Five-0.2010.S03E19.HDTV.x264-LOL.mp4
seems to do the trick, naturally.