Commit Graph

208 Commits

Author SHA1 Message Date
tastytea e374405863
Retain archive-flag on HTTP redirects.
continuous-integration/drone/push Build is passing Details
2019-09-22 23:43:46 +02:00
tastytea 2f8dffff90
RSS export: Make description more readable.
continuous-integration/drone/push Build is passing Details
Add HTML tags to make it look neat.
2019-09-21 21:46:30 +02:00
tastytea c9221757e6
RSS export: Use chunk of description as title if title is empty.
The first 100 chars of the description will be used as title.
2019-09-21 21:44:44 +02:00
tastytea e377429dc1
Improved proxy detection.
continuous-integration/drone/push Build is passing Details
Username and password are now supported.
2019-09-20 23:13:55 +02:00
tastytea 9d3ace6de0
Remove duplicates in search results.
continuous-integration/drone/push Build is passing Details
2019-09-20 18:19:33 +02:00
tastytea 3424a9009f
Removed unused regex include from asciidoc export.
continuous-integration/drone/push Build is passing Details
2019-09-20 17:52:54 +02:00
tastytea 247f49296e
Replaced std::regex with Poco::RegularExpression in searches. 2019-09-20 17:49:03 +02:00
tastytea bb8be8e47e
Replaced std::regex with Poco::RegularExpression in URI. 2019-09-20 06:29:27 +02:00
tastytea 76ed9e9222
Don't return empty entry if no data is matched.
continuous-integration/drone/push Build is passing Details
Add check if number of rows is != 0.
2019-09-06 02:10:08 +02:00
tastytea c9b82fd774
Added RSS export.
continuous-integration/drone/push Build is passing Details
2019-09-06 00:53:58 +02:00
tastytea fdca73532f
Add JSON export. 2019-09-03 17:50:14 +02:00
tastytea 561995dadb
Include with <> instead of "". 2019-08-16 17:55:29 +02:00
tastytea 3b29caaa54
Changed error codes again.
continuous-integration/drone/push Build is passing Details
2019-08-09 13:11:50 +02:00
tastytea aa622e7cc9
Moved threading into library.
continuous-integration/drone/push Build is passing Details
2019-08-09 00:42:27 +02:00
tastytea e015ec3f3f
Don't crash if protocol is missing / not known.
continuous-integration/drone/push Build is passing Details
2019-08-08 21:25:28 +02:00
tastytea 6225f4815b
Updated error codes in manpage and corrected bug in example. 2019-08-08 21:25:22 +02:00
tastytea 0df8e69c88
Set the maximum number of threads to use dynamically.
continuous-integration/drone/push Build is passing Details
The formula is reported_number_of_threads / 3 + 1. Each thread works on at least
50 entries.
2019-08-08 19:06:57 +02:00
tastytea cc4bc18062
Link pthread into binary.
continuous-integration/drone/push Build is passing Details
2019-08-08 17:42:23 +02:00
tastytea 14ec7638e8
Use up to 2 threads for searching.
continuous-integration/drone/push Build is failing Details
2019-08-08 15:41:32 +02:00
tastytea c0d10423ba
Changed vector<Database::entry> to list<Database::entry>. 2019-08-08 15:19:42 +02:00
tastytea d946d25a5b
Re-enable --regex. Forgot to add the callback.
continuous-integration/drone/push Build is passing Details
2019-08-08 10:13:49 +02:00
tastytea 7143e09901
Read the time when retrieving data from database.
continuous-integration/drone/push Build is passing Details
The datetime format is SQLite, the function expected ISO 8601.
2019-08-07 20:39:12 +02:00
tastytea 84f9c0ad97
Add Poco::Data.
continuous-integration/drone/push Build is passing Details
2019-08-07 19:52:51 +02:00
tastytea fafb0c8aa1
Switched from vsqlite++ to POCO.
continuous-integration/drone/push Build is failing Details
2019-08-07 19:41:58 +02:00
tastytea 1fe59de7e4
Make exports possible again.
continuous-integration/drone/push Build is passing Details
The vector of entries was always empty after the refactoring.
2019-08-07 10:33:27 +02:00
tastytea c218c23f97
Fix archiving by extracting the Content-Location header.
continuous-integration/drone/push Build is passing Details
2019-08-06 19:56:57 +02:00
tastytea 1b0fd8cd75
Made argument identifiers lowercase.
continuous-integration/drone/push Build is passing Details
2019-08-06 19:02:22 +02:00
tastytea 85675c8b98
Remove value from handle_info(). 2019-08-06 18:42:17 +02:00
tastytea e2eb8a1f41
Removed erroneous newline in --help output.
continuous-integration/drone/push Build is passing Details
2019-08-06 18:38:03 +02:00
tastytea a90faf7d11
Added PocoFoundation to fallback.
continuous-integration/drone/push Build is passing Details
2019-08-06 17:58:19 +02:00
tastytea 9c925e855d
Added fallback for incomplete Poco distributions.
continuous-integration/drone/push Build is failing Details
2019-08-06 17:35:12 +02:00
tastytea e6b0463e59
Merge branch 'main' into develop 2019-08-06 17:31:52 +02:00
tastytea e79f003a79
Prepend scheme://host to location if server returns only path. 2019-08-06 17:23:49 +02:00
tastytea aedbebc6f6
Moved from popl to Poco for option parsing.
continuous-integration/drone/push Build is failing Details
2019-08-06 17:14:32 +02:00
tastytea 90fff35e0e
Added error handling to calls to archive service. 2019-08-06 12:40:52 +02:00
tastytea 862e90274e
Added error handling to http_extract. 2019-08-06 12:17:39 +02:00
tastytea 9bf6031b92
Replaced ICU with POCO. 2019-08-06 12:00:18 +02:00
tastytea 92eef4c64d
Transformed the search functions into a class.
Deleted unicode tests because they are covered by search tests.
2019-08-06 12:00:17 +02:00
tastytea 6d16b2598e
Revert "Replace libxdg-basedir with Poco::Path."
This reverts commit d74b3cabfa.

