From 2c6b2bf799ca1ec9e51ec3c4fa52be37449adf20 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 3 Dec 2011 08:07:56 +0000 Subject: [PATCH] * simplify examples with new shell api stuff --- website/script.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/script.html b/website/script.html index 75282e55..52928159 100644 --- a/website/script.html +++ b/website/script.html @@ -99,7 +99,7 @@
args.eachMediaFolder {
 	getMissingSubtitles(folder:it)
 	rename(folder:it)
-	compute(file:it.listFiles().findAll{ it.isVideo() })
+	compute(file:it.listFiles{ it.isVideo() })
 }
Fetch subtitles, rename and compute checksums for all media folders in the file hierarchy.
@@ -109,7 +109,7 @@ Run rename on different folder hierarchies using different episode/movie datasources.
-
args.getFiles().findAll{ it.isVideo() }
+
args.getFiles{ it.isVideo() }
 .sort{ a, b -> a.name.compareTo(b.name) }
 .each{ println getMediaInfo(file:it, format:'{fn} [{vf} {vc} {af}]') }
 
Print media info for all video files using the given format pattern.