Commit Graph

615 Commits

Author SHA1 Message Date
Toks
6dca8d5915 Fix thumbnail rewrite for png images 2014-12-22 11:35:36 -05:00
Toks
4231fac4cb #2328: fix image board src rewrite 2014-12-18 11:14:25 -05:00
r888888888
43ee2875bf potential fix for #2328 2014-12-17 14:18:25 -08:00
r888888888
9763e76707 fixes #2324 2014-12-13 00:23:38 -08:00
r888888888
7175df2099 fix for Pixiv#get_image_url_from_page 2014-12-12 12:33:52 -08:00
Toks
6d565d9f87 Fix regression with pixiv manga uploads 2014-12-11 13:21:43 -05:00
r888888888
029202068d fix Pixiv#get_image_url_from_page 2014-12-11 10:05:59 -08:00
Toks
e0b0760b39 should fix #2320
Sources::Site#normalize_for_artist_finder! catches errors that occur
during the normalization process. However it only catches
StandardErrors, not Exceptions, so this makes Sources::Error a
StandardError.
2014-12-09 17:14:28 -05:00
r888888888
4fcb1d2bbc support for twitter downloads 2014-12-05 14:19:36 -08:00
r888888888
39ce77bbb1 fix nico seiga tests 2014-12-04 22:58:27 -08:00
r888888888
e8a8999a73 fix class error 2014-12-04 17:32:19 -08:00
r888888888
450f55f49b disable upload clamper 2014-12-04 17:25:56 -08:00
r888888888
d7f044e18b loosen constraints on pixiv img server regexp 2014-12-03 13:39:47 -08:00
evazion
57bb51621e Add debugger gem.
Fix random VCR failures in Pixiv tests.

Sometimes tests randomly fail because the PHPSESSID they use in their
HTTP requests to Pixiv is different than the one that was originally
recorded by VCR. This causes VCR to complain that the requests don't
match.

This is caused by the PHPSESSID being globally cached in Memcache.
Depending on the order the tests run in (which is random), one set of
tests can use a PHPSESSID that was recorded for a /different/ set of
tests.

Improve Pixiv URL matching.

* Allow URLs that are missing the http:// part. These are sometimes seen
  in artist entries.
* Ignore URLs from random Pixiv domains such as dic.pixiv.net,
  blog.pixiv.net, etc. These are also sometimes in artist entries.

Improve normalize_for_artist_finder! URL matching.

* Normalize www.pixiv.net/stacc/username URLs.
* Correctly normalize URLs that are missing the illust ID part on the end
  (i.e. http://i2.pixiv.net/img04/img/syounen_no_uta/). These are common
  in artist entries.

Match URLs strictly when normalizing for artist entries.

Only normalize Pixiv URLs that strictly match a known format. Pass any
unrecognized URLs through without attempting to normalize them, just to
be safe.

Normalize URLs when saving artist entries.
2014-12-03 13:16:05 -08:00
r888888888
63193593d9 move user promotion to scoped user block 2014-12-03 12:52:17 -08:00
r888888888
cdc6467a91 fix regexp 2014-12-03 12:48:07 -08:00
r888888888
97a71fe5a0 fixes #2298 2014-12-03 12:46:05 -08:00
Toks
6c85572ae6 Fix clamper not creating dmail and mod action 2014-12-03 13:25:14 -05:00
Toks
fc0328b9df fixes #2317 2014-12-02 16:02:21 -05:00
r888888888
582ccfb0d1 revise user post upload limit clamping logic 2014-11-25 15:31:35 -08:00
r888888888
177ef0ebcc fixes #2307 2014-11-19 17:17:26 -08:00
Toks
e6e6b2fe1c fixes #2095 2014-11-18 15:13:43 -05:00
Albert Yi
2f481cccd0 Merge pull request #2303 from r888888888/stripe
Stripe integration
2014-11-07 14:17:50 -08:00
Albert Yi
3af9b4e9e8 Merge pull request #2304 from r888888888/admin-dashboard
Admin dashboard
2014-11-07 14:12:55 -08:00
Toks
99fb4e60ab Fix iqdb
file was getting deleted before it got used
2014-11-07 02:39:15 -05:00
r888888888
7195c0b5fd admin dashboard 2014-11-06 18:05:33 -08:00
r888888888
cbf48ad948 add stripe integration for safebooru 2014-11-06 17:03:17 -08:00
r888888888
a071539487 make sure to delete tempfiles 2014-11-04 13:06:26 -08:00
r888888888
16f9a61d63 fixes #2299 2014-10-29 15:14:17 -07:00
r888888888
d9b87655fa remove unused file 2014-10-29 14:26:58 -07:00
r888888888
38d48081a0 log any ffmpeg/mkvmerge errors 2014-10-28 13:38:47 -07:00
r888888888
3aa0ee2a75 hide ugoira preview/video link if it hasn't finished processing 2014-10-28 11:30:02 -07:00
r888888888
7bc5cf9ddb support for running ugoira conversion manually from console 2014-10-28 11:15:46 -07:00
Toks
3194df7e85 Add more cases for normalizing pixiv source searches 2014-10-25 15:49:59 -04:00
r888888888
981e6dab67 no longer require presence of ugoira tag to process ugoira posts 2014-10-23 16:34:31 -07:00
r888888888
69564c4bff fix async processing for ugoira 2014-10-22 22:48:20 -07:00
r888888888
e8f973601c fixes for ugoira convert 2014-10-22 22:15:05 -07:00
Albert Yi
4ef18c61aa Merge pull request #2277 from evazion/ugoira-fix-model
Fix frame data records being created for non-ugoira posts.
2014-10-22 17:26:03 -07:00
r888888888
8d4c9d7955 fix pixiv tests 2014-10-22 17:22:36 -07:00
evazion
035466cfdf Fix call to PixivUgoiraConverter.delay.
Should be `PixivUgoiraConverter.new.delay`, not PixivUgoiraConverter.delay`.
2014-10-19 10:26:21 -05:00
r888888888
b1d5bb8272 make ugoira webm+preview generation async 2014-10-19 02:30:03 -07:00
evazion
38cb35ffbd Only fetch ugoira data for ugoira URLs.
Don't fetch ugoira data for http://i1.pixiv.net/img35/img/kinokoyarou/46165361.png URLs.
2014-10-19 02:30:03 -07:00
evazion
c0a803e3a6 Allow ugoira to be uploaded directly from the zip URL.
This refactors things such that

* Fetching the ugoira frame data happens at the end of rewrite, not
  rewrite_html_pages. This way uploading zip URLs should work.
* The source data is cached in an instance variable in case it
  was indeed fetched during rewrite_html_pages. This way it doesn't get
  fetched a second time.
2014-10-19 02:30:03 -07:00
Toks
b3dbd0be4c Simplify zip extracting code 2014-10-19 02:30:03 -07:00
Toks
230a5ad37e Fix ugoira thumbs not being scaled down to 150x150 2014-10-19 02:30:03 -07:00
Toks
5f9ce7ee47 Fix get_image_url_from_page call 2014-10-19 02:30:02 -07:00
Toks
d47327be1d Fix argument error 2014-10-19 02:30:02 -07:00
Toks
cbc3b48778 Fix zip file not being closed
file.get_input_stream leaves the file open by default, which means the
zip cannot be moved later on. But the block version of it closes the
file automatically.
2014-10-19 02:30:02 -07:00
Toks
d05311a3eb Fix error reading zip 2014-10-19 02:30:02 -07:00
r888888888
4c73fb9f79 add ugoira support in view 2014-10-19 02:30:02 -07:00