Commit graph

349 commits

Author SHA1 Message Date
98c3faa5be
Use the base class implementation in the Danbooru API 2018-08-25 18:53:05 +02:00
0b36b3e896
Remove implementation-specific tag attribute 2018-08-25 18:52:30 +02:00
d91a45c328
Move some common slots to the base class (so they can be shared) 2018-08-25 18:51:48 +02:00
8d012115f0
Simplify parsing and add support for tags 2018-08-25 18:50:57 +02:00
1026087083
Update for class changes 2018-08-24 18:28:04 +02:00
3ef9d0f281
Updates 2018-08-24 18:27:47 +02:00
c8dda3d020
Adapt to the rename 2018-08-24 18:27:24 +02:00
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
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
eef79c96a8 Only build tests if Qt5Test is found 2015-08-25 16:55:34 +02:00
86fb685877 This is not meant to be used as a test with make test 2015-08-25 16:55:12 +02:00