public WebPlaylistItem(WebMusicTrackBasic track) { this.Id = track.Id; this.PID = track.PID; this.Title = track.Title; this.Type = track.Type; this.Duration = track.Duration; this.DateAdded = track.DateAdded; this.Path = track.Path; }
public string GetTranscoderForTrack(WebMusicTrackBasic track) { if (track.Path.First().EndsWith(".mp3") && TranscoderProfile.MIME == "audio/mpeg") { return "Direct"; } else { return Transcoder; } }