Commit Graph

143 Commits

Author SHA1 Message Date
r888888888
3c581adbc3 fixes #2915: Translated Tags should be smarter (split by delimiters) 2017-03-06 15:29:05 -08:00
evazion
21e76d55e6 Remove extraneous byte-ordering marks. 2017-02-28 19:01:10 -06:00
r888888888
9996030496 include default referer url for art station strategy 2017-02-06 17:37:45 -08:00
r888888888
39b6601afe Merge branch 'artstation' 2017-02-06 17:07:57 -08:00
r888888888
7a2f652152 add source strategy for artstation 2017-02-06 17:07:09 -08:00
evazion
98b0b2c5d8 tests: fix Net::HTTP::Persistent::Error: too many connection resets.
Works around connection reset errors in the test suite by disabling
persistent connections.

  20) Error:
Sources::PixivTest#test_: in all cases fetching source data for a new manga image should get the tags. :
Net::HTTP::Persistent::Error: too many connection resets (due to closed stream - IOError) after 0 requests on 47071328584700, last used 1.842702476 seconds ago
  app/logical/pixiv_web_agent.rb:46:in `build'
  app/logical/sources/strategies/pixiv.rb:104:in `agent'
  app/logical/sources/strategies/pixiv.rb:72:in `get'
  app/logical/sources/site.rb:6:in `get'
  test/unit/sources/pixiv_test.rb:7:in `get_source'
  test/unit/sources/pixiv_test.rb:64:in `block (3 levels) in <class:PixivTest>'

ref: github.com/sparklemotion/mechanize/issues/123
ref: http://www.rubydoc.info/gems/mechanize/Mechanize#retry_change_requests%3D-instance_method
2017-02-04 17:07:00 -06:00
Albert Yi
268b7b99ad fix nil error 2017-01-16 15:41:46 -08:00
evazion
5f4535c408 Fix #2839: "Original" tag shows up twice in Pixiv source data 2017-01-14 21:14:06 +00:00
Albert Yi
3ad639521f fixes #2805: Improve nico seiga support 2016-12-27 16:11:22 -08:00
evazion
be379cc4a2 Return artist commentary in /sources.json?url=<url>. 2016-12-27 06:01:23 +00:00
Albert Yi
b0f2b1e8dd Merge pull request #2782 from evazion/fix-2779
Fix #2779: Erroneous pixiv_id parsed for novel/background/profile images
2016-12-05 11:44:38 -08:00
Albert Yi
bd9939a50b some additional documentation about rewrite strategies 2016-12-05 11:43:18 -08:00
evazion
838d6f6eea Fix #2460: Uploading pixiv user's background image throws error.
Fix exception when uploading these types of URLs:

* http://img12.pixiv.net/profile/rapattu/119950.jpg
* http://i2.pixiv.net/img130/profile/minono_aki/8733472.jpg
* http://i2.pixiv.net/img20/img/a-park/novel/3607898.jpg
* http://i1.pixiv.net/novel-cover-original/img/2016/11/03/20/10/58/7436075_f75af69f3eacd1656d3733c72aa959cf.jpg
* http://i1.pixiv.net/background/img/2016/05/17/12/05/48/2074388_d4ac52034f7ca0af3e083d59fde7e97f.jpg

Skip rewriting sources that don't have illust IDs to avoid this
exception. Also fix `tags` so that it doesn't blow up when fetching
source data for these types of sources.
2016-12-04 02:04:44 -06:00
evazion
5302b804f1 Fix #2779: Erroneous pixiv_id parsed for novel/background/profile images 2016-12-04 02:04:44 -06:00
Albert Yi
a862c5bf03 fixes #2746: Uploading from touch.pixiv.net broken 2016-10-31 12:22:32 -07:00
Albert Yi
0757f201a0 Merge pull request #2735 from evazion/fix-whitecube-bookmarklet
Fix upload bookmarklet for Pixiv whitecube URLs.
2016-10-24 12:21:36 -07:00
Albert Yi
e8336afd81 fixes #2718: Twitter artist finding should not be case sensitive 2016-10-24 12:18:44 -07:00
evazion
f94dfbf17e Fix bookmarklet for whitecube URLs.
Make the bookmarklet work for URLs like this:

