mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Track Parsing Code (#10)
* We now have the ability to import local tracks into Lidarr. Switching to IDv3 tag reading over custom parsing for local tracks. * Stable code for track refresh. * RefreshArtist and RescanArtist events are working correctly. Need to add potential rejection decisions in future. * Implemented code comments * PR comments and fixing some odd db bugs. * Fix some conflicts after Unit Test PR Merge Fix some conflicts after Unit Test PR Merge * Track/Album Add and Update Fixes Track/Album Add and Update Fixes * Fixed an issue with trackimport looking up trackId instead of artistId * Add Handle to TrackService for TrackAddedEvent Add Handle to TrackService for TrackAddedEvent * Update Quality Regex, Store BitRateMode in TrackFile Update Quality Regex, Store BitRateMode in TrackFile
This commit is contained in:
parent
4cfd39f7fe
commit
ef4da4ac9f
99 changed files with 838 additions and 1023 deletions
|
@ -3,6 +3,7 @@ using NzbDrone.Core.Configuration;
|
|||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
using NzbDrone.Core.MediaFiles.Events;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
using NzbDrone.Core.Music.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
@ -32,7 +33,10 @@ namespace NzbDrone.Core.Music
|
|||
void SetTrackMonitoredByAlbum(int artistId, int albumId, bool monitored);
|
||||
}
|
||||
|
||||
public class TrackService : ITrackService
|
||||
public class TrackService : ITrackService,
|
||||
IHandleAsync<ArtistDeletedEvent>,
|
||||
IHandle<TrackFileDeletedEvent>,
|
||||
IHandle<TrackFileAddedEvent>
|
||||
{
|
||||
private readonly ITrackRepository _trackRepository;
|
||||
private readonly IConfigService _configService;
|
||||
|
@ -62,6 +66,7 @@ namespace NzbDrone.Core.Music
|
|||
|
||||
public List<Track> GetTracksByArtist(int artistId)
|
||||
{
|
||||
_logger.Debug("Getting Tracks for ArtistId {0}", artistId);
|
||||
return _trackRepository.GetTracks(artistId).ToList();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue