Kodi Community Forum
Get list of all watched video files in a specific source - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Get list of all watched video files in a specific source (/showthread.php?tid=346584)



Get list of all watched video files in a specific source - ixalthim - 2019-08-24

I'm using a different Media Center right now, and I have functionality that when I watch a TV episode in a specific directory (my Recorded TV directory), that night it will run a script to transcode the file.  Basically, I use a smart playlist to list files that are in the directory that have a playcount greater than 1.  I then pass the path of that file to a batch file that runs FFMPEG to compress.

I can create the script to encode no problem, but is it possible to get the list of files somehow?  I have tried figuring out the JSON interface, but it's not coming naturally.  I'm open to other ideas as well.

Any help would be great!