From a53e0c54597b164c887278d2a7437703b0796702 Mon Sep 17 00:00:00 2001 From: Katy DeCorah Date: Tue, 3 Dec 2024 07:25:01 -0500 Subject: [PATCH 1/4] Add an input identifier for apple books to properly update books --- .../apple-books/id1719188959-html.html | 3550 +++++++++++++++++ .../apple-books/id1719188959-result.json | 98 + .../providers/libby/5004990-html.html | 1166 ++++-- .../providers/libby/5004990-result.json | 2 +- src/__tests__/workflow-apple.test.ts | 250 ++ src/utils.ts | 3 + 6 files changed, 4735 insertions(+), 334 deletions(-) create mode 100644 src/__tests__/providers/apple-books/id1719188959-html.html create mode 100644 src/__tests__/providers/apple-books/id1719188959-result.json create mode 100644 src/__tests__/workflow-apple.test.ts diff --git a/src/__tests__/providers/apple-books/id1719188959-html.html b/src/__tests__/providers/apple-books/id1719188959-html.html new file mode 100644 index 00000000..2918c7af --- /dev/null +++ b/src/__tests__/providers/apple-books/id1719188959-html.html @@ -0,0 +1,3550 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + ‎Prophet Song (Unabridged) by Paul Lynch on Apple Books + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+
+
+
+
+
+
+ + + + + + Prophet Song (Unabridged) + + + + + + + + + + Prophet Song (Unabridged) + + + +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
+ +

+ Prophet Song (Unabridged‪)‬ +

+ + + + +
    +
  • +
      +
    • +
      + + + +
      + 4.4 • 33 Ratings +
      +
      +
    • +
    +
  • +
+ +
    + +
  • +
      +
    • + $19.99 +
    • +
    +
  • +
+
+

+ + +

+ +
+ + + +
+
+ + +
+
+
+ +
+
+
    + +
  • +
      +
    • + $19.99 +
    • +
    +
  • +
+ +
+

+ + +

+ +
+ + + +
+
+ + + Also available in the Book Store + + + +
+
+
+
+
+ +
+
+

+ Publisher Description +

+
+
+

+ A fearless portrait of a society on the brink as a mother + faces a terrible choice, from Booker-winning author Paul + Lynch.

Winner of the Booker Prize 2023

On + a dark, wet evening in Dublin, scientist and mother of four + Eilish Stack answers her front door to find the GNSB on her + step. Two officers from Ireland’s newly formed secret police + are here to interrogate her husband, a trade unionist. +

Ireland is falling apart. The country is in the + grip of a government turning towards tyranny and when her + husband disappears, Eilish finds herself caught within the + nightmare logic of a society that is quickly unravelling.

How + far will she go to save her family? And what – or who – is she + willing to leave behind?

Exhilarating, terrifying + and propulsive, Prophet Song is a work of breathtaking + originality, offering a devastating vision of a country at war + and a deeply human portrait of a mother’s fight to hold her + family together. +

+ + +
+
+ + + + +
+
+
+
GENRE
+ + + + + + + + + +
Fiction
+
+
+
+
+
NARRATOR
+
GO
+
Gerry O'Brien
+
+
+
+
+
LANGUAGE
+
EN
+
English
+
+
+
+
+
LENGTH
+
08:32
+
+ hr + min +
+
+
+
+
+
RELEASED
+
2023
+
December 1
+
+
+
+
+
PUBLISHER
+
+ Bolinda Publishing Pty Ltd +
+
+
+ +
+
+
SIZE
+
527.3
+
MB
+
+
+
+ +
+
+

+ Customer Reviews +

+ +
+
+
+
+ + +
+ +
+
+ + + + +
+ +
+ + bwn4805 + + + , + + +
+ +

+ Not even 1 star +

+ +
+

+ A book of enduring pain and suffering - dark & + outright depressing with a boring storyline…..

