レス数が1スレッドの最大レス数(1000件)を超えています。残念ながら投稿することができません。
不具合報告スレ
-
>>254,258,259
なかなか対応されないので、修正方法を検討してみました。
lib/downloader.rb
879-881
[変更前]
if old_subupdate == ""
next latest_subupdate != ""
end
[変更後]
if old_subupdate == ""
next latest_subupdate != "" || latest_subdate > old_subdate
end
また、subdate が download_time より新しい場合は、
restore346 と同じように以下の処理で変更すれば対応できそうです。
def restore_subupdate(toc)
subtitles = toc["subtitles"]
modified = false
subtitles.each do |subtitle|
subupdate = subtitle["subupdate"]
next if subupdate.present?
subdate = subtitle["subdate"]
download_time = subtitle["download_time"]
next if Time.parse(subdate) <= download_time
subtitle["subdate"] = download_time.strftime("%Y/%m/%d %H:%M")
modified = true
end
if modified
puts "<green>#{toc["title"].escape} の目次データを復元しました</green>".termcolor
end
modified
end
以上、よろしくお願いします。
掲示板管理者へ連絡
無料レンタル掲示板