Method: DTAS::Tracklist#go_to

Defined in:
lib/dtas/tracklist.rb

#go_to(track_id, offset_hhmmss = nil) ⇒ Object



220
221
222
223
224
225
226
227
228
# File 'lib/dtas/tracklist.rb', line 220

def go_to(track_id, offset_hhmmss = nil)
  list = @shuffle || @list
  if idx = _idx_of(list, track_id)
    @goto_off = offset_hhmmss
    return list[@goto_pos = idx].to_path
  end
  @goto_pos = nil
  # noop if track_id is invalid
end