lib/airplayer/playlist.rb in airplayer-0.0.6 vs lib/airplayer/playlist.rb in airplayer-0.0.7

- old
+ new

@@ -10,11 +10,11 @@ @repeat = options['repeat'] || false end def add(item) case type(item) - when :local + when :local_dir concat(media_in_local(item)) when :podcast concat(media_in_podcast(item)) when :url push(Media.new(item)) @@ -31,10 +31,10 @@ end private def type(item) if Dir.exists?(File.expand_path(item)) - :local + :local_dir elsif Media.playable? item :url elsif RSS::Parser.parse(open(item)) :podcast end