Method: Catori::Query#plain
- Defined in:
- lib/catori/Query.rb
#plain ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/catori/Query.rb', line 17 def plain sSupport= AudioInfo::SUPPORT.join('|') out=[] @db.select_all(@sQuery) {|row| row['file_name']=~/\.(#{sSupport})$/i sType=$1 out << sprintf("CD:%s , Artist: %s,Album: %s, Song:[%02d] %s, Type: %s",row['cd_id'],row['artist_name'], row['album_name'],row['as_track'],row['song_name'],sType) } out.join("\n") end |