Remove artist commentary handling from download rewrite strategies.
This commit is contained in:
@@ -6,8 +6,8 @@ module Sources
|
||||
delegate :get, :get_size, :site_name, :artist_name,
|
||||
:profile_url, :image_url, :tags, :artist_record, :unique_id,
|
||||
:page_count, :file_url, :ugoira_frame_data, :ugoira_content_type, :image_urls,
|
||||
:has_artist_commentary?, :artist_commentary_title,
|
||||
:artist_commentary_desc, :rewrite_thumbnails, :illust_id_from_url, :to => :strategy
|
||||
:artist_commentary_title, :artist_commentary_desc,
|
||||
:rewrite_thumbnails, :illust_id_from_url, :to => :strategy
|
||||
|
||||
def self.strategies
|
||||
[Strategies::PixivWhitecube, Strategies::Pixiv, Strategies::NicoSeiga, Strategies::DeviantArt, Strategies::ArtStation, Strategies::Nijie, Strategies::Twitter, Strategies::Tumblr, Strategies::Pawoo]
|
||||
|
||||
@@ -53,11 +53,6 @@ module Sources
|
||||
false
|
||||
end
|
||||
|
||||
# Determines whether or not to automatically create an ArtistCommentary
|
||||
def has_artist_commentary?
|
||||
false
|
||||
end
|
||||
|
||||
def normalize_for_artist_finder!
|
||||
url
|
||||
end
|
||||
|
||||
@@ -41,10 +41,6 @@ module Sources
|
||||
"http://www.pixiv.net"
|
||||
end
|
||||
|
||||
def has_artist_commentary?
|
||||
@artist_commentary_desc.present?
|
||||
end
|
||||
|
||||
def normalized_for_artist_finder?
|
||||
url =~ %r!https?://img\.pixiv\.net/img/#{MONIKER}/?$!i
|
||||
end
|
||||
|
||||
@@ -26,10 +26,6 @@ module Sources
|
||||
"http://www.pixiv.net"
|
||||
end
|
||||
|
||||
def has_artist_commentary?
|
||||
@artist_commentary_desc.present?
|
||||
end
|
||||
|
||||
def normalizable_for_artist_finder?
|
||||
true
|
||||
end
|
||||
|
||||
@@ -30,10 +30,6 @@ module Sources::Strategies
|
||||
@artist_commentary_desc = attrs[:text]
|
||||
end
|
||||
|
||||
def has_artist_commentary?
|
||||
@artist_commentary_desc.present?
|
||||
end
|
||||
|
||||
def image_urls
|
||||
TwitterService.new.image_urls(url)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user