Remove artist commentary handling from download rewrite strategies.

This commit is contained in:
evazion
2017-05-01 21:20:49 -05:00
parent b49641f775
commit b2f62482a1
11 changed files with 7 additions and 50 deletions

View File

@@ -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]

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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