The Good Place not The Good Wife

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

The Good Place not The Good Wife

Post by plittlefield »

Ooops, this has been fine but running it just now gets the incorrect show...

Code: Select all

Run script [fn:amc] at [Fri Oct 20 09:08:15 BST 2017]
Parameter: minFileSize = 0
Parameter: seriesFormat = TV/{n}/{n} {s00e00}
Parameter: movieFormat = Movies/{n} ({y})
Parameter: clean = y
Parameter: ut_dir = /home/paully/Downloads/seedbox2/data/The.Good.Place.S02E06.720p.HDTV.x264-AVS[rarbg]
Parameter: ut_kind = multi
Parameter: ut_title = The.Good.Place.S02E06.720p.HDTV.x264-AVS[rarbg]
Input: /home/paully/Downloads/seedbox2/data/The.Good.Place.S02E06.720p.HDTV.x264-AVS[rarbg]/The.Good.Place.S02E06.720p.HDTV.x264-AVS.mkv
Group: [tvs:the good place] => [The.Good.Place.S02E06.720p.HDTV.x264-AVS.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [The Good Place]
Fetching episode data for [The Good Place]
Fetching episode data for [The Good Wife]
Fetching episode data for [The Good Guys]
Fetching episode data for [The Good Guys (2010)]
Fetching episode data for [The Good Wife (KR)]
[COPY] From [/home/paully/Downloads/seedbox2/data/The.Good.Place.S02E06.720p.HDTV.x264-AVS[rarbg]/The.Good.Place.S02E06.720p.HDTV.x264-AVS.mkv] to [/home/paully/Plex/TV/The Good Wife/The Good Wife S02E06.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 23955
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: The Good Place not The Good Wife

Post by rednoah »

Does TheTVDB already contain all the correct information?

If the correct data hasn't been entered yet, then FileBot will settle on the next best incorrect match.
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: The Good Place not The Good Wife

Post by plittlefield »

Yes, it does...

https://www.thetvdb.com/?tab=episode&se ... 1749&lid=7

...however, bizarrely, the date for 'First Aired' is next Thursday 26 October 2017!

TV Maze also shows it as next Thursday...

http://www.tvmaze.com/episodes/1215817/ ... nd-michael

I have watched "my file" yet so cannot say whether it's genuine or not.

Perhaps that is why FileBot had a problem with it..??? The date in the future??

:-)
User avatar
rednoah
The Source
Posts: 23955
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: The Good Place not The Good Wife

Post by rednoah »

There a good chance that episode has been added very recently, so FileBot might not see the new data yet due to caching.

However, FileBot does take the airdate into account as well, so an episode that hasn't aired yet might make less sense to FileBot compared to an episode aired yesterday evening.

Let's see if it works out of the box by next week. :lol:
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: The Good Place not The Good Wife

Post by plittlefield »

rednoah wrote: 20 Oct 2017, 14:41Let's see if it works out of the box by next week. :lol:
Noted and yes, I think it's a quirk. I'll try and remember to let you know :P
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: The Good Place not The Good Wife

Post by kim »

I just tested it and it works, no problem here

What version of Filebot do you use or it could be something in the path ?
Match Series Name => [The Good Place, The Good Place] [The Good Place]
Query Series => [The Good Place]
Group: [tvs:the good place] => [The.Good.Place.S02E06.720p.HDTV.x264-AVS.mkv]
Rename episodes using [TheTVDB]
Match Series Name => [The Good Place, The Good Place] [The Good Place]
Query Series => [The Good Place]
Match Series Name => [The Good Place, The Good Place] [The Good Place]
Query Series => [The Good Place]
Auto-detected query: [The Good Place]
Fetch resource: https://api.thetvdb.com/search/series?n ... Good+Place
Rank [The Good Place] => [The Good Place, The Good Wife, The Good Guys, The Good Guys (2010), Good Witch, The Good Fight, The Good Wife (KR), The Goodies, The Golden Girls, The Great Food Race]
Rank [The Good Place] => [The Good Place]
Fetching episode data for [The Good Place]
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: The Good Place not The Good Wife

Post by kim »

kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: The Good Place not The Good Wife

Post by kim »

To help you auto rename BEFORE you do the normal rename/scraping/getting artwork, when the source files is always +1 on episode in season 2 of "The Good Place"

Save this as e.g. "PreRename.groovy" and run like so:
"filebot -script PreRename.groovy input.files.here"

Code: Select all

// -1 Episode (if season = 2 and episode higher then 1)
offset = [season: 0, episode: -1]
sxeBefore = '(\\d{1,2})(\\D)(\\d{2})'
sxeAfter = { m, s, x, e -> (s as int == 2 && (e as int) > 1) ? ((s as int) + offset.season).pad(2) + x + ((e as int) + offset.episode).pad(2) : m}

rename(
	map: args.getFiles()
	.findAll{ it.name =~ '(?i:The.Good.Place)' }
		.each{log.info "FOUND: $it.name"}
			.findAll{ parseEpisodeNumber(it) != null}
				.collectEntries{
					[it, (it.name.replaceFirst(sxeBefore, sxeAfter))]
				}
)
Post Reply