Class: Cmus::Controller::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/LOLastfm/checkers/cmus.rb

Instance Method Summary collapse

Instance Method Details

#to_songObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/LOLastfm/checkers/cmus.rb', line 14

def to_song
	return unless song

	LOLastfm::Song.new(true,
		track:   song.track,
		title:   song.title,
		artist:  song.artist,
		album:   song.album,
		length:  song.duration,
		comment: song.tags.comment,
		path:    song.file,
		stream:  !song.file
	)
end