Editing
Xmbc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[category:rarforge]] [[category:scripts]] [[category:perl]] [[category:htpc]] [[category:xbmc]] == Inotify / Prowl - Watch Script == ; Watch directory(s) - Update XMBC library on change and notify via Prowl * This script will watch a given directory(s) and sub directories for Video files (or any other files if needed) * If a file is created, it will update XBMC library * If a file is deleted, it will clean the XBMC library * It will notify via Prowl (if enabled) ** It will group actions together if multiple (dirs/files) are created/deleted (default 60 seconds) Download: [[Media:xmbc_inotify.pl|xmbc_inotify.pl]] Download: https://www.prowlapp.com/static/prowl.pl * only required if you enable prowl notifications === Start on Boot === /etc/rc.local screen -dmS inotify /usr/local/bin/xbmc_inotify.pl '''Lang''' perl '''Modules''' use strict; use Linux::Inotify2; use Path::Class; use Number::Bytes::Human; use File::stat; use Data::Dumper; ## JSON rpc call use LWP::UserAgent; use HTTP::Request; use JSON::PP;
Summary:
Please note that all contributions to RARForge may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RARForge:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Home
All Pages
All Files
View Categories
Recent changes
Random page
Edit this menu
Tools
What links here
Related changes
Special pages
Page information