tumblr: fix exception when fetching source data.
Fixes an `undefined method `gsub' for nil:NilClass` exception when fetching source
data for this url:
* /uploads/new?url=https%3A%2F%2Fuiti-ukumo.tumblr.com%2Fpost%2F156157443158%2F2016-12
Bug introduced in 3c524aa5: `url` wasn't initialized due to `@url = url`
being removed from Sources::Site#initialize.
This commit is contained in:
@@ -4,8 +4,8 @@ module Sources
|
||||
class Site
|
||||
class NoStrategyError < RuntimeError ; end
|
||||
|
||||
attr_reader :url, :strategy
|
||||
delegate :get, :get_size, :site_name, :artist_name,
|
||||
attr_reader :strategy
|
||||
delegate :url, :get, :get_size, :site_name, :artist_name,
|
||||
:profile_url, :image_url, :tags, :artists, :unique_id,
|
||||
:file_url, :ugoira_frame_data, :ugoira_content_type, :image_urls,
|
||||
:artist_commentary_title, :artist_commentary_desc,
|
||||
|
||||
Reference in New Issue
Block a user