evazion
9ecf36585c
nijie: update for new image urls.
...
Nijie moved from this:
https://pic03.nijie.info/nijie_picture/236014_20170620101426_0.png (page: https://www.nijie.info/view.php?id=218856 )
to this:
https://pic.nijie.net/03/nijie_picture/236014_20170620101426_0.png (page: https://www.nijie.info/view.php?id=218856 )
2019-08-04 17:49:54 -05:00
evazion
1f73e60514
sources: add methods for customizing new artist entries.
...
* Rename `unique_id` to `tag_name`.
* Add `other_names` and `profile_urls` methods that sources can override
to provide extra names or urls when creating new artist entries.
2018-12-27 15:03:11 -06:00
evazion
bea8c2a4b8
nijie: fix failure to handle certain image urls.
...
Fix IMAGE_URL regex not matching urls of this form:
* https://pic04.nijie.info/nijie_picture/diff/main/287736_161475_20181112032855_1.png
This caused the illust id to not be parsed from the url, which led to `#image_url`
returning nil, which led to uploads failing because the url to download was missing.
2018-11-12 18:04:07 -06:00
evazion
5cf6a43918
sources: fix sources sometimes choosing wrong strategy ( fix #3968 )
...
Fix sources choosing the wrong strategy when the referer belongs to a
different site (for example, when uploading a twitter post with a pixiv
referer).
* Fix `match?` to only consider the main url, not the referer.
* Change `match?` to match against a list of domains given by the `domains` method.
* Change `match?` to an instance method.
2018-11-04 13:00:17 -06:00
Albert Yi
6a375d04e0
fix indentation
2018-09-27 16:58:22 -07:00
evazion
d9063a9f2a
nijie: support preview urls ( #3919 ).
2018-09-24 17:08:37 -05:00
evazion
52704ef6cd
nijie: take artist id from url when possible ( #3919 )
...
Fixes the artist finder to work on Nijie posts that have been deleted.
2018-09-23 20:08:14 -05:00
evazion
5525bbe1ca
nijie: normalize all thumbnail urls ( #3919 ).
2018-09-23 20:08:14 -05:00
evazion
d294514dc0
nijie: don't crash on invalid urls or deleted works ( #3919 ).
2018-09-23 20:08:14 -05:00
evazion
b6228505aa
nijie: fix page_url method.
...
The id in a bare image url is the member id, not the illust id.
2018-09-23 20:08:13 -05:00
Albert Yi
f16c3a3f40
fix nijie specs
2018-09-11 13:27:00 -07:00
evazion
b924c2bb9c
nijie: fix artist url normalization.
2018-09-09 13:17:52 -05:00
Albert Yi
762dc3da24
Refactor sources
2018-08-24 12:10:51 -07:00
evazion
b880b07387
sources: factor out html-to-dtext code to DText.from_html.
2017-07-01 11:15:48 -05:00
evazion
294358b4a6
nijie: fetch image_urls for batch bookmarklet.
2017-06-20 16:29:31 -05:00
evazion
2d5fc191dd
nijie: convert commentary to dtext.
2017-06-20 16:11:16 -05:00
evazion
25e7db860a
nijie: fetch artist commentary.
2017-06-20 16:11:16 -05:00
r888888888
6174d0eef2
normalize nijie popup urls ( fixes #3153 )
2017-06-14 12:26:13 -07:00
Toks
86ce1b8deb
#2404 fix nijie argumenterror
2015-06-12 11:54:52 -04: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
4a5ea8d785
Autodelete invalod nijie session
...
fixes #2324
2015-05-10 12:54:33 -04:00
r888888888
9763e76707
fixes #2324
2014-12-13 00:23:38 -08:00
Toks
f4529e73e3
Cache seiga and nijie sessions
2014-10-05 12:11:08 -04:00
Toks
7ca7ac2709
#1866 : Support Nijie source data getting
2014-06-03 18:42:24 -04:00