Commit graph

55 commits

Author SHA1 Message Date
Mouse Reeve
3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00
Mouse Reeve
1903812b1d Class method for checking if urls are blocked 2021-04-10 11:44:29 -07:00
Mouse Reeve
63d37c281d Handle invalid authors when importing books 2021-04-07 08:59:33 -07:00
Mouse Reeve
05fcfbc66f Show more data about books in search 2021-03-13 13:55:20 -08:00
Mouse Reeve
393ea625a2
Merge pull request #726 from mouse-reeve/search-tests
Search tests
2021-03-13 09:27:46 -08:00
Mouse Reeve
d3b1941eaa Uses get_data helper in isbn search (plus test) 2021-03-13 09:07:19 -08:00
Mouse Reeve
2ab913018d Use get_data helper when executing searches 2021-03-13 08:52:36 -08:00
Mouse Reeve
919b166241 Catch error in serializing unknown boosts 2021-03-13 08:13:20 -08:00
Mouse Reeve
70296e760b Runs black 2021-03-08 08:49:10 -08:00
Henri Bourcereau
703ff60271 isbn search 2021-03-06 18:09:15 +01:00
Mouse Reeve
cad19ee878 Merge branch 'main' into inbox-refactor 2021-02-24 09:51:34 -08:00
Mouse Reeve
726a8739a3 way too much logging coming from http errors 2021-02-22 11:42:45 -08:00
Mouse Reeve
a9ca3a4290 Fixes calls to to_model, init with activitypub partially serialized 2021-02-16 20:17:38 -08:00
Mouse Reeve
41cef9bdfd Catch expand book data load error 2021-02-10 17:54:49 -08:00
Mouse Reeve
4c2ec43fce Don't set default edition if it's already set 2021-02-10 16:53:51 -08:00
Mouse Reeve
f46a708f7e Handle connector exceptions with sketchy book data from OL 2021-02-10 12:00:16 -08:00
Mouse Reeve
9a564a846a Better error handling and loggin in get_data 2021-02-10 11:56:08 -08:00
Mouse Reeve
9a114e1736 Don't match arbitrary results on empty isbn queries 2021-01-07 09:26:05 -08:00
Mouse Reeve
8c8aae2c92 Check if a book is already shelved after import 2021-01-02 12:08:30 -08:00
Mouse Reeve
d828b0ead9 Remove books manager at long last 2021-01-02 08:14:28 -08:00
Mouse Reeve
e169565e00 Makes expanding book data fully part of the connector 2021-01-02 07:45:45 -08:00
Mouse Reeve
877e3356e5
Merge pull request #436 from mouse-reeve/search-errors
Catch error response decoding json in search connector
2020-12-30 12:18:43 -08:00
Mouse Reeve
e5a914c3c2 Fixes API search causing 500 error 2020-12-30 11:37:26 -08:00
Mouse Reeve
d7db6d50ba Log errors in conenctor search 2020-12-30 09:14:07 -08:00
Mouse Reeve
21f67c9e28 Catch error response decoding json in search connector 2020-12-30 09:11:00 -08:00
Renato "Lond" Cerqueira
fb10cb35ad Add BookWyrm user-agent to http requests
This allows other software to identify BookWyrm in calls, as well as
will allow BookWyrm to differentiate between calls done from other
fediverse software and BookWyrm to answer with specific BookWyrm data.
2020-12-30 12:36:50 +01:00
Mouse Reeve
ac261d7b1a Send connector with search result
also fix typo in get_work_from_edition_data function
2020-12-27 14:33:34 -08:00
Mouse Reeve
c3d0e8e7f7 Fixes openlibrary import to prefer editions with covers 2020-12-21 11:47:47 -08:00
Mouse Reeve
3e61f48da2 Fixes loading more data 2020-12-19 16:16:39 -08:00
Mouse Reeve
d3671d981f Use author activitypub in OL connector 2020-12-19 15:20:31 -08:00
Mouse Reeve
2128219b05 Use activitypub to_model de-serializer in openlibrary connector 2020-12-19 14:56:03 -08:00
Mouse Reeve
31a407d74a Use name field only for author name
It feels janky to remove a more granular name designation, but all these
first/last name fields were algorithmically populated by a dubious
process of splitting the name by a space character. If it makes sense to
have first/last name fields, it should be re-added with some
consideration.
2020-12-12 09:53:21 -08:00
Mouse Reeve
27c45c0584 Catch json decode error in loading data 2020-12-03 13:42:02 -08:00
Mouse Reeve
a85043b351 Updates to_model to use fields 2020-12-03 12:35:57 -08:00
Mouse Reeve
9ddd60ce16 Fixes broadcast tests 2020-11-29 09:40:15 -08:00
Mouse Reeve
c9433a3c7e Simplify bookwyrm connector abstract 2020-11-28 18:56:28 -08:00
Mouse Reeve
847014720e Refactors bookwyrm connector to use activitypub serializer 2020-11-24 16:05:00 -08:00
Mouse Reeve
86504989b4 fixes import matching with local books 2020-11-13 09:59:57 -08:00
Mouse Reeve
441220a547 Fixes edition/work author correction check 2020-11-04 12:12:29 -08:00
Mouse Reeve
ff96835c2a Migrate default edition field to work model
Fixes #281
2020-11-04 11:27:49 -08:00
Mouse Reeve
2ac9a6fcee Fixes updating books from remote instances 2020-11-02 09:34:46 -08:00
Mouse Reeve
0393d81230 Fixes loading covers and authors 2020-10-30 17:18:25 -07:00
Mouse Reeve
203e526a83 Fixes loading remote books
- saves remote_id correctly
- loads remote books for incoming statuses
2020-10-30 17:04:10 -07:00
Mouse Reeve
6e97592518 Trying to catch more http request errors 2020-10-30 14:19:43 -07:00
Mouse Reeve
7ce0890a41 Stop assuming every book is Hamlet 2020-10-29 15:30:53 -07:00
Mouse Reeve
a46d7f5dc7 Change how goodread import writes reviews
- adds published date
 - broadcasts review imports
 - completes review and shelve actions as it goes
 - some small connector fixes

 fixes #247
2020-10-29 14:31:06 -07:00
Mouse Reeve
90cccc455e Another error check point in abstract connector 2020-10-28 17:16:16 -07:00
Mouse Reeve
6b5246f06a
Merge pull request #209 from mouse-reeve/connector-errors
Raise errors when connectors fail
2020-10-01 08:29:39 -07:00
Mouse Reeve
94d5986ff2 More error handling in connector/books manager 2020-09-30 20:09:25 -07:00
Mouse Reeve
0b8f8e3659 Fixes celery media path 2020-09-30 19:43:42 -07:00