internal static Track FromRow(RekordboxLibrary library, Internal.RowHeader row) { var internalTrack = row.ParseColumnData <Internal.Track>(); return(new Track(row.ReadString(internalTrack.TrackName).ReadAsUtf8(), internalTrack.ArtistId, IOPath.Combine(IOPath.GetDirectoryName(library.Path), "../../", row.ReadString(internalTrack.DatFile).Slice(1).ReadAsUtf8()))); }
internal static Artist FromRow(RekordboxLibrary library, Internal.RowHeader row) { var internalArtist = row.ParseColumnData <Internal.Artist>(); return(new Artist(internalArtist.ArtistId, row.ReadString(internalArtist.ArtistName).ReadAsUtf8())); }
public RekordboxDevice(string path) { Path = path; Library = new RekordboxLibrary(System.IO.Path.Combine(Path, RekordboxLibrary.DefaultRelativePath)); }