https://bugs.kde.org/show_bug.cgi?id=509062

            Bug ID: 509062
           Summary: Open Library - Inconsistency in the "notes" field
                    returned by the API
    Classification: Applications
           Product: tellico
      Version First 4.1.3
       Reported In:
          Platform: Flatpak
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
Tellico does not fill in the "comments" field for some books.

The problem seems to be that for some books, the Editions API returns the
"notes" key with the subkeys "type" and "value":
  * https://openlibrary.org/books/OL39492768M.json
  * https://openlibrary.org/books/OL17952222M.json
For other books, the "notes" key has no subkeys:
  * https://openlibrary.org/books/OL59946878M.json
  * https://openlibrary.org/books/OL39202180M.json
  * https://openlibrary.org/books/OL32127970M.json

I opened an issue on OpenLibrary.
For now, developers must handle both situations :
https://github.com/internetarchive/openlibrary/issues/11218


STEPS TO REPRODUCE
1. Create a new book collection
2. Add entry from "Internet Search..."
3. Search "1494871513"
   Search type: ISBN
   Search source: Open Library
4. The returned book does not contain the "comments" field.
   Yet the API call returns the notes field:
https://openlibrary.org/books/OL32127970M.json


SOFTWARE/OS VERSIONS
OS: Linux Mint 22.1 (Xia) - Cinnamon
Tellico: 4.1.3
KDE Frameworks: 6.13.0
Qt: Using 6.9.0 and built against 6.9.0
KDE Flatpak runtime (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.14.0-28-generic

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to