lib/dubbletrack_remote/item.rb in dubbletrack_remote-0.7.4 vs lib/dubbletrack_remote/item.rb in dubbletrack_remote-0.7.5
- old
+ new
@@ -57,17 +57,17 @@
elsif last_error_code
"[×] "
else
"[ ] "
end
- duration_s = duration ? " [#{duration}s]" : ""
+ duration_s = duration ? " [#{duration}s]" : "[DURATION MISSING]"
if track?
- line = "TRACK: #{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + "#{title} - #{artist_name}" "\r\n" +
+ line = "#{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + " " + "#{title} - #{artist_name}" "\r\n" +
" ".ljust(32) + "#{release_name} // #{label_name} \r\n" +
" ".ljust(32) + "#{genre}, #{duration_s}, #{automation_group}, #{automation_id}" + "\r\n" +
(last_error_code ? "".ljust(30) + "[#{last_error_code}] #{last_error_text}" : "") + "\r\n"
elsif traffic?
- line = "TRAFFIC: #{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + title.to_s + "\r\n" +
+ line = "#{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + " " + title.to_s + "\r\n" +
"#{genre}, #{duration_s}, #{automation_group}, #{automation_id}" + "\r\n" +
(last_error_code ? "".ljust(30) + "[#{last_error_code}] #{last_error_text}" : "") + "\r\n"
else
line = "UNKNOWN: #{state}#{id}:#{played_at.utc.iso8601}".ljust(30) + title.to_s + "\r\n" +
"#{genre}, #{duration_s}, #{automation_group}, #{automation_id}" + "\r\n" +