Skip to content

Add support for series#3569

Open
fmunkes wants to merge 13 commits intodevfrom
series
Open

Add support for series#3569
fmunkes wants to merge 13 commits intodevfrom
series

Conversation

@fmunkes
Copy link
Copy Markdown
Contributor

@fmunkes fmunkes commented Apr 4, 2026

Depends on
music-assistant/models#196

I'm testing with abs, but I can split that off from this PR once I'm out of drafting.

I added just a single api endpoint to get series. So the idea would be, that, if the users selects that, the api calls library_items and filters series out, and then calls series.

@fmunkes fmunkes changed the title Add series controller Add support for series Apr 13, 2026
@fmunkes fmunkes marked this pull request as ready for review April 14, 2026 17:12
Comment thread music_assistant/controllers/media/audiobooks.py Outdated
self.logger.error(without_series)
if without_series:
extra_query_parts = [
"WHERE json_extract(audiobooks.metadata, '$.series') IS NULL "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be defensive here and already add ( and ) around the OR

"""
# key is the series' title
series_dict: dict[str, list[Audiobook]] = {}
audiobooks_with_series = await self.get_library_items_by_query(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think limit and offset are now applied on AudioBooks here rather than on the series itself?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, that's true. I removed it completely now, as I don't think that I can apply this offset by pure db methods? The default limit for items is 500, and having more than 500 series would be extraordinary I think. Not certain here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants