mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Fixed: Import failure when unable to parse folder name
This commit is contained in:
parent
b5a8c342e5
commit
f32e8974af
2 changed files with 5 additions and 2 deletions
|
@ -175,6 +175,10 @@ namespace NzbDrone.Core.MediaFiles
|
||||||
ReleaseHash = folderInfo.ReleaseHash,
|
ReleaseHash = folderInfo.ReleaseHash,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
trackInfo = null;
|
||||||
|
}
|
||||||
|
|
||||||
var audioFiles = _diskScanService.FilterFiles(directoryInfo.FullName, _diskScanService.GetAudioFiles(directoryInfo.FullName));
|
var audioFiles = _diskScanService.FilterFiles(directoryInfo.FullName, _diskScanService.GetAudioFiles(directoryInfo.FullName));
|
||||||
|
|
||||||
|
|
|
@ -38,9 +38,8 @@ namespace NzbDrone.Core.Parser.Model
|
||||||
{
|
{
|
||||||
trackString = string.Format("T{0}", string.Join("-", TrackNumbers.Select(c => c.ToString("00"))));
|
trackString = string.Format("T{0}", string.Join("-", TrackNumbers.Select(c => c.ToString("00"))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return string.Format("{0} - {1} {2}", ArtistTitle, trackString, Quality);
|
return string.Format("{0} - {1} - {2}: {3}", ArtistTitle, AlbumTitle, trackString, Quality);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue