Merge pull request #4475 from nonamethanks/refactor_source_normalizing

Refactor source normalization
This commit is contained in:
evazion
2020-05-27 16:52:17 -05:00
committed by GitHub
26 changed files with 674 additions and 315 deletions

View File

@@ -162,6 +162,12 @@ module Sources
artist_id_from_url || artist_id_from_page
end
def normalize_for_source
return if illust_id.blank?
"https://nijie.info/view.php?id=#{illust_id}"
end
def page
return nil if page_url.blank?