Automatically manage a 'curated' recently watched episode playlist, which works on Roku, in a similar vein to Plex's recently watched ribbon.
Last time i tested smart playlist and playback reporting plugins, their recently watched playlist's content was not visible on my Roku.
Only 'real' watches are added to the playlist. Real are ones where there is start event on an unplayed item followed by a stop event on a played item.
-re-watching something already watched wont add an item to playlist.
-Marking a item played wont add item.
Most recent watched earliest in list.
Duplicates are not added to playlist.
Image for playlist based on the most recent watched four episodes.
per user functionality is provided by a ScripterX user condition and different instances of the script/name of playlist in the config.
should work for movies too.
Extract files to same directory
Install Scripter X plugin by @Anthony.Musgrove
set scripterX parameters
-EventType "onPlaybackStart" -Type "%item.type%" -Id "%item.id%" -Name "%item.name%" -Username "%username%" -Device "%device.name%" -userid "%user.id%"
-EventType "onPlaybackStopped" -Type "%item.type%" -Id "%item.id%" -Name "%item.name%" -Username "%username%" -Device "%device.name%" -userid "%user.id%"
Conditions: item.type equals episode.
Logplayback.ps1 is intended to be called via Scripter X plugin to create log
Process.ps1 is intended to be launched by logplayback.ps1.
Config.psd1 contains your api info, playlist config and local datetime config.
v0.0.0.2beta - not compatable with old csvs and a new config option is required.
New - New config option DateTimeFormat - match your Datetime format in (new) log to this option.
New - Process.ps1 is now launched automatically by the logger on the onplaybackstopped event, so no need to schedule process.ps1. Ensures the playlist is only a few seconds behind real life.
Playlist v0.0.0.2beta.zip 105.88KB 1 downloads
Playlist v0.0.0.1.zip 123.86KB
might need latest Powershell and a relaxed Powershell execution policy.
tested on Windows but should be agnostic.
a bit alpha - learning classes, methods, constructors, functions.
Edited by ginjaninja, 24 May 2020 - 06:43 AM.