I + really don’t get the message or point (the underlying + theme is mis-matched - no clue) teacher union/labor + representative (socialist) pushing back against a full + implementation of a socialist (communist) system……what a + joke

Find something else to read +

+ + +
+ + +
+
+
+
+ + + + + +
+ + +
+ + +
+
+
+ + + + + + The Bee Sting: A Novel (Unabridged) + + + + + + + + + + The Bee Sting: A Novel (Unabridged) + + + +
+
+ +
+
+
+ +
+ +
+ + + +
+ +
+
+ 2023 +
+ + +
+
+
+ + + +
+
+
+ + + + + + The Promise + + + + + + + + + + The Promise + + + +
+
+ +
+
+
+ +
+ +
+ + + +
+ +
+
+ 2021 +
+ + +
+
+
+ + + +
+
+
+ + + + + + Orbital + + + + + + + + + + Orbital + + + +
+
+ +
+
+
+ +
+ +
+ + + +
+ +
+
+ 2023 +
+ + +
+
+
+ + + +
+
+
+ + + + + + Creation Lake (Unabridged) + + + + + + + + + + Creation Lake (Unabridged) + + + +
+
+ +
+
+
+ +
+ +
+ + + +
+ +
+
+ 2024 +
+ + +
+
+
+ + + +
+
+
+ + + + + + Birnam Wood: A Novel (Unabridged) + + + + + + + + + + Birnam Wood: A Novel (Unabridged) + + + +
+
+ +
+
+
+ +
+ +
+ + + +
+ +
+
+ 2023 +
+ + +
+
+
+ + + +
+
+
+ + + + + + The Safekeep (Unabridged) + + + + + + + + + + The Safekeep (Unabridged) + + + +
+
+ +
+
+
+ +
+ +
+ + + +
+ +
+
+ 2024 +
+ + +
+
+
+
+
+ + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + diff --git a/src/__tests__/providers/apple-books/id1719188959-result.json b/src/__tests__/providers/apple-books/id1719188959-result.json new file mode 100644 index 00000000..c2fd4f50 --- /dev/null +++ b/src/__tests__/providers/apple-books/id1719188959-result.json @@ -0,0 +1,98 @@ +{ + "success": true, + "alIosAppStoreId": "364709193", + "alIosAppName": "Apple Books", + "ogTitle": "‎Prophet Song (Unabridged)", + "ogDescription": "‎Fiction · 2023", + "ogSiteName": "Apple Books", + "ogUrl": "https://books.apple.com/us/audiobook/prophet-song-unabridged/id1719188959", + "ogLocale": "en_US", + "twitterTitle": "‎Prophet Song (Unabridged)", + "twitterDescription": "‎Fiction · 2023", + "twitterSite": "@AppleBooks", + "twitterCard": "summary_large_image", + "ogImage": [ + { + "height": "630", + "type": "image/png", + "url": "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x630wp.png", + "width": "1200", + "alt": "Prophet Song (Unabridged) by Paul Lynch on Apple Books" + } + ], + "twitterImage": [ + { + "alt": "Prophet Song (Unabridged) by Paul Lynch on Apple Books", + "url": "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x600wp.png" + } + ], + "ogDate": "2024-09-02T12:30:50.000Z", + "charset": "utf-8", + "jsonLD": [ + { + "@context": "http://schema.org", + "@type": "Audiobook", + "additionalType": "Product", + "author": "Paul Lynch", + "datePublished": "2023-12-01T00:00:00.000Z", + "description": "A fearless portrait of a society on the brink as a mother faces a terrible choice, from Booker-winning author Paul Lynch.\n\nWinner of the Booker Prize 2023\n\nOn a dark, wet evening in Dublin, scientist and mother of four Eilish Stack answers her front door to find the GNSB on her step. Two officers fr…", + "duration": "PT8H32M40S", + "genre": "Fiction", + "image": "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x630wp.png", + "name": "Prophet Song (Unabridged)", + "provider": "Bolinda Publishing Pty Ltd", + "readBy": "Gerry O'Brien", + "thumbnailUrl": [ + "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x675wf.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x900wf.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x1200wf.jpg" + ], + "offers": { + "@type": "Offer", + "price": 19.99, + "priceCurrency": "USD", + "hasMerchantReturnPolicy": { + "@type": "MerchantReturnPolicy", + "returnPolicyCategory": "https://schema.org/MerchantReturnNotPermitted", + "merchantReturnDays": 0 + } + }, + "aggregateRating": { + "@type": "AggregateRating", + "ratingValue": 4.4, + "reviewCount": 33 + }, + "review": [ + { + "@type": "Review", + "author": "bwn4805", + "name": "Not even 1 star", + "reviewBody": "A book of enduring pain and suffering - dark & outright depressing with a boring storyline…..\n\nI really don’t get the message or point (the underlying theme is mis-matched - no clue) teacher union/labor representative (socialist) pushing back against a full implementation of a socialist (communist) system……what a joke\n\nFind something else to read", + "reviewRating": { "@type": "Rating", "ratingValue": 1 }, + "datePublished": "2024-09-02T12:30:50.000Z" + } + ] + }, + { + "@context": "https://schema.org", + "@id": "https://books.apple.com/#organization", + "@type": "Organization", + "name": "Apple Books", + "url": "https://www.apple.com/apple-books/", + "logo": "https://books.apple.com/assets/images/knowledge-graph/books.png", + "sameAs": [ + "https://www.wikidata.org/wiki/Q284115", + "https://twitter.com/AppleBooks", + "https://www.instagram.com/applebooks/", + "https://www.facebook.com/AppleBooksOfficial/" + ], + "parentOrganization": { + "@type": "Organization", + "name": "Apple", + "@id": "https://www.apple.com/#organization", + "url": "https://www.apple.com/" + } + } + ], + "requestUrl": "https://books.apple.com/us/audiobook/id1719188959" +} diff --git a/src/__tests__/providers/libby/5004990-html.html b/src/__tests__/providers/libby/5004990-html.html index a14fd3f6..e39b8e96 100644 --- a/src/__tests__/providers/libby/5004990-html.html +++ b/src/__tests__/providers/libby/5004990-html.html @@ -1,4 +1,4 @@ - + @@ -17,246 +17,624 @@ href="/dewey-16.7.1/inc/images/libby-icon-ios-180.png" sizes="180x180" /> - + - - - - + + + - - - - - + A BEST BOOK OF THE YEAR: NPR, The New York Times Book Review, O Magazine, Vanity Fair, Los Angeles Times, Glamour, Shondaland,..." + /> + + + + +
@@ -411,15 +909,17 @@

