2017-08-26, 01:32
I've seen a few posts on next TV episode (like lazyTV) but I haven't found anything that quite does what I would like.
For ease of control I would like to get to this:
- Display a list of next episodes on the TV title screen as a widget (I'm using Artic:Zephyr, but this should work with other skins)
- List is built from the most recent watched TV shows
- next episode is calculated from the last watched episode like this:
if current episode < max episode in season then next episode = current episode + 1
else if current season < max season then next episode = 0; current season++
else next episode = 0; current season = 0;
We cycle through comedy series so next unwatched like lazyTV isn't ideal, plus it makes more sense to me to just continue from last watch.
My question: how do I go about writing a script to achieve it. In artic zephyr I can link a playlist as a widget on the title screen, but I have no idea how I would generate a playlist via script like above.
For ease of control I would like to get to this:
- Display a list of next episodes on the TV title screen as a widget (I'm using Artic:Zephyr, but this should work with other skins)
- List is built from the most recent watched TV shows
- next episode is calculated from the last watched episode like this:
if current episode < max episode in season then next episode = current episode + 1
else if current season < max season then next episode = 0; current season++
else next episode = 0; current season = 0;
We cycle through comedy series so next unwatched like lazyTV isn't ideal, plus it makes more sense to me to just continue from last watch.
My question: how do I go about writing a script to achieve it. In artic zephyr I can link a playlist as a widget on the title screen, but I have no idea how I would generate a playlist via script like above.