Conversation
| # chapters is a list of available chapters, sorted by position | ||
| # most commonly used for audiobooks and podcast episodes | ||
| chapters: list[MediaItemChapter] | None = None | ||
| series: UniqueList[MediaItemSeries] | None = None |
There was a problem hiding this comment.
Can a book be part of multiple series?
There was a problem hiding this comment.
Stumbled across this myself, as I had only a single series previously. I compared that to abs, and it supports multiple series. I googled a bit around, and apparently, there are some occasions where a book can be part of different aspects of e.g. a fantasy story, or you create two series e.g. for published order and chronological order.
It's probably rare, but I think it is easy to support, too.
A naming alternative could be to not name this series, but collection. In the end a series is just a collection of books, which has a defined order, so a sub-type of a collection. Would just be the wording, logic remains the same - what do you think?
|
|
||
|
|
||
| @dataclass | ||
| class AudiobookSeries(DataClassDictMixin): |
There was a problem hiding this comment.
Not too sure about this one. It kinda feels like it belongs in media_item.py, but that also makes it its own MediaItem. @marcelveldt what are your thoughts here?
I really didn't know where to put the AudiobookSeries helper, as that is for the API.