Changeset 15799

Show
Ignore:
Timestamp:
07/14/08 21:08:07 (6 years ago)
Author:
sho
Message:

platform/tdiary/plugin/nicovideo.rb: added date of video posted.

Location:
platform/tdiary/plugin
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/en/nicovideo.rb

    r15644 r15799  
    2828                <td width="100%" style="font-size:80%;border-width:0px;"> 
    2929                <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})</p> 
    30                 <p><strong>#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Views<br> 
     30                <p><strong>#{i[:date][0,10]}</strong> Posted<br> 
     31                <strong>#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Views<br> 
    3132                <strong>#{i[:comment_num].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Comments<br> 
    3233                <strong>#{i[:mylist].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Mylists</p> 
  • platform/tdiary/plugin/ja/nicovideo.rb

    r15644 r15799  
    2525                <td style="font-size:70%;border-width:0px;"> 
    2626                <div style="margin:4px 0px;"><a href="#{i[:url]}" target="_blank"><img alt="#{i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></div> 
    27                 <p><strong>#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')}</strong><br> 
     27                <p><strong>#{i[:date][0,10]}</strong><br> 
    2828                再生: <strong>#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong><br> 
    2929                コメント: <strong>#{i[:comment_num].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong><br> 
     
    3131                </td> 
    3232                <td width="100%" style="font-size:80%;border-width:0px;"> 
    33                 <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{i[:title]}</strong></a><br>#{i[:desc]}</p> 
     33                <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})<br>#{i[:desc]}</p> 
    3434                <div style="background:#FFF; border:solid 2px #CCC; padding:6px; margin-top:4px;"> 
    3535                <p><strong>#{i[:comment]}</strong></p> 
  • platform/tdiary/plugin/nicovideo.rb

    r15644 r15799  
    4646        i[:desc] = elem.to_a( 'description' )[0].text 
    4747        i[:comment] = @conf.mobile_agent? ? '' : elem.to_a( 'last_res_body' )[0].text 
     48        i[:date] = elem.to_a( 'first_retrieve' )[0].text 
    4849        i[:length] = elem.to_a( 'length' )[0].text 
    4950        i[:view] = elem.to_a( 'view_counter' )[0].text 
  • platform/tdiary/plugin/zh/nicovideo.rb

    r15644 r15799  
    2828                <td width="100%" style="font-size:80%;border-width:0px;"> 
    2929                <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})</p> 
    30                 <p><strong>#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Views<br> 
     30                <p><strong>#{i[:date][0,10]}</strong> Posted<br> 
     31                <strong>#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Views<br> 
    3132                <strong>#{i[:comment_num].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Comments<br> 
    3233                <strong>#{i[:mylist].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Mylists</p>