r888888888
c2b49bf2b7
fixes #3293
2017-09-13 11:14:35 -07:00
evazion
96fddc5bec
Fix #3234 : Incorrect filesize on upload page.
2017-07-22 00:34:30 -05:00
evazion
8125d8e796
Set the default User-Agent sent for outgoing http requests.
...
* Add a `Danbooru.config.http_headers` config option.
* Refactor various places to use this option instead of setting the user
agent manually.
2017-07-19 20:25:27 -05:00
r888888888
ee6581ab7f
restore streaming behavior for Downloads::File#http_get_streaming
2017-07-13 15:31:29 -07:00
evazion
5066f75d8c
Fix Net::HTTPOK#read_body called twice error during upload ( #3135 )
...
Fixes this exception:
An error occurred: error: IOError - Net::HTTPOK#read_body called twice
/home/admin/.rbenv/versions/2.3.4/lib/ruby/2.3.0/net/http/response.rb:196:in `read_body'
/home/admin/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/httparty-0.15.5/lib/httparty/response.rb:91:in `method_missing'
/home/admin/src/danbooru/app/logical/downloads/file.rb:43:in `block (2 levels) in download!'
/home/admin/src/danbooru/app/logical/downloads/file.rb:41:in `open'
/home/admin/src/danbooru/app/logical/downloads/file.rb:41:in `block in download!'
/home/admin/src/danbooru/app/logical/downloads/file.rb:100:in `http_get_streaming'
/home/admin/src/danbooru/app/logical/downloads/file.rb:39:in `download!'
/home/admin/src/danbooru/app/models/upload.rb:408:in `download_from_source'
/home/admin/src/danbooru/app/models/upload.rb:113:in `block in process_upload'
2017-07-13 15:41:36 -05:00
r888888888
97ce9cafac
add httparty option config
2017-07-12 15:52:48 -07:00
r888888888
eb6c5e3af5
switch to httparty
2017-07-12 15:52:48 -07:00
evazion
c3ac4f3329
Fix #3197 - Post Replacement comment: use Replacement URL instead of Final Source
...
Record the URL of the image that was actually downloaded as the replacement URL.
2017-07-02 21:00:26 -05:00
evazion
118843b26a
tumblr: fetch tags, commentary, and image urls.
2017-06-25 15:34:15 -05:00
evazion
215569fbe0
artstation: fix source to page url after download.
2017-06-07 10:20:17 -05:00
evazion
db1fa60a43
Set pawoo sources to html page after upload.
2017-05-03 00:09:51 -05:00
evazion
3eafc5ae6a
Don't clobber image board sources.
2016-11-19 02:29:33 -06:00
r888888888
f85d5a5570
addresses #2498 : revised implementation
2015-08-18 12:45:10 -07:00
r888888888
407523b04c
addresses #2498 : Protect source downloader against server-side request forgery attacks
2015-08-18 12:26:26 -07:00
Toks
462e1ed324
Implement #2395 for nijie twitter and tumblr
2015-06-13 11:26:47 -04:00
Toks
bb4267af7d
remove debug
2015-05-13 18:32:02 -04:00
r888888888
ac6d1fa498
bug fix with pixiv api
2015-05-11 15:53:45 -07:00
r888888888
f12fb40e3e
implements #2350
2015-02-20 20:04:23 -08: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
97a71fe5a0
fixes #2298
2014-12-03 12:46:05 -08:00
r888888888
981e6dab67
no longer require presence of ugoira tag to process ugoira posts
2014-10-23 16:34:31 -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
r888888888
3bb06c2be4
integrate ugoiras into zip+webm+preview
2014-10-19 02:30:02 -07:00
r888888888
0a61aac231
refactor
2014-10-19 02:30:02 -07:00
r888888888
fb2219d4ac
integrate ugoira converted into upload flow
2014-10-19 02:30:01 -07:00
Toks
3cdb9fe1c2
Support new 4chan url format
2014-06-22 20:02:51 -04:00
Toks
100f3a666b
#1866 : Support twitpic source rewriting
...
* html work page -> full image
* thumbnail -> full image
2013-11-26 15:48:51 -05:00
albert
d1127da13f
add test case for download retry
2013-03-22 19:15:12 -04:00
albert
a4b67fa072
fix tests and typo bugs
2013-03-22 18:54:37 -04:00
albert
b21dcc47a7
fixes #978
2013-03-22 10:00:46 -07:00
小太
cba839ba76
Kill trailing whitespace in ruby files
2013-03-19 23:10:10 +11:00
Peter Graham
4330e85b17
Support HTTPS in Downloads::File#http_get_streaming
2013-02-22 23:07:34 -08:00
albert
365e04bb40
fixes #194
2011-12-30 16:30:32 -05:00
albert
aa2b65c48b
tinami/pixa downloads now supported
2011-09-30 14:27:04 -04:00