Commit Graph

75 Commits

Author SHA1 Message Date
tastytea b6e7449a6a
Allow <title> to have arguments.
continuous-integration/drone/push Build is passing Details
Fixes title extraction on medium.com posts.
2019-12-02 15:57:56 +01:00
tastytea ad676bbc13
Add rofi export. 2019-11-28 09:03:52 +01:00
tastytea f8fd9b8c6d
Add text_to_string(). 2019-11-28 09:03:38 +01:00
tastytea 3fe1e78af4
Add `--delete`, to delete URIs from the database.
continuous-integration/drone/push Build is passing Details
Closes #5.
2019-11-28 00:56:20 +01:00
tastytea 45668b6c9f
Add export: link.
A plain list of links, separated by newline. Closes #2.
2019-11-27 21:53:48 +01:00
tastytea e1ad1a3588
Replace deprecated timelocal() with mktime().
continuous-integration/drone/push Build is passing Details
2019-11-27 02:11:30 +01:00
tastytea b585a543fb
Cosmetic: Move const up. 2019-11-09 22:37:09 +01:00
tastytea 37f6da6710
[[nodiscard]] all the functions.
continuous-integration/drone/push Build is passing Details
2019-10-30 08:51:07 +01:00
tastytea 32cf647131
Nest namespaces. 2019-10-30 08:06:12 +01:00
tastytea ea585751fc
Fix typo in NOLINT-comment. 2019-10-28 06:46:34 +01:00
tastytea 0a1396fc25
Mark `URI::archive()` const. 2019-10-27 20:38:58 +01:00
tastytea ff7b6338a0
Replace `Poco::Path::dataHome()` with `get_data_home()`.
continuous-integration/drone/push Build is passing Details
`Poco::Path::dataHome()` does not follow the XDG Base Directory Specification.
2019-10-27 07:21:18 +01:00
tastytea e1ee5d7b37
Remove dependency on libxdg-basedir and pkg-config. 2019-10-27 05:05:51 +01:00
tastytea cae1d99f9a
Add missing header.
continuous-integration/drone/push Build is passing Details
2019-10-25 06:01:14 +02:00
tastytea f8040f4803
Make type conversions explicit. 2019-10-25 06:00:36 +02:00
tastytea d8102b017e
Cut descriptions at 500 characters.
continuous-integration/drone/push Build is passing Details
2019-10-15 15:10:39 +02:00
tastytea 43d9e3947a
Disable clang-tidy warnings I can't do anything about.
continuous-integration/drone/push Build is passing Details
2019-10-08 18:03:27 +02:00
tastytea 61aa6b4653
Removed alias DB = Database.
continuous-integration/drone/push Build is passing Details
2019-09-30 13:24:00 +02:00
tastytea 2c4fb47f63
Changed namespace-indentation and header order. 2019-09-30 13:23:45 +02:00
tastytea f48b07f323
Refactored for better readability.
continuous-integration/drone/push Build is passing Details
Ran clang-tidy over the code, took most of the advice.
2019-09-25 03:58:29 +02:00
tastytea 31de8ff620
Replaced raw array with std::array. 2019-09-23 22:53:11 +02:00
tastytea da88eaf703
Moved tagpair-lambda up for better readability.
continuous-integration/drone/push Build is passing Details
2019-09-23 21:52:10 +02:00
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 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 c0d10423ba
Changed vector<Database::entry> to list<Database::entry>. 2019-08-08 15:19:42 +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 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 e79f003a79
Prepend scheme://host to location if server returns only path. 2019-08-06 17:23:49 +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