Changeset 2975
- Timestamp:
- 12/10/07 15:34:35 (5 years ago)
- Files:
-
- 1 modified
-
lang/ruby/chokan/trunk/plugins/lastfm.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/chokan/trunk/plugins/lastfm.rb
r2974 r2975 31 31 log response.code.inspect 32 32 log response.body.inspect 33 return " #誰だよ^^" if response.code.to_i == 40434 return " #聞いてないわよ :http://www.last.fm/user/#{user}" if response.body.empty?33 return "誰だよ^^" if response.code.to_i == 404 34 return "聞いてないわよ http://www.last.fm/user/#{user}" if response.body.empty? 35 35 36 36 _, time, title = */^([\d]+?),(.+)/.match(response.body) 37 "#{Time.at(time.to_i).strftime('%X')} | #{title.gsub('–', '-')} :http://www.last.fm/user/#{user}"37 "#{Time.at(time.to_i).strftime('%X')} | #{title.gsub('–', '-')} http://www.last.fm/user/#{user}" 38 38 end 39 39 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)