Luster

diff --git a/src/__tests__/providers/libby/5004990-result.json b/src/__tests__/providers/libby/5004990-result.json index 4ff7dc22..929b08de 100644 --- a/src/__tests__/providers/libby/5004990-result.json +++ b/src/__tests__/providers/libby/5004990-result.json @@ -23,4 +23,4 @@ "charset": "utf-8", "requestUrl": "https://share.libbyapp.com/title/5004990", "success": true -} \ No newline at end of file +} diff --git a/src/__tests__/workflow-apple.test.ts b/src/__tests__/workflow-apple.test.ts new file mode 100644 index 00000000..8e42c351 --- /dev/null +++ b/src/__tests__/workflow-apple.test.ts @@ -0,0 +1,250 @@ +import { read } from "../index"; +import * as github from "@actions/github"; +import * as core from "@actions/core"; +import returnWriteFile from "../write-file"; +import { promises, readFileSync } from "fs"; +import ogs from "open-graph-scraper"; + +jest.mock("open-graph-scraper"); + +import result_5004990 from "./providers/apple-books/id1719188959-result.json"; +const html_5004990 = readFileSync( + "./src/__tests__/providers/apple-books/id1719188959-html.html", + "utf8" +); + +jest.mock("@actions/core", () => { + return { + ...jest.requireActual("@actions/core"), + setFailed: jest.fn(), + getInput: jest.fn(), + warning: jest.fn(), + summary: { + addRaw: () => ({ + write: jest.fn(), + }), + }, + }; +}); + +jest.mock("../write-file"); + +const defaultOptions = { + filename: "my-library.json", + "required-metadata": "title,pageCount,authors,description,thumbnail", + "time-zone": "America/New_York", + providers: "google", + "thumbnail-width": "128", + "set-image": "true", +}; + +describe("workflow", () => { + beforeEach(() => { + jest + .spyOn(core, "getInput") + .mockImplementation((v) => defaultOptions[v] || undefined); + }); + afterEach(() => { + jest.restoreAllMocks(); + }); + + test("want to read", async () => { + ogs.mockResolvedValue({ + result: result_5004990, + html: html_5004990, + }); + jest.spyOn(promises, "readFile").mockResolvedValue(); + jest.useFakeTimers().setSystemTime(new Date("2022-10-01T12:00:00")); + const setFailedSpy = jest.spyOn(core, "setFailed"); + Object.defineProperty(github, "context", { + value: { + payload: { + inputs: { + identifier: "https://books.apple.com/us/audiobook/id1719188959", + "book-status": "want to read", + }, + }, + }, + }); + await read(); + expect(setFailedSpy).not.toHaveBeenCalled(); + expect(returnWriteFile.mock.calls[0]).toMatchInlineSnapshot(` + [ + "my-library.json", + [ + { + "authors": [ + "Paul Lynch", + ], + "categories": [ + "Fiction", + ], + "dateAdded": "2022-10-01", + "description": "A fearless portrait of a society on the brink as a mother faces a terrible choice, from Booker-winning author Paul Lynch. Winner of the Booker Prize 2023 On a dark, wet evening in Dublin, scientist and mother of four Eilish Stack answers her front door to find the GNSB on her step. Two officers fr…", + "format": "audiobook", + "identifier": "id1719188959", + "identifiers": { + "apple": "id1719188959", + }, + "image": "book-id1719188959.png", + "language": undefined, + "link": "https://books.apple.com/us/audiobook/id1719188959", + "publishedDate": "2023-12-01T00:00:00.000Z", + "status": "want to read", + "thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x630wp.png", + "title": "Prophet Song (Unabridged)", + }, + ], + ] + `); + }); + + test("added to started", async () => { + jest.spyOn(promises, "readFile").mockResolvedValue( + JSON.stringify([ + { + authors: ["Paul Lynch"], + categories: ["Fiction"], + dateAdded: "2022-10-01", + description: + "A fearless portrait of a society on the brink as a mother faces a terrible choice, from Booker-winning author Paul Lynch. Winner of the Booker Prize 2023 On a dark, wet evening in Dublin, scientist and mother of four Eilish Stack answers her front door to find the GNSB on her step. Two officers fr…", + format: "audiobook", + identifier: "id1719188959", + identifiers: { + apple: "id1719188959", + }, + image: "book-id1719188959.png", + language: undefined, + link: "https://books.apple.com/us/audiobook/id1719188959", + publishedDate: "2023-12-01T00:00:00.000Z", + status: "want to read", + thumbnail: + "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x630wp.png", + title: "Prophet Song (Unabridged)", + }, + ]) + ); + const setFailedSpy = jest.spyOn(core, "setFailed"); + Object.defineProperty(github, "context", { + value: { + payload: { + inputs: { + identifier: "https://books.apple.com/us/audiobook/id1719188959", + "book-status": "started", + date: "2022-10-02", + }, + }, + }, + }); + await read(); + expect(setFailedSpy).not.toHaveBeenCalled(); + expect(returnWriteFile.mock.calls[0]).toMatchInlineSnapshot(` + [ + "my-library.json", + [ + { + "authors": [ + "Paul Lynch", + ], + "categories": [ + "Fiction", + ], + "dateAbandoned": undefined, + "dateAdded": "2022-10-01", + "dateFinished": undefined, + "dateStarted": "2022-10-02", + "description": "A fearless portrait of a society on the brink as a mother faces a terrible choice, from Booker-winning author Paul Lynch. Winner of the Booker Prize 2023 On a dark, wet evening in Dublin, scientist and mother of four Eilish Stack answers her front door to find the GNSB on her step. Two officers fr…", + "format": "audiobook", + "identifier": "id1719188959", + "identifiers": { + "apple": "id1719188959", + }, + "image": "book-id1719188959.png", + "link": "https://books.apple.com/us/audiobook/id1719188959", + "publishedDate": "2023-12-01T00:00:00.000Z", + "status": "started", + "thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x630wp.png", + "title": "Prophet Song (Unabridged)", + }, + ], + ] + `); + }); + + test("started to finished", async () => { + jest.spyOn(promises, "readFile").mockResolvedValue( + JSON.stringify([ + { + authors: ["Paul Lynch"], + categories: ["Fiction"], + dateAbandoned: undefined, + dateAdded: "2022-10-01", + dateFinished: undefined, + dateStarted: "2022-10-02", + description: + "A fearless portrait of a society on the brink as a mother faces a terrible choice, from Booker-winning author Paul Lynch. Winner of the Booker Prize 2023 On a dark, wet evening in Dublin, scientist and mother of four Eilish Stack answers her front door to find the GNSB on her step. Two officers fr…", + format: "audiobook", + identifier: "id1719188959", + identifiers: { + apple: "id1719188959", + }, + image: "book-id1719188959.png", + link: "https://books.apple.com/us/audiobook/id1719188959", + publishedDate: "2023-12-01T00:00:00.000Z", + status: "started", + thumbnail: + "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x630wp.png", + title: "Prophet Song (Unabridged)", + }, + ]) + ); + const setFailedSpy = jest.spyOn(core, "setFailed"); + Object.defineProperty(github, "context", { + value: { + payload: { + inputs: { + identifier: "https://books.apple.com/us/audiobook/id1719188959", + "book-status": "finished", + date: "2022-10-03", + rating: "⭐️⭐️⭐️⭐️⭐️", + }, + }, + }, + }); + await read(); + + expect(setFailedSpy).not.toHaveBeenCalled(); + expect(returnWriteFile.mock.calls[0]).toMatchInlineSnapshot(` + [ + "my-library.json", + [ + { + "authors": [ + "Paul Lynch", + ], + "categories": [ + "Fiction", + ], + "dateAbandoned": undefined, + "dateAdded": "2022-10-01", + "dateFinished": "2022-10-03", + "dateStarted": "2022-10-02", + "description": "A fearless portrait of a society on the brink as a mother faces a terrible choice, from Booker-winning author Paul Lynch. Winner of the Booker Prize 2023 On a dark, wet evening in Dublin, scientist and mother of four Eilish Stack answers her front door to find the GNSB on her step. Two officers fr…", + "format": "audiobook", + "identifier": "id1719188959", + "identifiers": { + "apple": "id1719188959", + }, + "image": "book-id1719188959.png", + "link": "https://books.apple.com/us/audiobook/id1719188959", + "publishedDate": "2023-12-01T00:00:00.000Z", + "rating": "⭐️⭐️⭐️⭐️⭐️", + "status": "finished", + "thumbnail": "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/c9/e7/03/c9e703da-1349-dc0a-77d9-5f9c9c300bf5/9781038662170_FrontCover_Trade_DD.jpg/1200x630wp.png", + "title": "Prophet Song (Unabridged)", + }, + ], + ] + `); + }); +}); diff --git a/src/utils.ts b/src/utils.ts index c30d3f17..ca1aadf3 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -138,6 +138,9 @@ export function lookUp( if (inputIdentifier.startsWith("https://libro.fm/")) { return book.identifier === getLibrofmId(inputIdentifier); } + if (inputIdentifier.startsWith("https://books.apple.com/")) { + return book.identifier === getAppleBooksId(inputIdentifier); + } return book.identifier === inputIdentifier; } From 07f10b8eb28d5c978336f3e36bb4a8980066688d Mon Sep 17 00:00:00 2001 From: Katy DeCorah Date: Tue, 3 Dec 2024 07:30:44 -0500 Subject: [PATCH 2/4] Reduce changes --- .../providers/libby/5004990-html.html | 1166 +++++------------ .../providers/libby/5004990-result.json | 2 +- 2 files changed, 334 insertions(+), 834 deletions(-) diff --git a/src/__tests__/providers/libby/5004990-html.html b/src/__tests__/providers/libby/5004990-html.html index e39b8e96..a14fd3f6 100644 --- a/src/__tests__/providers/libby/5004990-html.html +++ b/src/__tests__/providers/libby/5004990-html.html @@ -1,4 +1,4 @@ - + @@ -17,624 +17,246 @@ href="/dewey-16.7.1/inc/images/libby-icon-ios-180.png" sizes="180x180" /> - + - - - - + + + - - - - - + A BEST BOOK OF THE YEAR: NPR, The New York Times Book Review, O Magazine, Vanity Fair, Los Angeles Times, Glamour, Shondaland,..."> + + + + +
@@ -909,17 +411,15 @@

