Commit graph

401 commits

Author SHA1 Message Date
023d977ae4
Adapt to the rename 2018-08-24 18:27:00 +02:00
dbb59369a3
Actually get the posts in the right format 2018-08-24 18:26:10 +02:00
8518960029
Actually build Danbooru support 2018-08-24 18:25:14 +02:00
6ad1ff069d
A few const changes 2018-08-24 18:24:57 +02:00
372fb32bd3
Proper support for Danbooru boards (incomplete) 2018-08-24 18:24:30 +02:00
9dcabe537e
Some renames 2018-08-24 18:24:05 +02:00
a1853d791f
Get rid of duplicate code 2018-08-22 21:46:07 +02:00
5b07d1cf12
Add a default destructor for post 2018-08-22 21:44:29 +02:00
66a1403628
Pool updates 2018-08-22 21:44:08 +02:00
1e987cf453
Add new enums 2018-08-22 19:45:57 +02:00
65a35113f7
Add parsing functions 2018-08-22 19:45:09 +02:00
9b37769c62
Update API 2018-08-22 19:44:28 +02:00
566a7ffde3
Build manual test 2018-08-22 19:43:40 +02:00
f7f27699ca
Start simplifying APIs 2018-08-19 23:59:56 +02:00
6631e1afa2 Add scheme to thumbnailUrl if missing
Konachan.com started offering preview URLs as // to accomodate
for both HTTP and HTTPS: this however broke preview loading and also
downloading.

For now http is prepended to schemaless URLs. An addition would be to
offer things via https and adjust the scheme depending on that.
2017-03-01 16:10:01 +01:00
a8a403872d
New dependency: KTextWidgets
Needed for the plural-aware spinboxes.
2016-05-01 14:50:28 +02:00
23d33dd5c8
Support width and height when looking for posts
The UI needs to be improved, though.
2016-05-01 14:49:57 +02:00
76330d4416
Support for minimum height and width in libdanbooru
This will allow to filter posts with less than required minimum height
and width.

Currently this is done client-side, I don't plan on doing checks on the
API until/if the multiple API branch is merged.
2016-05-01 12:09:06 +02:00
e98d99a5e1 Fix all Clazy issues up to level 1 2016-01-30 16:30:07 +01:00
8de329abeb Uniform version for KF5, now that KFileMetadata is a framework 2015-12-17 22:26:05 +01:00
7854974891 Line up text with the thumbnail 2015-12-17 22:25:49 +01:00
857d34c422 Add a copy to clipboard button (fixes issue #2) 2015-12-09 00:05:16 +01:00
1397dcc61c Enable HiDPI support
Reference: issue #3
(cherry picked from commit 63d2dfdf9c)
2015-12-08 23:22:06 +01:00
63d2dfdf9c Enable HiDPI support
Reference: issue #3
2015-12-08 23:13:29 +01:00
25980bf20e Merge branch 'master' into multiple_apis 2015-12-08 00:43:13 +01:00
a560b6f7c8 Use KRecentDirs to "remember" the right directory for saving 2015-12-03 07:36:43 +01:00
fa9bc0918e Update CMakeLists with the right KIO link
Needed to use KFileWidget.
2015-12-02 00:45:11 +01:00
ea20a7c157 Use AA_DontCreateNativeWidgetSiblings to prevent rendering issues
Start supporting kfiledialog:// URLs
2015-12-02 00:44:18 +01:00
04eaacf1ec Stubs for the Danbooru API implementation 2015-08-29 22:17:05 +02:00
2c9a6a152f More stubbing for test functions 2015-08-29 10:02:38 +02:00
70fe9d5cce Adjust paths for the new location 2015-08-29 09:51:23 +02:00
803e7ab96e Move XML and JSON files to their own dir 2015-08-29 09:50:00 +02:00
d5aa1421a4 Stubs for pool testing 2015-08-29 09:49:08 +02:00
b219fdc022 Adapt tests for Danbooru XML. Now they all pass 2015-08-27 22:51:39 +02:00
17e399bbcd More fixes for Danbooru's braindead API results 2015-08-27 22:51:19 +02:00
6fc03fe504 Workaround more Danbooru brokenness
image-width vs image_width... and so on
2015-08-27 22:28:05 +02:00
a103cce1be Fix konachan XML test 2015-08-27 22:18:15 +02:00
bff2dd2ef1 Update unit tests to use XML as well.
Danbooru and Konachan aren't passing just because the posts retrieved
aren't the same.
2015-08-27 19:36:49 +02:00
dc6236f00c Extend the QVariantMap parsing to Gelbooru data 2015-08-27 19:36:00 +02:00
0ee1d034c7 Account for difference between boards when parsing XML
Apparently there's nothing similar among these boards: Gelbooru and
Konachan use xml attributes, and Danbooru uses proper tags.

This is workarounded by adding a new parameter to parseDanbooruResult()
which takes into account the difference between the two calls.

Hopefully JSON isn't broken in Danbooru so I never have to use XML...
2015-08-27 19:29:55 +02:00
7eaa207852 Add files for testing Danbooru and Gelbooru posts 2015-08-27 00:18:40 +02:00
4c662ed7c1 Add support for parsing Danbooru (donmai.us) type posts
Also added unit test, passing.
2015-08-26 20:29:30 +02:00
7ec33e8e57 Add a function to include host names in URLs that don't have it
Because appparently the original Danbooru doesn't add them...
2015-08-26 20:28:56 +02:00
316c1fb1ae Update tests to make use of the new ApiType enum 2015-08-26 16:23:56 +02:00
d3da86ff28 Move ApiType to the Danbooru namespace to prevent circular includes
Adjust all signatures to match for this change
2015-08-26 16:23:25 +02:00
e806ab602f Add TODO 2015-08-26 00:32:05 +02:00
b763cfbff3 Simplify test loading 2015-08-26 00:31:10 +02:00
c2139d9c33 Move to data driven test, in anticipation for subsequent APIs 2015-08-26 00:23:39 +02:00
d840bf5319 Make the JSON readable 2015-08-26 00:23:26 +02:00
42ad3813d3 Even if they're not using QTest, group manual tests together 2015-08-25 16:57:09 +02:00