evazion
a67edb8783
deviantart: fix artist finder for artist names with underscores.
...
Fix the artist finder for urls like this:
https://orig00.deviantart.net/4274/f/2010/230/8/a/pkmn_king_and_queen_by_mikoto_chan.jpg
that don't contain a deviantart id but do contain the artist name.
2018-09-07 12:23:48 -05:00
evazion
610391205f
deviantart: fix artist finder for profile urls missing the 'www'.
...
Fix the artist finder to work when the profile url in the artist entry
is missing the 'www'. Example:
https://deviantart.com/noizave
https://www.deviantart.com/noizave
2018-09-07 11:36:48 -05:00
evazion
e37844303d
deviantart: take artist name from url when unavailable from API.
...
In some cases we can't get the artist name from the API, either because
we can't do the API call because the url doesn't contain a deviation id,
or because the work is deleted:
* http://fc08.deviantart.net/files/f/2007/120/c/9/cool_like_me_by_47ness.jpg (work: http://fav.me/dwcohb )
* https://pre00.deviantart.net/423b/th/pre/i/2017/281/e/0/mindflayer_girl01_by_nickbeja-dbpxdt8.png (work: http://fav.me/dbpxd58 )
Switch to taking the artist name from the url (when present) to deal
with these cases. Fixes the artist finder and the artist url normalizer
to work in this situation.
2018-09-03 18:27:01 -05:00
evazion
8f87fb90d9
deviantart: handle urls without deviation ids ( fix #3864 )
...
Some older URL formats don't contain the deviation id:
* http://fc08.deviantart.net/files/f/2007/120/c/9/Cool_Like_Me_by_47ness.jpg
* http://pre06.deviantart.net/8497/th/pre/f/2009/173/c/c/cc9686111dcffffffb5fcfaf0cf069fb.jpg
In these cases we can't make the API call. Fix failures due to not being
able to do API calls in this situation.
Also fix canonical_url to use the image_url when it contains the
deviation id, or the page_url when it doesn't.
Finally, fix page_url to use the url from the API instead of the raw url
given by the user, so that it's in a consistent form for canonical_url.
2018-09-03 18:26:45 -05:00
evazion
316acead16
deviantart: fix error when uploading image belonging to deleted work.
2018-09-02 23:09:40 -05:00
evazion
2d1b1311d6
deviantart: fix sample urls not being rewritten to full size urls.
2018-09-02 23:09:29 -05:00
evazion
807c3dd5f4
deviantart: remove obsolete image sample rewrite rules.
...
Remove rewrite rules for these types of sample urls:
* http://th00.deviantart.net/fs71/PRE/f/2014/065/3/b/goruto_by_xyelkiltrox-d797tit.png
* http://th04.deviantart.net/fs70/300W/f/2009/364/4/d/Alphes_Mimic___Rika_by_Juriesute.png
These URLs aren't served to users any more, and just stripping out "PRE"
or "200H" isn't sufficient to get the full size image. In general, an
api call is required to find the full size image url.
2018-09-02 14:49:58 -05:00
evazion
b9ed676bfb
deviantart: handle origin-orig.deviantart.net urls.
2018-09-02 13:57:15 -05:00
Albert Yi
762dc3da24
Refactor sources
2018-08-24 12:10:51 -07:00
Albert Yi
135b97d511
additional fixes for deviantart artist search ( #3771 )
2018-07-27 12:31:26 -07:00
Albert Yi
a0205be8b5
fixes #3771
2018-07-06 11:44:07 -07:00
Albert Yi
99012ff342
fix tests
2018-05-09 11:59:51 -07:00
evazion
c4ae2bd2fa
Fix #3654 : Deviantart commentaries fail fetching.
2018-04-18 18:44:56 -05:00
evazion
ab25e73cd7
deviantart: replace html scraper with api client ( #3260 ).
2018-04-09 20:53:14 -05:00
evazion
80219a0ccf
commentaries: replace <img> tags with dtext links ( #3586 )
...
Replace <img> tags with dtext links, unless the <img> tag is already
inside an <a> tag.
Also strip Unicode spaces from DeviantArt commentaries.
2018-03-30 21:42:51 -05:00
r888888888
502f1298a9
fix unit tests
2017-11-20 16:30:07 -08:00
evazion
22c9cfcec5
Fix #3384 : Fetch commentary not creating fully formed textile links
2017-11-18 13:02:50 -06:00
evazion
6b8bc318b5
deviantart_test.rb: fix test failures.
2017-11-18 13:00:18 -06:00
r888888888
d4008a5ddc
fixes #3327
2017-10-09 16:32:05 -07:00
r888888888
bc69badadd
better error handling of failed deviant art logins
2017-08-28 16:19:41 -07:00
evazion
71f84b10af
tumblr: convert commentary to dtext.
...
* Convert Tumblr commentary to DText.
* Strip extraneous whitespace in links and blockquotes.
* Add newlines after block elements to ensure they're separated from
subsequent blocks.
2017-07-01 11:15:48 -05:00
evazion
f3f55daea6
Fix #3138 : Support DeviantArt login-only works.
2017-06-10 10:34:51 -05:00
evazion
2fcd823eff
deviantart: add source tests.
2017-06-09 13:19:24 -05:00