Poco::Path::dataHome() is only available in >= 1.9.
2019-08-05 19:11:37 +02:00
tastytea 1d7153008a
Use numbers instead of constants for HTTP response code check.
continuous-integration/drone/push Build is failing Details
Poco 1.7 doesn't have HTTPResponse::HTTP_PERMANENT_REDIRECT.
2019-08-05 18:49:17 +02:00
tastytea d74b3cabfa
Replace libxdg-basedir with Poco::Path. 2019-08-05 18:40:36 +02:00
tastytea 406c2486f7
Added HTTP proxy support.
continuous-integration/drone/push Build is failing Details
2019-08-05 18:23:34 +02:00
tastytea d4db780925
Added Poco::Foundation and subtracted Poco::Util from linked libs. 2019-08-05 17:00:53 +02:00
tastytea 1f446388e5
Support plain HTTP as well. 2019-08-05 17:00:34 +02:00
tastytea fd2db04aad
Fixed the additional search paths for the dependency-workarounds. 2019-08-04 22:25:04 +02:00
tastytea 5e18bbdf50
Added workaround for when Poco*Config.cmake recipes cannot be found.
continuous-integration/drone/push Build is failing Details
2019-08-04 20:04:55 +02:00
tastytea 9d0dd589a7
Replaced curlpp with POCO. Only HTTPS support fo far.
continuous-integration/drone/push Build is failing Details
curlpp seems dead. 🙁
2019-08-04 18:46:53 +02:00
tastytea b4e845a352
Updated CMake recipes and changed file structure.
continuous-integration/drone/push Build is failing Details
2019-08-03 22:27:08 +02:00
tastytea 083a08beb8
Re-ordered and reformatted cmake recipes.
continuous-integration/drone/push Build is passing Details
2019-07-30 07:52:37 +02:00
tastytea 4aec2fafb3
Simplyfied entry comparison in operator ==(). 2019-07-29 12:50:53 +02:00
tastytea bdf8883d58
Added a pkg-config file.
continuous-integration/drone/push Build is passing Details
2019-07-29 04:01:47 +02:00
tastytea bc3d377254
Added a bit to Reference main page.
continuous-integration/drone/push Build is passing Details
2019-07-28 02:25:59 +02:00
tastytea 68e81ff411
Escaped mentions of URI in documentation. 2019-07-28 02:18:52 +02:00
tastytea 998cc32546
Cosmetic changes in the Documentation. 2019-07-28 02:14:06 +02:00
tastytea 38e8e1dc81
Documented types. 2019-07-28 02:13:55 +02:00
tastytea 4991f7b006
Documented URI. 2019-07-28 02:13:23 +02:00
tastytea 610173179d
Documented time functions. 2019-07-28 01:51:55 +02:00
tastytea 73262c8d16
Documented Database. 2019-07-28 01:42:57 +02:00
tastytea 57e3fc0289
Documented search functions. 2019-07-28 00:07:55 +02:00
tastytea ba78adb399
Described Export classes. 2019-07-28 00:07:22 +02:00
tastytea 1508fc0f4d
Documented Export::AsciiDoc. 2019-07-27 23:34:17 +02:00
tastytea 27a470e21f
Added remwharead.hpp, which includes all other headers.
It also contains the main page for the reference.
2019-07-27 23:18:34 +02:00
tastytea 514f88b0eb
Documented ExportBase. 2019-07-27 22:29:43 +02:00
tastytea b3bb1f05f2
namespaced library.
continuous-integration/drone/push Build is passing Details
2019-07-27 09:59:43 +02:00
tastytea 8e40bea06e
Download popl.hpp into src/cli/ in Debian example and CI recipe.
continuous-integration/drone/push Build is failing Details
2019-07-26 21:20:34 +02:00
tastytea a66880c98d
Cosmetic changes. 2019-07-26 20:58:25 +02:00
tastytea 0d18bd10ed
Install headers. 2019-07-26 20:58:25 +02:00
tastytea dccf85b60d
Moved exports into subdirectory. 2019-07-26 20:58:25 +02:00
tastytea 7fb23ee207
Split code into library and cli. 2019-07-26 20:58:24 +02:00
tastytea aa16dad796
Sort exports by date, newest to oldest.
continuous-integration/drone/push Build is failing Details
2019-07-26 03:11:44 +02:00
tastytea 2ebd27b159
Fixed tag-searching with non-ASCII characters.
--search-tags with regular expressions didn't work because regex
didn't know how to properly convert case.
2019-07-26 01:12:12 +02:00
tastytea 2fd761ee72
Fixed the fix in to_lowercase with ICU. Now it is really working!
continuous-integration/drone/push Build is failing Details
Turns out I fixed the crash, but some unicode-characters were not
lower-cased. I'm using ICU now. It is very easy, makes sense and is
all-around pleasant.
2019-07-25 06:04:53 +02:00
tastytea d6dd8d4e16
Added support for regular expressions. 2019-07-25 03:41:57 +02:00
tastytea 21fe64b59c
Fixed to_lowercase().
Converting some text to lowercase caused range errors. I don't really
know what I'm doing here, so I replaced the code with this answer from
StackOverflow: <https://stackoverflow.com/a/21395>. It works now,
let's hope it stays that way.
2019-07-25 03:06:27 +02:00
tastytea df535cc6fb
--export has no default value anymore.
continuous-integration/drone/push Build is failing Details
If --export had a default value, it would have to be called with
--export=FORMAT or -eFORMAT, while it was previously possible to call
it with --export FORMAT or -e FORMAT. This is counter-intuitive and
not backwards-compatible, so I reverted the change.
2019-07-21 17:15:55 +02:00
tastytea f2917abb3b
Added documentation for “simple” export. 2019-07-21 16:39:36 +02:00
tastytea 71bce0c87d
Added “simple” export. 2019-07-21 16:37:36 +02:00
tastytea 4406a8c64d
Unescape HTML in titles. 2019-07-21 16:25:13 +02:00
tastytea a83a2548c3
Remove HTML-encoded newlines in descriptions.
continuous-integration/drone/push Build is passing Details
We didn't catch newlines encoded as HTML entities before.
2019-07-13 18:20:37 +02:00
tastytea ff708e9403
AsciiDoc export: Disable webfonts.
continuous-integration/drone/push Build is passing Details
2019-07-12 01:49:32 +02:00
tastytea 47bcffec64
Replace ', ", ´, `, ’ and # in tags in AsciiDoc output.
continuous-integration/drone/push Build is passing Details
2019-07-06 18:24:31 +02:00
tastytea 622ccb9a03
AsciiDoc export: Escape '[' and ']' in URIs.
continuous-integration/drone/push Build is failing Details
2019-06-26 19:55:05 +02:00
tastytea 59ec3f6d6d
Remove HTML from descriptions.
continuous-integration/drone/push Build is passing Details
2019-06-11 01:25:21 +02:00
tastytea c166de0883
Made title and description extraction case insensitive.
continuous-integration/drone/push Build is passing Details
2019-06-10 16:34:25 +02:00
tastytea 93298e5301
Splitted export header.
continuous-integration/drone/push Build is passing Details
2019-06-06 18:56:49 +02:00
tastytea 00aa9ffd47
Refactored Netscape bookmarks export.
continuous-integration/drone/push Build is failing Details
2019-06-06 17:11:56 +02:00
tastytea 8ff0d39927
AsciiDoc export: Group tags only if there are more than 20. 2019-06-06 16:59:45 +02:00
tastytea 17b33eacbf
Refactored AsciiDoc export more, escape in titles.
Fixes #1.
2019-06-06 16:51:13 +02:00
tastytea 98bb87ed93
Refactored AsciiDoc export into a class. 2019-06-06 16:16:57 +02:00
tastytea 008a5fe0f2
Refactored CSV export. 2019-06-06 16:06:25 +02:00
tastytea 885148ea97
Put tags that are used only once under the header “Less used tags”.
continuous-integration/drone/push Build is passing Details
2019-05-28 21:40:26 +02:00
tastytea 747ba749e8
Added bookmark export. 2019-05-26 15:57:01 +02:00
tastytea 8cd33bb083
Changed variable to prevent shadowing. 2019-05-25 16:06:16 +02:00
tastytea 9196585a98
Added date after title in tags section of AsciiDoc export.
continuous-integration/drone/push Build is passing Details
2019-05-24 23:53:01 +02:00
tastytea a169370066
Added comment.
continuous-integration/drone/push Build is passing Details
2019-05-23 13:42:28 +02:00
tastytea c7165f7ffe
Repalced regex in URI::remove_newlines() with search & replace. 2019-05-23 13:41:47 +02:00
tastytea 92f87fb85b
Changed AsciiDoc export. Each thing is now a list item.
continuous-integration/drone/push Build is passing Details
The structure makes more sense, looks better in text browsers.
2019-05-23 12:06:27 +02:00
tastytea 8275db6687
Remove leading and trailing spaces from tags.
continuous-integration/drone/push Build is passing Details
2019-05-22 15:13:10 +02:00
tastytea 162ff88163
Made searches case insensitive. 2019-05-22 13:30:42 +02:00
tastytea f94d6a2229
Set locale globally. 2019-05-22 12:25:06 +02:00