lib/mangadex/chapter.rb in mangadex-5.4.9 vs lib/mangadex/chapter.rb in mangadex-5.4.11
- old
+ new
@@ -86,14 +86,12 @@
sig { returns(T.nilable(String)) }
def locale_name
locale&.english_name
end
- sig { returns(T.nilable(String)) }
- def preview_image_url
- return if data_saver.empty?
-
- "https://uploads.mangadex.org/data-saver/#{attributes.hash}/#{data_saver.first}"
+ sig { params(data_saver: T::Boolean).returns(T.nilable(T::Array[String])) }
+ def page_urls(data_saver: true)
+ Mangadex::AtHome.page_urls(id, data_saver: data_saver)
end
def as_json(*)
super.merge({
locale_name: locale_name,