From 00b1947fd50b810f1f371ca3d66f03026eb35c75 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 20 Dec 2011 02:39:33 +0000 Subject: [PATCH] * highlight "advanced" features --- website/base.css | 7 ++++++- website/code.css | 6 +++--- website/data/shell/watcher.groovy | 13 ++++++++----- website/index.html | 6 +++--- website/naming.html | 10 +++++----- 5 files changed, 25 insertions(+), 17 deletions(-) diff --git a/website/base.css b/website/base.css index d00c8fdd..4976e2b6 100644 --- a/website/base.css +++ b/website/base.css @@ -4,14 +4,19 @@ body { background-color: #e6e6e6; } -a,acronym { +a, acronym { color: #5c7684; text-decoration: none; border: none; } +a.important { + border-bottom: thin dotted #FB9956; +} + a:hover { text-decoration: underline; + border-bottom: none; } a img { diff --git a/website/code.css b/website/code.css index 1024017d..7ff4e8d2 100644 --- a/website/code.css +++ b/website/code.css @@ -61,10 +61,10 @@ div.documentation { } div.documentation h4 { - margin: -5px -5px 5px -5px; + margin: -5px -5px 5px -5px; background-color: #DEE3E9; - border-bottom: 1px solid #9EADC0; - padding: 2px 5px; + border-bottom: 1px solid #9EADC0; + padding: 2px 5px; } div.documentation pre { diff --git a/website/data/shell/watcher.groovy b/website/data/shell/watcher.groovy index 3548f741..590148a1 100644 --- a/website/data/shell/watcher.groovy +++ b/website/data/shell/watcher.groovy @@ -1,8 +1,11 @@ -def dirs = args.getFolders() - // watch folders and print files that were added/modified (requires Java 7) -dirs.watch { println "Batch: " + it } // default commit delay is 5 minutes -dirs.watch { println "Quick: " + it }.setCommitDelay(100) // 100 ms commit delay +def watchman = args.getFolders().watch { changes -> + println "Processing $changes" + rename(file:changes, format:"/media/storage/files/tv/{n}{'/Season '+s}/{episode}") +} + +// process after 10 minutes without any changes to the folder +watchman.setCommitDelay(10 * 60 * 1000) println "Waiting for events" -console.readLine() +console.readLine() // keep running and watch for changes diff --git a/website/index.html b/website/index.html index a3e93ad4..0293a674 100644 --- a/website/index.html +++ b/website/index.html @@ -105,7 +105,7 @@