CSL.TorrentBuilder.ExtractYear C# (CSharp) 메소드

ExtractYear() 공개 메소드

public ExtractYear ( string birth, FileInfo file ) : string
birth string
file System.IO.FileInfo
리턴 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);
            }
        }