From f3912a9eee4b5ee57ec728f4b06b50ab9a8c3eef Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 5 Nov 2011 00:47:53 +0000 Subject: [PATCH] + added scripting docs to website~~ --- website/base.css | 11 ++- website/code.css | 51 +++++++++- website/images/script.png | Bin 0 -> 12902 bytes website/script.html | 192 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 250 insertions(+), 4 deletions(-) create mode 100644 website/images/script.png create mode 100644 website/script.html diff --git a/website/base.css b/website/base.css index c5be6b89..a1e90cde 100644 --- a/website/base.css +++ b/website/base.css @@ -25,6 +25,12 @@ h3 { margin-bottom: -8px; } +hr { + border-style: dashed; + border-width: 1px 0 0 0; + border-color: lightgray; +} + .section h2.reference { padding-top: 25px; } @@ -180,9 +186,8 @@ div.screencast:hover .play { margin-bottom: 20px; } -.section p { - margin-left: 10px; - margin-right: 0px; +.section p, .section .description { + margin: 16px 0 0 10px; } .section .quote { diff --git a/website/code.css b/website/code.css index 91964f47..d89de6a8 100644 --- a/website/code.css +++ b/website/code.css @@ -9,15 +9,26 @@ code { margin: 5px 0px; } +pre { + margin: 0px; +} + code .variable { color: #7f0055; font-weight: bold; } -code .method { +code .method, div.documentation pre .method { color: #0066cc; } +code .property, div.documentation pre .property { + color: #225577; + font-size: 11pt; + font-weight: bold; + font-family: monospace; +} + code .string, code .numeral, code .regex { color: #008800; } @@ -39,3 +50,41 @@ code .option { code .argument { color: #008800; } + + +div.documentation { + font-size: 11pt; + padding: 5px; + border: 1px solid #9EADC0; + background-color: #F8F8FF; + margin-bottom: 20px; +} + +div.documentation h4 { + margin: -5px -5px 5px -5px; + background-color: #DEE3E9; + border-bottom: 1px solid #9EADC0; + padding: 2px 5px; +} + +div.documentation pre { + font-size: 13pt; + margin-top: 5px; + margin-bottom: 5px; +} + +div.documentation dt { + margin-bottom: 3px; + color: #4E4E4E; + font-size: 10pt; + font-weight: bold; +} + +div.documentation .return { + color: #4C6B87; + font-size: 10pt; +} + +div.documentation .property { + color: #225577; +} diff --git a/website/images/script.png b/website/images/script.png new file mode 100644 index 0000000000000000000000000000000000000000..930fd87d8828744d1523f0e0a6834839e0158ee5 GIT binary patch literal 12902 zcmW+-1ymbN7Y*(Z+}$a~-Cc{j7N@vdad(GMyl8RPLLq3OK%lt0yGyY@-=DLaJxTWL zym@oqn>TlEV%1gUF;GcR0RRAoqJoSj^x6nL1CbG-?`Lpf|NQ{(A*HB|41EP4Tg5;> zqqr&OEkAeo5vjtM94hV&my!?rsf`v~sbqrjoOBxAt*yckrN+*5Y+* z-QfcOr~ryGlG?s`XMuL#=;ZzON&U3FOiThPbDocn1S9FDkWV&K%n~IRS)(~OO$aRK zho!#HS<=-TfP)(LG7&(DoLxl3Q+=JtvC2*K64Qr76ACjkGbPytVn6(o&X10&AtJOE z!B*BfHahcjCZf^W7c)h(G5>Y)!kM!Ldi}fbH)6@ z^^p|*V3=b%v5n27_oX4leW6&<6zT?m#Q5`t?50qqLvnzoI{+Qv_0}G1%;-iz1`h&^ zB*{u8jd*PrP%eV9U^rlil7?iWMy4Z$d*cbxVy{n-ac?c}k z+2U`QS;f-`X(Y4;1v2<4WU2(R)Eh-(M$faY**I`_K@c-qgaV{3L$OrJmi9?4;_^R0)hN^qHPD29Xcd&*1{*Y>qkb(?0Se)S1P zVx}9}xM2L;%fYBMf~{TDNV9RrofuDaJ+m&XrQo-=r$j6*R}!Ky0Yx3ZROgbvut&JBKGH9!~56%u-W6 zhw6WE89LMN)-Srha~+AyWC_fpnLgngDUq3m2*p-Q^h8diW}9vF5Kb*DM8CZa0FX_C zp2{4T1E25B*M7DVkx&fBv-iYgXA>tRCz~IS69d5Ozx=OqH(n5bs1+gtMBZO+^n0Dj zqoSi5T{gtV$H&b!FU?Qax(Jno61TR@MPA3b1$@rQk|;#uHeUAmzvbk(;yf1qc( zo&i0Qu%>>K)tGSe!s*iJDA7}+!or3E0-CTE zj6Ez97SIrdyvbH6ukoKbsRFYU>PL zUUF<-33!@BPaa4!;q`khn8ugLC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n%H`|E?K*^d6aR?o}w@B9yl{NOyGyB-Q z`0pWXqDYgm5iZX|6}ho20_MaVrqhm81~2V#4)s}Vk-a5p^~;$z+_2w`M21xUV5F;| zg;h{>!+EC4<^pQ$O{}BPTj2w$G3P9ABNErLz69hN)C8_4kRqfF6XlN*U5fu@417I- zPHyp3(z`DRzIQ2YI08s{BW#3deonKB#)zd;@^^-GjjisfX?yQ*cCjGOrF7R9=zl^0 Nin6LQby8+w{{toJc`g6| literal 0 HcmV?d00001 diff --git a/website/script.html b/website/script.html new file mode 100644 index 00000000..1402d7ed --- /dev/null +++ b/website/script.html @@ -0,0 +1,192 @@ + + + + Script CLI + + + + + + + + + + + + + + +
+ + +
+ +

+ Script CLI + Scripting interface usage manual +

+
+ +
+
+ See Examples + Anything is possible +
+
+

About

+

+ FileBot makes scripting and automation as easy as it gets. Just script everything in Groovy + instead of bothering with cumbersome cmd and bash scripts. It's the same on all platforms and much more powerful. + The provided functions are the same as in the CLI and parameter usage + is also exactly the same. +

+

Examples

+

Running Scripts

+

+ filebot -script "path/to/script.groovy" args... + Execute a given Groovy script. Parameters defined on the cmdline when starting a script will serve as default parameters + while running that script. Find scripts for common tasks here. +

+ + +

Example Scripts

+ +
+
args.eachMediaFolder {
+	getSubtitles(folder:it)
+	rename(folder:it)
+	compute(file:it.listFiles().findAll{ it.isVideo() })
+}
Fetch subtitles, rename and compute checksums for all media folders in the file hierarchy.
+ +
+
['E:/tvshows'].eachMediaFolder{ rename(folder:it, db:'tvrage') }
+['E:/anime'].eachMediaFolder{ rename(folder:it, db:'anidb') }
+['E:/movies'].eachMediaFolder{ rename(folder:it, db:'opensubtitles') }
+
Run rename on different folder hierarchies using different episode/movie datasources.
+ +
+
args.getFiles().findAll{ 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.
+ + +

+ Function Reference + source +

+ +
+

Rename media files

+
File[] rename(folder|file, query, format, db, lang, strict)
+
Match files with episode/movie data and rename according to given naming scheme.
+
+
Parameters:
+
folder - process media files in this folder
+
file - process these media files
+
query - force series/movie name, auto-detect if not set
+
format - episode/movie naming scheme
+
db - episode/movie database
+
lang - preferred language for episode/movie titles
+
strict - turn on/off strict matching
+
+
+ +
+

Fetch subtitles for media files

+
File[] getSubtitles(folder|file, query, lang, output, encoding)
+
Download subtitles for the given given files. Lookup subtitles via hash or filename as fallback.
+
+
Parameters:
+
folder - process media files in this folder
+
file - process these media files
+
query - series/movie name
+
lang - subtitle language
+
output - force output format (e.g. srt)
+
encoding - force output charset
+
+
+ +
+

File verification

+
boolean check(folder|file)
+
Check given sfv/md5/sha1 files.
+
+
Parameters:
+
folder - check the sfv/md5/sha1 files in this folder
+
file - check these sfv/md5/sha1
+
+
+
File compute(folder|file, output, encoding)
+
Compute sfv/md5/sha1 for the given files.
+
+
Parameters:
+
folder - compute checksums for files in this folder
+
file - compute checksums for these files
+
output - absolute or relative output file or just output format (sfv, md5 or sha1)
+
encoding - output charset, defaults to UTF-8
+
+
+ +
+

Other

+
String[] fetchEpisodeList(query, format, db, lang)
+
Fetch episode data for the given tv show and format episode names.
+
+
Parameters:
+
query - tv series name
+
format - episode naming scheme
+
db - episode database
+
lang - preferred language for episode titles
+
+
+
String getMediaInfo(file, format)
+
Get mediainfo as defined by the given format.
+
+
Parameters:
+
file - get info for this file
+
format - media naming scheme
+
+
+
+ + +
+
+ +