Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Libro.fm #169

Merged
merged 16 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/read-advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ on:
description: Date to record the status of the book (YYYY-MM-DD). Leave blank for today. Optional.
type: string
identifier:
description: The book's identifier. This is an ISBN or Libby share URL. Required.
description: The book's identifier. This is an ISBN, Libby or Libro.fm share URL. Required.
# Example values:
# 9780062315007
# https://share.libbyapp.com/title/9575390
# https://libro.fm/audiobooks/9781797176888-the-ministry-of-time
required: true
type: string
notes:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/read-thumbnail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ on:
workflow_dispatch:
inputs:
identifier:
description: The book's identifier. This is an ISBN or Libby share URL. Required.
identifier:
description: The book's identifier. This is an ISBN, Libby or Libro.fm share URL. Required.
# Example values:
# 9780062315007
# https://share.libbyapp.com/title/9575390
# https://libro.fm/audiobooks/9781797176888-the-ministry-of-time
required: true
type: string
book-status:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/read.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ on:
workflow_dispatch:
inputs:
identifier:
description: The book's identifier. This is an ISBN or Libby share URL. Required.
identifier:
description: The book's identifier. This is an ISBN, Libby or Libro.fm share URL. Required.
# Example values:
# 9780062315007
# https://share.libbyapp.com/title/9575390
# https://libro.fm/audiobooks/9781797176888-the-ministry-of-time
required: true
type: string
book-status:
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ The action will then fetch the book's metadata using and commit the change in yo

Depending on the type of `identifier` you submit to the action, it will use the follow data provider.

| Identifier | Data provider |
| ---------- | ---------------------------------------------------------------------- |
| ISBN | [@library-pals/isbn](https://www.npmjs.com/package/@library-pals/isbn) |
| Libby URL | [Libby](https://libbyapp.com/shelf) via metatag and HTML scraping |
| Identifier | Data provider |
| ------------ | ---------------------------------------------------------------------- |
| ISBN | [@library-pals/isbn](https://www.npmjs.com/package/@library-pals/isbn) |
| Libby URL | [Libby](https://libbyapp.com) via metatag and HTML scraping |
| Libro.fm URL | [Libro.fm](https://libro.fm) via metatag and HTML scraping |

## Book lifecycle

Expand Down
2,446 changes: 2,446 additions & 0 deletions src/__tests__/librofm/9781797176888-html.html

Large diffs are not rendered by default.

Loading
Loading