Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
ニコ動側仕様変更により毎時ランキングカラムのサムネイルが表示できなくなっていた問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
takayamaki committed Dec 25, 2018
1 parent 199e372 commit 84eb6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/nicovideo_ranking_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def process(hash)

desc.css('.nico-thumbnail img').tap do |link|
ret[:title] = link.attr('alt').value
ret[:thumbnail] = "https://tn.smilevideo.jp/smile?i=#{id}"
ret[:thumbnail] = link.attr('src').value.gsub(/\Ahttp:/,'https:')
end

desc.css('.nico-info-date').tap do |date|
Expand Down

0 comments on commit 84eb6cc

Please sign in to comment.