Luster

diff --git a/src/__tests__/providers/libby/5004990-result.json b/src/__tests__/providers/libby/5004990-result.json index 929b08de..4ff7dc22 100644 --- a/src/__tests__/providers/libby/5004990-result.json +++ b/src/__tests__/providers/libby/5004990-result.json @@ -23,4 +23,4 @@ "charset": "utf-8", "requestUrl": "https://share.libbyapp.com/title/5004990", "success": true -} +} \ No newline at end of file From f6f53561fa448fa9aa0d8fd04ebcb99e8db1e768 Mon Sep 17 00:00:00 2001 From: Katy DeCorah Date: Tue, 3 Dec 2024 07:32:12 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7a8b6103..2e2fce3c 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ Depending on the type of `identifier` you submit to the action, it will use the | Identifier | Provider | Example `identifier` value | | --------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------- | | ISBN | [@library-pals/isbn](https://www.npmjs.com/package/@library-pals/isbn) | `9780385353311` | -| Libby URL | [Libby](https://libbyapp.com) via metatag and HTML scraping | `https://share.libbyapp.com/title/1499830` | -| Libro.fm URL | [Libro.fm](https://libro.fm) via metatag scraping | `https://libro.fm/audiobooks/9780553397970-station-eleven` | -| Apple Books URL | [Apple Books](https://books.apple.com/) via metatag scripaing | `https://books.apple.com/us/audiobook/circe/id1442351802` | +| Libby URL | [Libby](https://libbyapp.com) via meta tag and HTML scraping | `https://share.libbyapp.com/title/1499830` | +| Libro.fm URL | [Libro.fm](https://libro.fm) via meta tag scraping | `https://libro.fm/audiobooks/9780553397970-station-eleven` | +| Apple Books URL | [Apple Books](https://books.apple.com/) via meta tag scraping | `https://books.apple.com/us/audiobook/circe/id1442351802` | ## Book lifecycle @@ -343,8 +343,6 @@ To trigger the action, [create a workflow dispatch event](https://docs.github.co } ``` - - ## Action outputs - `nowReading`: When a new book is started this output will contain an object with the book's: title, description, thumbnail, authors, and isbn. From 50402c56dec0c90e430419845dfad5dd94570d3c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 3 Dec 2024 12:31:43 +0000 Subject: [PATCH 4/4] Update documentation --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2e2fce3c..e973936c 100644 --- a/README.md +++ b/README.md @@ -343,6 +343,8 @@ To trigger the action, [create a workflow dispatch event](https://docs.github.co } ``` + + ## Action outputs - `nowReading`: When a new book is started this output will contain an object with the book's: title, description, thumbnail, authors, and isbn.