Kodi Community Forum

Full Version: Keep track of every video watched with kodi-logger
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Description
kodi-logger is a simple perl script that will keep a log of everything you watch on kodi.

Usage
To use kodi logger, simply call the script as the user that runs kodi as some regular interval (once every 5 min for example) which is easily accomplished in your crontab:

Code:
crontab -l
*/5 * * * * /usr/local/bin/kodi-logger

The extracted output is saved to $HOME/.kodi/kodi-logger.log and simply shows the date/time and file name that was viewed.

Example log
Code:
Thu Jul 18 10:50:01 2013 /media/DVD_Rips/Sopranos/Season_3/3x01-Mr._Ruggerios_Neighborhood.mkv
Thu Jul 18 12:50:01 2013 /media/DVD_Rips/Sopranos/Season_3/3x02-Proshai_Livushka.mkv
Thu Jul 18 22:50:01 2013 /media/DVD_Rips/Sopranos/Season_3/3x03-Fortunate_Son.mkv
Fri Jul 19 20:20:01 2013 /media/DVD_Rips/Movies/There_Will_Be_Blood.mkv
Sat Jul 20 20:30:02 2013 /media/DVD_Rips/Movies/The_Girl_With_the_Dragon_Tattoo_2011.mkv

Links
Arch Linux Users AUR: https://aur.archlinux.org/packages/kodi-logger
Github: https://github.com/graysky2/kodi-logger
Updated for kodi a while ago but never updated this post. That has been fixed now.