lib/kagu/track.rb in kagu-2.0.0 vs lib/kagu/track.rb in kagu-2.0.1
- old
+ new
@@ -29,9 +29,13 @@
def exists?
File.file?(path)
end
+ def hash
+ [artist, title].hash
+ end
+
def relative_path(directory)
directory.present? && directory.starts_with?(directory) ? path.gsub(/\A#{Regexp.escape(directory)}\//, '') : path
end
def to_s