You are not logged in.

#1 2013-09-01 10:19:02

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,416
Website

xbmc-logger - keep track of every video watched on xbmc

Description
xbmc-logger is a simple perl script that will keep a log of everything you watch on xbmc.

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

crontab -l
*/5 * * * * /usr/bin/xbmc-logger

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

Example log

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
AUR: https://aur.archlinux.org/packages/xbmc-logger
Github: https://github.com/graysky2/xbmc-logger

Last edited by graysky (2013-09-01 10:35:51)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2013-09-01 15:02:13

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: xbmc-logger - keep track of every video watched on xbmc

Thanks this would be a nice addition to data collected through rescuetime specially on Raspberry Pi.

Offline

#3 2013-09-01 15:11:50

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,416
Website

Re: xbmc-logger - keep track of every video watched on xbmc

Never used rescuetime before... this script just records the time you started watching.  It doesn't log when you stop.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-09-02 17:05:27

maggie
Member
Registered: 2011-02-12
Posts: 248

Re: xbmc-logger - keep track of every video watched on xbmc

This is a great program. Thank you. Now if I could just get xscreensaver to stop running when I load my xbmc.

Offline

#5 2013-09-02 17:21:06

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,416
Website

Re: xbmc-logger - keep track of every video watched on xbmc

...did you search?
https://bbs.archlinux.org/viewtopic.php?id=161518

You actually replied to that same thread... must have forgotten tongue

Last edited by graysky (2013-09-16 15:42:30)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2013-09-16 15:37:12

maggie
Member
Registered: 2011-02-12
Posts: 248

Re: xbmc-logger - keep track of every video watched on xbmc

This is perfect, thank you.

Offline

Board footer

Powered by FluxBB