Fixed: Better aggregation of calibre data

This commit is contained in:
ta264
2021-03-30 21:24:40 +01:00
parent f584d2d8d2
commit 8ec13f5ead
6 changed files with 14 additions and 22 deletions
-11
View File
@@ -227,8 +227,6 @@ namespace NzbDrone.Core.Parser
private static readonly Regex AfterDashRegex = new Regex(@"[-:].*", RegexOptions.Compiled);
private static readonly Regex CalibreIdRegex = new Regex(@"\((?<id>\d+)\)", RegexOptions.Compiled);
public static ParsedTrackInfo ParseMusicPath(string path)
{
var fileInfo = new FileInfo(path);
@@ -481,15 +479,6 @@ namespace NzbDrone.Core.Parser
return null;
}
public static int ParseCalibreId(this string path)
{
var bookFolder = path.GetParentPath();
var match = CalibreIdRegex.Match(bookFolder);
return match.Success ? int.Parse(match.Groups["id"].Value) : 0;
}
public static ParsedBookInfo ParseBookTitle(string title)
{
try