plugin.video.themoviedb.helper icon indicating copy to clipboard operation
plugin.video.themoviedb.helper copied to clipboard

Play action for seasons

Open Janhouse opened this issue 4 years ago • 4 comments

Hi! This is just a small feature request. It would be great to have context menu entry for TV show seasons to be able to use "play" action on the whole season.

Janhouse avatar Oct 18 '20 16:10 Janhouse

FYI - I've been looking into adding this feature, I just haven't been able to find a reliable way to do it yet. I'm actually very keen to get it working as I think it would be a really useful feature to have.

Because different players work in different ways, a standard queue playlist doesn't really work very well. I'm looking at maybe finding a way to integrate with the Up Next plugin instead.

jurialmunkey avatar Oct 26 '20 12:10 jurialmunkey

Good start would be an option to just pass the season to the plugin (without the episode). Certain plugins then allow the user to choose any particular episode from the season, or handle it differently. This is somewhat different from selecting a specific episode, since some plugins can deal with whole seasons (once they are available) and can't with specific episodes.

Janhouse avatar Jan 07 '22 09:01 Janhouse

Actually that's a good idea - rather than have tmdbhelper try to play the season itself by queuing items, instead have a "play_season" action that can be defined in the player file and let the end plugin deal with it.

jurialmunkey avatar Jan 07 '22 21:01 jurialmunkey

@Janhouse - I know this has been a long time coming but I think I've finally got something that reliably works!

In v4.8.3 I've added a player option "make_playlist": "true"

If you specify this option in a player file then when you play an episode, TMDbHelper will generate a playlist containing all episodes that come after this episode (e.g. if you play S2E3 it will add S2E4 onwards).

TMDbHelper will set the default player for the playlist to the player used to play the first episode so that you don't need to reselect the player when switching to the next episode.

See the Hulu player for an example: https://github.com/jurialmunkey/plugin.video.themoviedb.helper/blob/f91459335a590c92b79ea86f70958dba5110df12/resources/players/hulu.json#L1-L23

It's not exactly the same as a "Play Season" function but I think this approach is actually better as it also solves a problem for plugins that don't integrate with the Up Next plugin.

jurialmunkey avatar Jun 01 '22 05:06 jurialmunkey