mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
Fixed: Better aggregation of calibre data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user