fixes #2718: Twitter artist finding should not be case sensitive

This commit is contained in:
Albert Yi
2016-10-24 11:50:22 -07:00
parent 080eecb6b9
commit e8336afd81
3 changed files with 14 additions and 2 deletions

View File

@@ -38,6 +38,14 @@ module Sources::Strategies
TwitterService.new.image_urls(url)
end
def normalize_for_artist_finder!
url.downcase
end
def normalizable_for_artist_finder?
true
end
def status_id_from_url(url)
if url =~ %r{^https?://(?:mobile\.)?twitter\.com/\w+/status/(\d+)}
$1.to_i