Skip to content

kodi: play single item from TV show #351

@philips

Description

@philips

My HomeAssistant NFC Chromecast project has one feature that I don't know how to do with Zaparoo: play one episode at random of a TV show. The use case is letting my kids "watch TV" but I don't want them having the analysis paralysis of choosing an episode- more of a Saturday morning cartoon experience. I also want them to have to get up and tap again if they want to watch another episode.

Anyways, reading up on the Zaparoo architecture and I think this would require two design thoughts:

Tag Design

I read up on the tag design a bit and feel something similar to the tags could be used.

So, for example we could reserve a prefix like zaparoo- for zaparoo internal things and create something like:

kodi-show://1/Purpley?zaparoo-randomize-list=1&zaparoo-list-length=1

This would randomize the list. And then play a single show.

It might be too general purpose and abstract so could be like:

kodi-show://1/Purpley?zaparoo-single-random=1

What do you think of this?

Patch Design

I think the other thing to figure out here is how to integrate with the Zaparoo architecture. I think, essentially, I would patch around this line to randomize the list and select a single episode. But, maybe there is a higher level place to support this sort of behavior?

https://github.com/ZaparooProject/zaparoo-core/blob/main/pkg/platforms/shared/kodi/client.go#L416

Thanks for the input on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    batoceraBatocera platformenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions