Commit Graph

208 Commits

Author SHA1 Message Date
tastytea 6123c7fbb3
Use sub-project curl_wrapper instead of custom implementation.
continuous-integration/drone/push Build is passing Details
Via git subtree from <https://schlomp.space/tastytea/curl_wrapper>.
2020-11-13 22:41:56 +01:00
tastytea 5b56ad00b3
Merge commit 'abd97989f27429dd88e26110aa4feae3e9e58b0e' into main 2020-11-13 22:08:57 +01:00
tastytea abd97989f2 Squashed 'src/curl_wrapper/' changes from 5af456a..e3b5476
e3b5476 Build position independent code (-fPIC).

git-subtree-dir: src/curl_wrapper
git-subtree-split: e3b5476d7e5fd031a775f2bc6f66fbd534fb8602
2020-11-13 22:08:57 +01:00
tastytea dead7481d8 Merge commit '54afa6babfaee9123f882fd2f2bb12b8824b4e5a' as 'src/curl_wrapper' 2020-11-13 21:27:54 +01:00
tastytea 54afa6babf Squashed 'src/curl_wrapper/' content from commit 5af456a
git-subtree-dir: src/curl_wrapper
git-subtree-split: 5af456a18b84805e0b65c187512d6810ec7961e9
2020-11-13 21:27:54 +01:00
tastytea 6426305366
Use libcurl to download URIs.
continuous-integration/drone/push Build is failing Details
2020-10-31 18:26:05 +01:00
tastytea 4dc9faf1df
Make reference in ranged for const.
continuous-integration/drone/push Build is passing Details
2020-10-31 13:30:40 +01:00
tastytea b7d5b21899
Make operator bool() in html_extract and archive_answer const. 2020-10-31 13:25:02 +01:00
tastytea eab10e28ae
Reformat uri.cpp. 2020-10-31 13:21:40 +01:00
tastytea 0b32de2846
Add .clang-format. 2020-10-31 13:01:53 +01:00
tastytea 4f78da24b5
Allow answer of archiving service to be an HTTP redirection.
continuous-integration/drone/push Build is passing Details
2020-02-07 11:56:05 +01:00
tastytea 8a4f518cb9
Fix clang-tidy warnings.
continuous-integration/drone/push Build is passing Details
2020-01-27 06:32:28 +01:00
tastytea bb5d9cecad
Change namespace of version. 2020-01-27 04:50:33 +01:00
tastytea 62fd8a8abb
Use Poco::URI::encode to percent-encode URIs in AsciiDoc export.
continuous-integration/drone/push Build was killed Details
2019-12-31 11:22:57 +01:00
tastytea 489e1fba99
Fix regex for extracting charset.
continuous-integration/drone/push Build is passing Details
2019-12-19 21:49:53 +01:00
tastytea 92db2241b0
Add Boost extras to global locale.
continuous-integration/drone/push Build is passing Details
Needed for boost::locale::to_lower() to work.
2019-12-17 13:37:06 +01:00
tastytea c3307dddf0
Prevent interpretation of AsciiDoc syntax in descriptions.
continuous-integration/drone/push Build was killed Details
2019-12-15 14:50:06 +01:00
tastytea 56dc4083ce
Do not attempt to convert encoding if it is already utf-8. 2019-12-11 23:42:45 +01:00
tastytea d4d7cd4efd
Simplify is_html(). 2019-12-11 23:42:45 +01:00
tastytea c5dc9d4098
Add Boost to Hunter config.
continuous-integration/drone/push Build is passing Details
2019-12-11 14:23:04 +01:00
tastytea 6fa611cf42
Detect file encoding of web page and convert to UTF-8.
continuous-integration/drone/push Build is failing Details
Fixes #6.
2019-12-11 13:01:44 +01:00
tastytea 7c7d28b7bc
Store document in class variable. 2019-12-11 13:00:43 +01:00
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 e8f0156296
Do not terminate before all threads are joined. 2019-10-30 06:54:40 +01:00
tastytea ea585751fc
Fix typo in NOLINT-comment. 2019-10-28 06:46:34 +01:00
tastytea 46c7ab4a82
Reduce unnecessary indentation.
continuous-integration/drone/push Build is passing Details
2019-10-28 03:04:25 +01:00
tastytea b23347f61a
Do the archiving parallel to the fetching.
continuous-integration/drone/push Build is passing Details
Potentially halves the time needed.
2019-10-27 20:43:32 +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 2b9768a5a9
Provide help for specific arguments (--help=option).
continuous-integration/drone/push Build is passing Details
2019-10-10 14:36:59 +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 b4fb62b15a
Add readability-newline.
continuous-integration/drone/push Build is passing Details
2019-09-23 19:28:19 +02:00
tastytea c484800f6d
Improved short help for --export. 2019-09-23 03:16:58 +02:00