Alpha RandomTV Video Addon
Hi everyone. I searched for an addon to play Random TV Episodes from my library and while I found a few, none were really what I wanted. So what's a guy to do? Write his own addon of course. Big Grin

I'm a little anal when it comes to watched status and stuff in my library with the "in progress" icon, so one of my biggest requirements was to be able to not update the Play Count or resume info. So basically, I wanted an addon that would set the playcount and resume info back to what it was before playing.

There are a couple options in the setting menu:
Include Unwatched (only includes watched by default)
Update Play Count (does not update by default)
Show Notifications
Include All TV Shows or Select certain TV Shows

It seems to be working pretty well for me on a couple different Pi's running OSMC and on my Windows UWP installs, so I figured I would release it to see of others could benefit.

The code is on Git at

The zip file can be downloaded here:

Comments/feedback/bug reports welcome, but be gentle, it's my first ever addon. Wink
I may have been a little premature in posting this. LoL

Last night I noticed that changing the Repeat Mode to all persisted after closing the addon and when I went to watch a specific tv episode it repeated when it was done. Eek
That's been fixed. The addon checks the current repeat mode before setting it to all and then sets it back when it's done.

Then, when I went to bed, I had code blocks bouncing around in my head and I realized that since I changed the logic to use playlists (I originally was just playing each file after the other ended), I could change some of the logic and bum quite a bit of code that I didn't really need anymore.

So having said that, version 0.2 has been committed to github.

Logout Mark Read Team Forum Stats Members Help
RandomTV Video Addon0
This forum uses Lukasz Tkacz MyBB addons.