CSL.TorrentBuilder.ExtractYear C# (CSharp) Method

ExtractYear() public method

public ExtractYear ( string birth, FileInfo file ) : string
birth string
file System.IO.FileInfo
return string
        public string ExtractYear(string birth, FileInfo file)
        {
            try
            {
                string year = YearHelper(file.Name);
                if (year != null)
                    return year;
                else
                    return IssueError("Can't parse year", file);
            }
            catch (Exception e)
            {
                DirectoryHandler.LogError(e.Message + "\n" + e.StackTrace);
                return IssueError("Can't parse year", file);
            }
        }