Casvt / Kapowarr

Kapowarr is a software to build and manage a comic book library, fitting in the *arr suite of software.
https://casvt.github.io/Kapowarr/
GNU General Public License v3.0
347 stars 12 forks source link

Feature Request: Goodreads bookshelf sync #164

Open jordanlambrecht opened 1 month ago

jordanlambrecht commented 1 month ago

Right now, I have a join goodreads account where my users are able to add requests to a bookshelf. Readarr uses the Import List functionality to scan that bookshelf for changes, and then auto-monitors the content on that shelf. It would be great to have that functionality with Kapowarr.

Casvt commented 1 month ago

Do the entries in the list have a CV ID?

jordanlambrecht commented 1 month ago

It looks like they do. Based on this file, this is how Readarr grabs them:

private List<ImportListItemInfo> FetchPage(int page)
        {
            var list = _listInfo.GetListInfo(Settings.ListId, page);
            var result = new List<ImportListItemInfo>();

            foreach (var book in list.Books)
            {
                var author = book.Authors.FirstOrDefault();

                result.Add(new ImportListItemInfo
                {
                    BookGoodreadsId = book.Work.Id.ToString(),
                    Book = book.Work.OriginalTitle,
                    EditionGoodreadsId = book.Id.ToString(),
                    Author = author?.Name,
                    AuthorGoodreadsId = author?.Id.ToString()
                });
            }

            return result;
        }