public Movie(DirectoryInfo dir) { Dir = dir; Log($"Getting movie for {dir.Name}"); Name = ScoreRegex.ReplaceWithString(dir.Name); Annotated = AnnotationRegex.IsMatch(dir.Name); if (ParseUnannotated(dir)) { return; } ParseAnnotated(dir); }
private void ParseStd(DirectoryInfo dir) { var match = AnnotationRegex.Match(dir.Name); var groups = match.Groups; Title = groups["title"].Value; Match mYear; if (!YearRegex.TryGetMatch(dir.Name, out mYear)) { Error($"No year match found for {dir.Name}"); return; } Year = mYear.Groups[1].Value;//groups["year"].Value; RunTime = match.Groups["time"].Value; ParseRatings(); }