protected override Task <string> FindMap(MMDBSong song) { var drives = DriveInfo.GetDrives(); // TODO check media data first (DriveLetter, DriveLabel) foreach (var drive in drives) { var path = GetPath(song, drive.Name); if (File.Exists(path)) { return(Task.FromResult(drive.Name)); } } throw new NotImplementedException(); }
protected override string GetPath(MMDBSong song, string mappedMediaName) { var driveBaseName = mappedMediaName.Substring(0, mappedMediaName.LastIndexOf(':')); return($"{driveBaseName}{song.SongPath}"); }