owntone-server icon indicating copy to clipboard operation
owntone-server copied to clipboard

[Spotify] Audiobook support

Open jonnynews opened this issue 6 months ago • 9 comments

Not a bug, but a feature request. Spotify announced audiobook support back in March 2024. This would be great in owntone supported audiobooks, like it support podcasts.

jonnynews avatar Jun 29 '25 21:06 jonnynews

Seems similar to the work done on podcast in https://github.com/owntone/owntone-server/pull/1286 by @chme.

There seems to be apis present for audiobooks

https://developer.spotify.com/documentation/web-api/reference/get-an-audiobook https://developer.spotify.com/documentation/web-api/reference/get-users-saved-audiobooks

Should not be the hard to put in.

jonnynews avatar Jul 01 '25 13:07 jonnynews

Yes, I think it is a very reasonable feature to ask. I will check the API and keep you posted.

hacketiwack avatar Jul 01 '25 13:07 hacketiwack

I looked a wee bit more into it. Problem is now that the currently used Spotify library is quite outdated. Last version was released 4 years ago. I'll probably have to switch to another library, like the official one.

hacketiwack avatar Jul 03 '25 16:07 hacketiwack

The official library seems to support audiobooks. See this.

BTW, I am developer, I don't know your codebase super well, but I am help out with code review and testing. Not written C in a while, but I write javascript / typescript everyday.

jonnynews avatar Jul 04 '25 08:07 jonnynews

Thanks @jonnynews. I will check how to properly do the authentication with the official API and keep you posted about my progress.

hacketiwack avatar Jul 04 '25 12:07 hacketiwack

I created a first version that searches the audiobooks available in Spotify. It is improvable, particularly in the way purchased Spotify audiobooks should be visible in the audiobook page.

hacketiwack avatar Aug 16 '25 00:08 hacketiwack

All the changes are on this branch.

hacketiwack avatar Aug 16 '25 01:08 hacketiwack

@hacketiwack Amazing. Do you want code review / testing?

jonnynews avatar Aug 20 '25 13:08 jonnynews

@jonnynews, yes please be my guest to test this branch. I'm pretty sure there are still some bugs 😅

hacketiwack avatar Aug 20 '25 21:08 hacketiwack