# # ja/nicovideo.rb - Japanese resource # # Copyright (C) TADA Tadashi # Distributed under GPL. # def nicovideo_player_path 'http://www.nicovideo.jp' end def nicovideo_feed( i ) <<-HTML
#{h i[:title]} #{h i[:title]} (#{i[:length]})
HTML end def nicovideo_html( i ) <<-HTML
#{h i[:title]}

#{h i[:title]} (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})

#{i[:date][0,10]} Posted
#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")} Views
#{i[:comment_num].scan(/\d+?(?=\d{3}*$)/).join(",")} Comments
#{i[:mylist].scan(/\d+?(?=\d{3}*$)/).join(",")} Mylists

HTML end