mirror of
https://github.com/Readarr/Readarr
synced 2025-12-10 10:22:31 +01:00
Fix Crash due to ForeignArtistId not being in DB for TrackFile Table
Fix Crash due to ForeignArtistId not being in DB for TrackFile Table
This commit is contained in:
parent
ee90d8021a
commit
c6ac0878a7
2 changed files with 3 additions and 3 deletions
|
|
@ -12,8 +12,8 @@ namespace NzbDrone.Core.MediaFiles
|
|||
{
|
||||
public class TrackFile : ModelBase
|
||||
{
|
||||
public string ForeignTrackId { get; set; }
|
||||
public string ForeignArtistId { get; set; }
|
||||
//public string ForeignTrackId { get; set; }
|
||||
//public string ForeignArtistId { get; set; }
|
||||
public int AlbumId { get; set; }
|
||||
public int ArtistId { get; set; }
|
||||
public string RelativePath { get; set; }
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public List<ImportResult> Import(List<ImportDecision> decisions, bool newDownloa
|
|||
|
||||
var trackFile = new TrackFile();
|
||||
trackFile.DateAdded = DateTime.UtcNow;
|
||||
trackFile.ForeignArtistId = localTrack.Artist.ForeignArtistId;
|
||||
trackFile.ArtistId = localTrack.Artist.Id;
|
||||
trackFile.Path = localTrack.Path.CleanFilePath();
|
||||
trackFile.Size = _diskProvider.GetFileSize(localTrack.Path);
|
||||
trackFile.Quality = localTrack.Quality;
|
||||
|
|
|
|||
Loading…
Reference in a new issue