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

Feature Request: Add reader to API #243

Closed
fakerybakery opened this issue Oct 22, 2024 · 2 comments
Closed

Feature Request: Add reader to API #243

fakerybakery opened this issue Oct 22, 2024 · 2 comments
Labels

Comments

@fakerybakery
Copy link
Contributor

Hi,
Thanks for releasing the LibriVox API! Would it be possible to add the reader ID to the API?
Thanks!

@redrun45
Copy link
Collaborator

Hello!
If I'm assuming your use-case correctly, I think we already do have the reader ID where you'd need it. If you're calling the api/feed/audiobooks endpoint with ?extended=1, then each "book" item will include a list of audio sections. Each section, in turn, will display a list of readers, with a name (which may change in future) and an ID (which will not).

Here's an example, with some omissions:

<book>
 <title>The Count of Monte Cristo</title>
 <sections>
  <section>
   <id>121010</id>
   <section_number>1</section_number>
   <title>Marseilles–The Arrival </title>
   <listen_url>
    https://www.archive.org/download/count_monte_cristo_0711_librivox/count_of_monte_cristo_001_dumas_64kb.mp3
   </listen_url>
   <language>English</language>
   <playtime>1179</playtime>
   <file_name/>
   <readers>
    <reader>
     <reader_id>14</reader_id>
     <display_name>LibriVoxer 14</display_name>
    </reader>
   </readers>
  </section>
 </sections>
</book>

Might look a little prettier in json, but hey, tack on an &format=json, and enjoy!

If you meant something else, do please let me know. Otherwise, I'll mark this one as closed after a while.

@fakerybakery
Copy link
Contributor Author

Thank you so much @redrun45! Yes, that was what I was looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants