Trying to rename Forensic Files episodes via the episode title

Any questions? Need some help?
Post Reply
mikeas
Posts: 3
Joined: 21 Oct 2021, 11:09

Trying to rename Forensic Files episodes via the episode title

Post by mikeas »

I have checked via

Code: Select all

filebot -list --q "Forensic Files"
and the episodes are listed in the order I want - to match up with Sonarr

Directory contains episodes named like this, and they have the wrong s##e## basically:

Code: Select all

Forensic Files 2005 - s09e01 - Road Rage.mp4
Forensic Files 2005 - s09e02 - Hunter or Hunted_.mp4
Forensic Files 2005 - s09e03 - News at 11.mp4
Forensic Files 2005 - s09e04 - Burning Desire.mp4
Forensic Files 2005 - s09e05 - Stick 'em Up.mp4
Forensic Files 2005 - s09e06 - Making the Collar.mp4
Forensic Files 2005 - s09e07 - A Daughter's Journey.mp4
Forensic Files 2005 - s09e08 - Badge of Betrayal.mp4
Forensic Files 2005 - s09e09 - Deadly Martrimony.mp4
Forensic Files 2005 - s09e10 - Point of Origin.mp4
Forensic Files 2005 - s09e11 - Seeds for Doubt.mp4
Forensic Files 2005 - s09e12 - Saving Face.mp4
Forensic Files 2005 - s09e13 - Northern Exposure.mp4
Forensic Files 2005 - s09e14 - For Love or Money.mp4
Forensic Files 2005 - s09e15 - South of the Border.mp4
Forensic Files 2005 - s09e16 - Walking Terror.mp4
Forensic Files 2005 - s09e17 - In Harm's Way.mp4
Forensic Files 2005 - s09e18 - No Corpus Delicti.mp4
Forensic Files 2005 - s09e19 - Cloak of Deceit.mp4
Forensic Files 2005 - s09e20 - Head Games.mp4
Forensic Files 2005 - s09e21 - The Financial Downfall.mp4
Forensic Files 2005 - s09e22 - Pinned by the Evidence.mp4
Forensic Files 2005 - s09e23 - Cries Unheard.mp4
Forensic Files 2005 - s09e24 - Buried Treasure.mp4
Forensic Files 2005 - s09e25 - Muddy Waters.mp4
Forensic Files 2005 - s09e26 - Silk Stalkings.mp4
Forensic Files 2005 - s09e27 - Fishing for the Truth.mp4
Forensic Files 2005 - s09e28 - The Stake-Out.mp4
And I have been trying a few different command lines based on my searches for this sort of renaming but I seem to be missing some major concept since it's sure not working well. The GUI is fine for most stuff, but this one is tricky

Code: Select all

filebot -rename *.mp4 --db TheTVDB --q "Forensic Files" -non-strict --format "H:\Media\TV Shows\{n} ({y})/Season {s.pad(2)}/{n} ({y}) - {s00e00} - {t} HDTV" --mapper "episode.number(null)"
And even tried this

Code: Select all

filebot -rename *.mp4 --db TheTVDB --q "Forensic Files" -non-strict --order absolute --format "H:\Media\TV Shows\{n} ({y})/Season {s.pad(2)}/{n} ({y}) - {s00e00} - {t} HDTV" --mapper "episode.number(null).map(episodelist.findAll{airdate==it.airdate}).reverse()"
But all I seem to get is the following

Code: Select all

Rename episodes using [TheTVDB] with [Airdate Order]
Fetching episode data for [Forensic Files]
Apply mapper [episode.number(null)] on [407] episodes
Exclude [Forensic Files - 1x01 - The Disappearance of Helle Crafts] due to map failure: groovy.lang.MissingMethodException: No signature of method: net.filebot.web.Episode.number() is applicable for argument types: (null) values: [null]
Possible solutions: dump(), use([Ljava.lang.Object;)
Exclude [Forensic Files - 1x02 - The Magic Bullet] due to map failure: groovy.lang.MissingMethodException: No signature of method: net.filebot.web.Episode.number() is applicable for argument types: (null) values: [null]
Possible solutions: dump(), use([Ljava.lang.Object;)
Exclude [Forensic Files - Special 4 - Payback] due to map failure: groovy.lang.MissingMethodException: No signature of method: net.filebot.web.Episode.number() is applicable for argument types: (null) values: [null]
Possible solutions: dump(), use([Ljava.lang.Object;)
.........
Exclude [Forensic Files - Special 5 - The J.F.K. Assassination: Investigation Reopened] due to map failure: groovy.lang.MissingMethodException: No signature of method: net.filebot.web.Episode.number() is applicable for argument types: (null) values: [null]
Possible solutions: dump(), use([Ljava.lang.Object;)
Exclude [Forensic Files - Special 6 - The Lindbergh Baby Kidnapping: Investigation Reopened] due to map failure: groovy.lang.MissingMethodException: No signature of method: net.filebot.web.Episode.number() is applicable for argument types: (null) values: [null]
Possible solutions: dump(), use([Ljava.lang.Object;)
Exclude [Forensic Files - Special 7 - Forensic Files 25th Anniversary Special] due to map failure: groovy.lang.MissingMethodException: No signature of method: net.filebot.web.Episode.number() is applicable for argument types: (null) values: [null]
Possible solutions: dump(), use([Ljava.lang.Object;)
No matching episode: Forensic Files 2005 - s09e01 - Road Rage.mp4
No matching episode: Forensic Files 2005 - s09e02 - Hunter or Hunted_.mp4
No matching episode: Forensic Files 2005 - s09e03 - News at 11.mp4
No matching episode: Forensic Files 2005 - s09e04 - Burning Desire.mp4
No matching episode: Forensic Files 2005 - s09e05 - Stick 'em Up.mp4
No matching episode: Forensic Files 2005 - s09e06 - Making the Collar.mp4
No matching episode: Forensic Files 2005 - s09e07 - A Daughter's Journey.mp4
No matching episode: Forensic Files 2005 - s09e08 - Badge of Betrayal.mp4
No matching episode: Forensic Files 2005 - s09e09 - Deadly Martrimony.mp4
No matching episode: Forensic Files 2005 - s09e10 - Point of Origin.mp4
No matching episode: Forensic Files 2005 - s09e11 - Seeds for Doubt.mp4
No matching episode: Forensic Files 2005 - s09e12 - Saving Face.mp4
No matching episode: Forensic Files 2005 - s09e13 - Northern Exposure.mp4
No matching episode: Forensic Files 2005 - s09e14 - For Love or Money.mp4
No matching episode: Forensic Files 2005 - s09e15 - South of the Border.mp4
No matching episode: Forensic Files 2005 - s09e16 - Walking Terror.mp4
No matching episode: Forensic Files 2005 - s09e17 - In Harm's Way.mp4
No matching episode: Forensic Files 2005 - s09e18 - No Corpus Delicti.mp4
No matching episode: Forensic Files 2005 - s09e19 - Cloak of Deceit.mp4
No matching episode: Forensic Files 2005 - s09e20 - Head Games.mp4
No matching episode: Forensic Files 2005 - s09e21 - The Financial Downfall.mp4
No matching episode: Forensic Files 2005 - s09e22 - Pinned by the Evidence.mp4
No matching episode: Forensic Files 2005 - s09e23 - Cries Unheard.mp4
No matching episode: Forensic Files 2005 - s09e24 - Buried Treasure.mp4
No matching episode: Forensic Files 2005 - s09e25 - Muddy Waters.mp4
No matching episode: Forensic Files 2005 - s09e26 - Silk Stalkings.mp4
No matching episode: Forensic Files 2005 - s09e27 - Fishing for the Truth.mp4
No matching episode: Forensic Files 2005 - s09e28 - The Stake-Out.mp4
Failed to identify or process any files
Failure (×_×)??
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Trying to rename Forensic Files episodes via the episode title

Post by rednoah »

What does filebot -script fn:sysinfo say?
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Trying to rename Forensic Files episodes via the episode title

Post by rednoah »

If your files are already nicely aligned, then I'd do a Linear Rename to rename the files / episodes in natural order:

Code: Select all

$ filebot -list --db TheTVDB --q "Forensic Files" --filter "s == 9" --format "{plex.name}" -rename *s09*.mp4 --action TEST --log INFO
[TEST] from [Forensic Files 2005 - s09e01 - Road Rage.mp4] to [Forensic Files - S09E01 - Road Rage.mp4]
[TEST] from [Forensic Files 2005 - s09e02 - Hunter or Hunted_.mp4] to [Forensic Files - S09E02 - Hunter or Hunted.mp4]
[TEST] from [Forensic Files 2005 - s09e03 - News at 11.mp4] to [Forensic Files - S09E03 - In Harms Way.mp4]
...
:!: :!: :!: Looks like things don't align naturally... that'll make things a bit more tricky... :!: :!: :!:




EDIT:

Match by Episode Title should work. The CLI example might require FileBot 4.9.4 or higher though.

Here's what I get:

Code: Select all

$ filebot -rename *.mp4 --db TheTVDB -non-strict --format "{plex.name}" --mapper "episode.number(null)" --action TEST --log INFO
[TEST] from [Forensic Files 2005 - s09e01 - Road Rage.mp4] to [Forensic Files - S09E01 - Road Rage.mp4]
[TEST] from [Forensic Files 2005 - s09e02 - Hunter or Hunted_.mp4] to [Forensic Files - S09E02 - Hunter or Hunted.mp4]
[TEST] from [Forensic Files 2005 - s09e03 - News at 11.mp4] to [Forensic Files - S09E05 - News at 11.mp4]
...
:idea: If you only process Season 9 files / episodes, and get mismatches with episodes from other seasons, then --filter "s == 9" will help reduce those mismatches.
:idea: Please read the FAQ and How to Request Help.
mikeas
Posts: 3
Joined: 21 Oct 2021, 11:09

Re: Trying to rename Forensic Files episodes via the episode title

Post by mikeas »

So update happening, thx didn't even notice I was out of date, lets try it again in a few minutes.
mikeas
Posts: 3
Joined: 21 Oct 2021, 11:09

Re: Trying to rename Forensic Files episodes via the episode title

Post by mikeas »

Oh that works so much better. Super thanks!

Kinda scary when I start to realize this has insanely powerful capabilities - which the GUI has not let me see. Only started to look into CLI when GUI is failing me.
Post Reply