From 91380f2452090f7e76c089bae166967002c523b9 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 28 Mar 2012 02:13:11 +0000 Subject: [PATCH] * make .nfo compatible with XBMC --- website/scripts/artwork.tvdb.groovy | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/website/scripts/artwork.tvdb.groovy b/website/scripts/artwork.tvdb.groovy index f955b31a..56e4504a 100644 --- a/website/scripts/artwork.tvdb.groovy +++ b/website/scripts/artwork.tvdb.groovy @@ -23,24 +23,43 @@ def fetchNfo(outputFile, series) { info.applyXmlTemplate(''' $name $firstAired.year + + -1 + + + -1 + -1 $rating $ratingCount + $overview + $runtime $contentRating - ${!genres.empty ? genres[0] : ''} + + $id + http://www.thetvdb.com/api/1D62F2F90030C444/series/${id}/all/''' + _args.locale.language + '''.zip + ${!genres.empty ? genres[0] : ''} + + + $bannerUrl $firstAired $status $network + actors.each { $it + } + - ''').saveAs(outputFile) + ''') + .replaceAll(/\t|\r|\n/, '') // xbmc can't handle leading/trailing whitespace properly + .saveAs(outputFile) }