Page 1 of 1

FileBot 4.7 (r3935) firstAired bug

Posted: 06 May 2016, 16:35
by kim
No such property: firstAired for class: net.filebot.web.SeriesInfo
groovy.lang.MissingPropertyException: No such property: firstAired for class: net.filebot.web.SeriesInfo
I guess its because of this, but maybe a bad idea to put it to public use, if not ready ?
TheTVDB is currently being switched to a completely new API. The current 4.7 is the last version that'll use the current/old XML API.

Re: FileBot 4.7 (r3935) firstAired bug

Posted: 06 May 2016, 17:04
by rednoah
As far as I remember, That SeriesInfo property has always been called startDate.

@see https://github.com/filebot/filebot/blob ... sInfo.java

Re: FileBot 4.7 (r3935) firstAired bug

Posted: 06 May 2016, 17:35
by kim
what?
this is the problem...
htpc:

Code: Select all

def fetchSeriesArtworkAndNfo(seriesDir, seasonDir, series, season, override = false, locale = Locale.ENGLISH) {
	tryLogCatch {
		// fetch nfo
		def seriesInfo = TheTVDB.getSeriesInfo(series, locale)

Code: Select all

def fetchSeriesNfo(outputFile, seriesInfo, locale) {
	log.fine "Generate Series NFO: $seriesInfo.name [$seriesInfo.id]"
	def i = seriesInfo
	def xml = XML {
		tvshow {
			title(i.name)
			sorttitle([i.name, i.firstAired as String].findAll{ it?.length() > 0 }.findResults{ it.sortName('$2') }.join(' :: '))
			year(i.firstAired?.year)
https://github.com/filebot/scripts/blob ... tpc.groovy

Re: FileBot 4.7 (r3935) firstAired bug

Posted: 06 May 2016, 17:57
by rednoah
oh... i guess there's still a few things missing from the new API implementation...

EDIT:

Updated scripts and jar.