home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
HTPC Projects
Software
Tools and other software
FileBot - The ultimate TV Renamer and Subtitle Downloader
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="kiwijunglist" data-source="post: 1002649" data-attributes="member: 76888"><p>I spent over an hour trying and I can't get it to work</p><p> </p><p>filebot.jar -script grab-fanart.groovy --q "Alias" --output "Alias.jpg"</p><p> </p><p>[code=grab-fanart.groovy]</p><p>// include http://filebot.sourceforge.net/scripts/lib/htpc.groovy</p><p>include('htpc.groovy')</p><p> </p><p>// use --q as query</p><p>def tvshows = TheTVDB.search(_args.query)</p><p> </p><p>// just grab artwork for the first result and save as --output</p><p>fetchSeriesBanner(_args.output, tvshows[0], 'fanart', null, null, null)[/code]</p><p> </p><p>Also tried:</p><p><span style="font-family: 'Consolas'"><span style="color: #424242">fetchSeriesBanner(_args.output, tvshows[0], 'fanart', null, null, null, null)</span></span></p><p> </p><p>[code=htpc.groovy]</p><p>...etc...</p><p> </p><p>/**</p><p>* TheTVDB artwork/nfo helpers</p><p>*/</p><p>def fetchSeriesBanner(outputFile, series, bannerType, bannerType2, season, override, locale) {</p><p>if (outputFile.exists() && !override) {</p><p>_log.finest "Banner already exists: $outputFile"</p><p>return outputFile</p><p>}</p><p> </p><p>// select and fetch banner</p><p>def banner = [locale, null].findResult { TheTVDB.getBanner(series, [BannerType:bannerType, BannerType2:bannerType2, Season:season, Language:it]) }</p><p>if (banner == null) {</p><p>_log.finest "Banner not found: $outputFile / $bannerType:$bannerType2"</p><p>return null</p><p>}</p><p>_log.finest "Fetching $outputFile => $banner"</p><p>return banner.url.saveAs(outputFile)</p><p>}</p><p> </p><p>...etc...[/code]</p></blockquote><p></p>
[QUOTE="kiwijunglist, post: 1002649, member: 76888"] I spent over an hour trying and I can't get it to work filebot.jar -script grab-fanart.groovy --q "Alias" --output "Alias.jpg" [code=grab-fanart.groovy] // include http://filebot.sourceforge.net/scripts/lib/htpc.groovy include('htpc.groovy') // use --q as query def tvshows = TheTVDB.search(_args.query) // just grab artwork for the first result and save as --output fetchSeriesBanner(_args.output, tvshows[0], 'fanart', null, null, null)[/code] Also tried: [FONT=Consolas][COLOR=#424242]fetchSeriesBanner(_args.output, tvshows[0], 'fanart', null, null, null, null)[/COLOR][/FONT] [code=htpc.groovy] ...etc... /** * TheTVDB artwork/nfo helpers */ def fetchSeriesBanner(outputFile, series, bannerType, bannerType2, season, override, locale) { if (outputFile.exists() && !override) { _log.finest "Banner already exists: $outputFile" return outputFile } // select and fetch banner def banner = [locale, null].findResult { TheTVDB.getBanner(series, [BannerType:bannerType, BannerType2:bannerType2, Season:season, Language:it]) } if (banner == null) { _log.finest "Banner not found: $outputFile / $bannerType:$bannerType2" return null } _log.finest "Fetching $outputFile => $banner" return banner.url.saveAs(outputFile) } ...etc...[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Software
Tools and other software
FileBot - The ultimate TV Renamer and Subtitle Downloader
Contact us
RSS
Top
Bottom