Nicoseiga: Add support for drm-served manga

This commit is contained in:
nonamethanks
2020-06-03 10:39:31 +02:00
parent 260bc997f6
commit 6fc4d3ec44
2 changed files with 6 additions and 8 deletions

View File

@@ -84,15 +84,10 @@ module Sources
end
def preview_urls
if manga_id.present?
image_urls.map do |img|
id = image_id_from_url(img)
"https://lohas.nicoseiga.jp/thumb/#{id}p"
end
elsif illust_id.present?
if illust_id.present?
["https://lohas.nicoseiga.jp/thumb/#{illust_id}i"]
else
[]
image_urls
end
end