Nicoseiga: Add support for drm-served manga
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user