tumblr: extract info from url when api data is unavailable.

Derive the artist name / profile url / page url from the source URLs when
the API response is unavailable because the Tumblr post was deleted.

This fixes the artist finder to work on bad_tumblr_id posts.
This commit is contained in:
evazion
2018-10-09 11:57:23 -05:00
parent 0c31a5d6a9
commit b0d7d90103
3 changed files with 33 additions and 26 deletions

View File

@@ -221,6 +221,8 @@ module Sources
:profile_url => profile_url,
:image_url => image_url,
:image_urls => image_urls,
:page_url => page_url,
:canonical_url => canonical_url,
:normalized_for_artist_finder_url => normalize_for_artist_finder,
:tags => tags,
:translated_tags => translated_tags,