Files
danbooru/app/logical
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
..
2018-08-24 12:10:51 -07:00
2018-08-24 12:10:51 -07:00
2014-02-28 16:40:11 -08:00
2018-08-03 17:40:00 -07:00
2018-08-24 12:10:51 -07:00
2018-01-13 20:55:52 -08:00
2018-08-24 12:10:51 -07:00
2018-06-23 11:15:14 -07:00
2018-08-24 12:10:51 -07:00
2018-08-24 12:10:51 -07:00
2018-06-05 16:08:45 -07:00
2017-10-12 16:36:17 -07:00
2018-02-22 11:15:42 -08:00
2018-04-26 10:25:24 -07:00
2013-04-14 18:22:25 -07:00
2018-08-24 12:10:51 -07:00
2018-01-13 20:55:52 -08:00
2017-02-21 13:40:52 -08:00