* http://www.pixiv.net/whitecube/user/607414/illust/59510800
* http://www.pixiv.net/whitecube/user/772090/illust/59595705
2016-10-22 16:11:44 -05:00
evazion
d38e83cd00 Refactor Post#parse_pixiv_id to use illust_id_from_url (fix #2695).
* Make illust_id_from_url a public class method instead of a protected
  instance method so that Post#parse_pixiv_id can use it.
* Also make illust_id_from_url swallow the exception that
  illust_id_from_url! throws so that parse_pixiv_id can use it.
2016-10-03 02:29:45 +00:00
r888888888
fc7afd44ea refactor source pixiv test
refactor pixiv download tests
refactor upload test
refactor nico seiga test
refactor twitter tests
2016-09-28 11:25:29 -07:00
r888888888
4fa2741ed2 include whitecube source/rewrite strategies 2016-09-28 11:24:54 -07:00
r888888888
dbf1a38550 fixes #2608: Batch upload strategy for "book mode" pixiv manga 2016-06-14 11:49:57 -07:00
r888888888
58aa5c6d66 fix tests 2016-05-28 14:08:44 -07:00
Toks
6f17a664e9 Fix deviantart source strategy not working for mature works 2015-09-06 23:36:34 -04:00
Toks
12be880fa9 Support fetching artist commentary from deviantart 2015-09-03 20:03:56 -04:00
r888888888
cbe627b01a fixes #2494: Twitter bookmarklet: support uploading video 2015-08-27 14:56:25 -07:00
Toks
3c92a58585 Deviantart: Fix full-size image not always being uploaded 2015-07-08 00:58:06 -04:00
r888888888
4a24fe5074 potential fix for #2431 2015-07-07 15:59:40 -07:00
Toks
6ea556944b Add support for uploading from seiga /o/ pages 2015-07-07 18:00:47 -04:00
Toks
0a5f1b53ba #2426 refactor to use predetermined referer 2015-07-05 11:02:01 -04:00
Toks
462e1ed324 Implement #2395 for nijie twitter and tumblr 2015-06-13 11:26:47 -04:00
Toks
86ce1b8deb #2404 fix nijie argumenterror 2015-06-12 11:54:52 -04:00
r888888888
866347a9f7 fix errors 2015-06-11 21:38:41 -07:00
r888888888
fd74f860ee potential fix for #2404 2015-06-10 17:28:51 -07:00
Toks
854d587373 Fix upload source fetcher fetching from wrong work page for all sites
e.g. If you were on an html work page on pixiv, clicked a link to a
different html work page on pixiv, and then clicked the bookmarklet,
then it used to fetch the source from the FIRST work you were on instead
of the second.
2015-06-03 20:59:24 -04:00
Toks
04d6640792 Fix upload page fetching source for wrong page from twitter
It would always fetch from the referer, regardless of what page that
was. It didn't even have to be a page on twitter.
2015-06-03 20:12:12 -04:00
r888888888
66dd4f072e update tests 2015-06-02 19:20:48 -07:00
r888888888
2ddc93723c fixes #2327 2015-06-02 19:20:09 -07:00
Toks
1a5053e501 fix 2015-05-28 15:59:31 -04:00
Toks
f42e4044a0 Fix "No status found with that ID." when fetching from twitter 2015-05-28 02:16:17 -04:00
Toks
804cbae85c Support fetching deviantart tags 2015-05-25 22:44:55 -04:00
Toks
0ac21b1623 Fix pixiv batch not working on old pixiv works 2015-05-23 12:00:35 -04:00
r888888888
9bdc0116bf fix pixiv tests 2015-05-14 16:50:24 -07:00
r888888888
ac6d1fa498 bug fix with pixiv api 2015-05-11 15:53:45 -07:00
r888888888
17cc8735ad first cut implementation at using public pixiv api 2015-05-11 15:19:05 -07:00
r888888888
721df95832 remove references to spapi 2015-05-11 10:57:41 -07:00
r888888888
5457d9ed4e temporarily disable pixiv sapi calls 2015-05-11 10:28:52 -07:00
Toks
e14667e757 Autodelete invalid nicoseiga session 2015-05-10 13:08:34 -04:00
Toks
4a5ea8d785 Autodelete invalod nijie session
fixes #2324
2015-05-10 12:54:33 -04:00
Toks
6faa6305dd Autodelete phpsessid
fixes #2382
2015-05-08 13:30:26 -04:00