mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
At a point where we can build. Many TODOs and existing Series-based APIs need to be removed. No track code actually works.
This commit is contained in:
parent
235e753b93
commit
1024555f75
41 changed files with 1090 additions and 582 deletions
|
@ -55,11 +55,16 @@ namespace NzbDrone.Core.Music
|
|||
return _trackRepository.Get(ids).ToList();
|
||||
}
|
||||
|
||||
public Track FindTrack(string artistId, string albumId, int episodeNumber)
|
||||
public Track FindTrack(string artistId, string albumId, int trackNumber)
|
||||
{
|
||||
return _trackRepository.Find(artistId, albumId, episodeNumber);
|
||||
return _trackRepository.Find(artistId, albumId, trackNumber);
|
||||
}
|
||||
|
||||
//public Track FindTrack(string artistId, int trackNumber)
|
||||
//{
|
||||
// return _trackRepository.Find(artistId, trackNumber);
|
||||
//}
|
||||
|
||||
public List<Track> GetTracksByArtist(string artistId)
|
||||
{
|
||||
return _trackRepository.GetTracks(artistId).ToList();
|
||||
|
@ -132,7 +137,7 @@ namespace NzbDrone.Core.Music
|
|||
_trackRepository.SetMonitoredByAlbum(artistId, albumId, monitored);
|
||||
}
|
||||
|
||||
public void UpdateEpisodes(List<Track> tracks)
|
||||
public void UpdateTracks(List<Track> tracks)
|
||||
{
|
||||
_trackRepository.UpdateMany(tracks);
|
||||
}
|
||||
|
@ -182,10 +187,5 @@ namespace NzbDrone.Core.Music
|
|||
_logger.Debug("Linking [{0}] > [{1}]", message.TrackFile.RelativePath, track);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateTracks(List<Track> tracks)
|
||||
{
|
||||
_trackRepository.UpdateMany(tracks);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue