Rename episodes with multiple segments if there aren't airdates which match

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Larsenv
Posts: 8
Joined: 18 Sep 2023, 17:00

Rename episodes with multiple segments if there aren't airdates which match

Post by Larsenv »

I wanna rename episodes that have multiple segments. Here's the output of my sysinfo.

Console Output: Select all

FileBot 5.0.3 (r9760)
JNA Native: 6.1.4
MediaInfo: 22.12
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2023-09-10 (r939)
Groovy: 4.0.11
JRE: OpenJDK Runtime Environment 17.0.6
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 8 GB Max Memory / 126 MB Used Memory
OS: Windows Server 2022 (amd64)
STORAGE: NTFS [Windows] @ 292 GB
DATA: C:\Users\opc\AppData\Roaming\FileBot
Package: MSI
License: FileBot License P47481857 (Valid-Until: 2024-03-10)

------------------- UPDATE AVAILABLE: FileBot 5.1.1 (r9982) --------------------

Done ?(?????)?
I have these files.

Console Output: Select all

Max and Ruby_S07E01_Max & Ruby's Pirate Adventure.mp4
Max and Ruby_S07E02_Max's Fort_Ruby's Party Dress.mp4
Max and Ruby_S07E03_The Frog and the Fly_Bye Bye Max's Lobster.mp4
Max and Ruby_S07E04_Ruby's Rocking Bunnies_Max's Jump Shot.mp4
Max and Ruby_S07E05_Max's Parachute_The Class Pet.mp4
Max and Ruby_S07E06_Ruby's Knot_Soccer Star Max.mp4
Max and Ruby_S07E07_Ruby's Book Reading_Max and the Space Alien.mp4
Max and Ruby_S07E08_Max and Ruby's Bunnyhop Parade.mp4
Max and Ruby_S07E09_The Bunny Gnome_Max's Movie Magic.mp4
Max and Ruby_S07E10_Robo-Max_Let it Snow.mp4
Max and Ruby_S07E11_Max's Hug_Super Spy Max.mp4
Max and Ruby_S07E12_Max's Big Race_Max's S'mores.mp4
The episodes rename properly if there's an airdate which matches on TheTVDB but if there isn't one it doesn't rename properly.

Console Output: Select all

filebot -rename * --format "{n.space('zyxzyx').replaceAll(/\W/, '').replaceAll('zyxzyx', '.')}.{s00e00}.{t.space('zyxzyx').replaceAll(/\W/, '').replaceAll('zyxzyx', '.')}.{vf}.AMZN.WEB-DL.{acf}.{vc}" --q "Max and Ruby" --db TheTVDB -non-strict -no-xattr --mapper "episode.number(null).map(episodelist.findAll{ airdate == it.airdate }).reverse()" --action test
* Consider using --mode interactive to enable interactive mode
Rename episodes using [TheTVDB] with [Airdate Order]
Lookup via [] [Max and Ruby]
Fetching episode data for [Max & Ruby]
└─ 342 episodes
Apply mapper [episode.number(null).map(episodelist.findAll{ airdate == it.airdate }).reverse()] on [342] episodes
Map [Max & Ruby - 1x01 - Ruby's Piano Practice] to [Max & Ruby - Ruby's Piano Practice <=> Max & Ruby - 1x01 & 1x02 & 1x03 - Ruby's Piano Practice & Max's Bath & Max's Bedtime]
Map [Max & Ruby - 1x02 - Max's Bath] to [Max & Ruby - Max's Bath <=> Max & Ruby - 1x01 & 1x02 & 1x03 - Ruby's Piano Practice & Max's Bath & Max's Bedtime]
Map [Max & Ruby - 1x03 - Max's Bedtime] to [Max & Ruby - Max's Bedtime <=> Max & Ruby - 1x01 & 1x02 & 1x03 - Ruby's Piano Practice & Max's Bath & Max's Bedtime]
Map [Max & Ruby - 1x04 - Hide and Seek] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x05 - Max's Breakfast] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x06 - Louise's Secret] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x07 - Max Misses the Bus] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x08 - Max's Wormcake] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x09 - Max's Rainy Day] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x10 - Camp Out] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x11 - Ruby's Clubhouse] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x12 - Max's Picnic] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x13 - Max's Halloween] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x14 - Ruby's Leaf Collection] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x15 - The Blue Tarantula] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x16 - Ruby's Merit Badge] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x17 - Max's Apple] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x18 - Quiet, Max!] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x19 - Max Cleans Up] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x20 - Max's Cuckoo Clock] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x21 - Ruby's Jewelry Box] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x22 - Bunny Cakes] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x23 - Bunny Party] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x24 - Bunny Money] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x25 - Max's Birthday] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x26 - Max's New Suit] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x27 - Goodnight Max] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x28 - Max's Christmas] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x29 - Ruby's Snow Queen] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x30 - Max's Rocket Run] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x31 - Max's Chocolate Chicken] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x32 - Ruby's Beauty Shop] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x33 - Max Drives Away] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x34 - Ruby's Lemonade Stand] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x35 - Ruby's Rummage Sale] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x36 - Ruby's Magic Act] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 1x37 - Max's Valentine] to [Max & Ruby - Max's Valentine <=> Max & Ruby - 1x37 & 1x38 & 1x39 - Max's Valentine & Ruby Flies a Kite & Super Max]
Map [Max & Ruby - 1x38 - Ruby Flies a Kite] to [Max & Ruby - Ruby Flies a Kite <=> Max & Ruby - 1x37 & 1x38 & 1x39 - Max's Valentine & Ruby Flies a Kite & Super Max]
Map [Max & Ruby - 1x39 - Super Max] to [Max & Ruby - Super Max <=> Max & Ruby - 1x37 & 1x38 & 1x39 - Max's Valentine & Ruby Flies a Kite & Super Max]
Map [Max & Ruby - 2x01 - Max's Work of Art] to [Max & Ruby - Max's Work of Art <=> Max & Ruby - 2x01 & 2x02 & 2x03 - Max's Work of Art & Max Meets Morris & Ruby's Scavenger Hunt]
Map [Max & Ruby - 2x02 - Max Meets Morris] to [Max & Ruby - Max Meets Morris <=> Max & Ruby - 2x01 & 2x02 & 2x03 - Max's Work of Art & Max Meets Morris & Ruby's Scavenger Hunt]
Map [Max & Ruby - 2x03 - Ruby's Scavenger Hunt] to [Max & Ruby - Ruby's Scavenger Hunt <=> Max & Ruby - 2x01 & 2x02 & 2x03 - Max's Work of Art & Max Meets Morris & Ruby's Scavenger Hunt]
Map [Max & Ruby - 2x04 - Ruby's Hiccups] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x05 - The Big Picture] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x06 - Ruby's Stage Show] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x07 - Max's Froggy Friend] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x08 - Max's Music] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x09 - Max Gets Wet] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x10 - Ruby's Tea Party] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x11 - Max Is It] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x12 - Ruby's Science Project] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x13 - Ruby's Panda Prize] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x14 - Ruby's Roller Skates] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x15 - Ghost Bunny] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x16 - Max's Bug Salad] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x17 - Ruby's Beach Party] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x18 - Super Max to the Rescue] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x19 - Max's Dragon Shirt] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x20 - Max's Rabbit Racer] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x21 - Roger's Choice] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x22 - Ruby's Pajama Party] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x23 - Baby Max] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x24 - Bunny Scout Brownies] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x25 - Max's Shadow] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x26 - Max Remembers] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x27 - Ruby's Candy Store] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x28 - Max's Check Up] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x29 - Max's Prize] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x30 - Space Max] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x31 - Ruby's Figure Eight] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x32 - Ruby's Surprise Party] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x33 - Ruby's Tent] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x34 - Ruby Writes a Story] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x35 - Max's Dominoes] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x36 - Grandma's Attic] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 2x37 - Max's Thanksgiving] to [Max & Ruby - Max's Thanksgiving <=> Max & Ruby - 2x37 & 2x38 & 2x39 - Max's Thanksgiving & Max's Pretend Friend & Fireman Max]
Map [Max & Ruby - 2x38 - Max's Pretend Friend] to [Max & Ruby - Max's Pretend Friend <=> Max & Ruby - 2x37 & 2x38 & 2x39 - Max's Thanksgiving & Max's Pretend Friend & Fireman Max]
Map [Max & Ruby - 2x39 - Fireman Max] to [Max & Ruby - Fireman Max <=> Max & Ruby - 2x37 & 2x38 & 2x39 - Max's Thanksgiving & Max's Pretend Friend & Fireman Max]
Map [Max & Ruby - 3x01 - Ruby's Loose Tooth] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x02 - Ruby Scores] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x03 - Ruby's Sandcastle] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x04 - Max & Ruby's Christmas Tree] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x05 - Grandma's Present] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x06 - Max & Ruby's Snow Plow] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x07 - Ruby's Hippity Hop Dance] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x08 - Ruby's Bird Bath] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x09 - Super Max Saves the World] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x10 - Ruby's Easter Bonnet] to [Max & Ruby - Ruby's Easter Bonnet <=> Max & Ruby - 3x10 & 3x11 & 3x12 - Ruby's Easter Bonnet & Max's Easter Parade & Max & the Easter Bunny]
Map [Max & Ruby - 3x11 - Max's Easter Parade] to [Max & Ruby - Max's Easter Parade <=> Max & Ruby - 3x10 & 3x11 & 3x12 - Ruby's Easter Bonnet & Max's Easter Parade & Max & the Easter Bunny]
Map [Max & Ruby - 3x12 - Max & the Easter Bunny] to [Max & Ruby - Max & the Easter Bunny <=> Max & Ruby - 3x10 & 3x11 & 3x12 - Ruby's Easter Bonnet & Max's Easter Parade & Max & the Easter Bunny]
Map [Max & Ruby - 3x13 - Ruby Riding Hood (Max and Ruby's Bunny Tales)] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x14 - Max & the Beanstalk (Max and Ruby's Bunny Tales)] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x15 - The Froggy Prince (Max and Ruby's Bunny Tales)] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x16 - Ruby Delivers] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x17 - Getting Crabby at the Beach] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x18 - Max Babysits] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x19 - Max's Fire Flies] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x20 - Max & Ruby's Fashion Show] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x21 - Ruby?s Sing-a-long] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x22 - Ruby's Safari] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x23 - Max's Mudbath] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x24 - Max's Lost Lizard] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x25 - Max's Snow Day] to [Max & Ruby - Max's Snow Day <=> Max & Ruby - 3x25 & 3x26 & 3x27 - Max's Snow Day & Max's Snow Bunny & Max's Mix Up]
Map [Max & Ruby - 3x26 - Max's Snow Bunny] to [Max & Ruby - Max's Snow Bunny <=> Max & Ruby - 3x25 & 3x26 & 3x27 - Max's Snow Day & Max's Snow Bunny & Max's Mix Up]
Map [Max & Ruby - 3x27 - Max's Mix Up] to [Max & Ruby - Max's Mix Up <=> Max & Ruby - 3x25 & 3x26 & 3x27 - Max's Snow Day & Max's Snow Bunny & Max's Mix Up]
Map [Max & Ruby - 3x28 - Surprise Ruby] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x29 - Ruby's Birthday Party] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x30 - Ruby's Birthday Present] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x31 - Ruby's Puppet Show] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x32 - Sugar Plum Max] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x33 - Max's Ant Farm] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x34 - Max & Ruby's Perfect Pumpkin] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x35 - Max's Jack-o-Lantern] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x36 - Max's Big Boo!] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x37 - Grandma's Berry Patch] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x38 - Ruby's Bunny Scout Banner] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x39 - Ruby's Detective Agency] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x40 - Max's Rocket Racer] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x41 - Max's Candy Apple] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 3x42 - Max's Blast Off!] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x01 - Max's Castle] to [Max & Ruby - Max's Castle <=> Max & Ruby - 4x01 & 4x02 & 4x03 - Max's Castle & Bunny Hopscotch & Max's Grasshopper]
Map [Max & Ruby - 4x02 - Bunny Hopscotch] to [Max & Ruby - Bunny Hopscotch <=> Max & Ruby - 4x01 & 4x02 & 4x03 - Max's Castle & Bunny Hopscotch & Max's Grasshopper]
Map [Max & Ruby - 4x03 - Max's Grasshopper] to [Max & Ruby - Max's Grasshopper <=> Max & Ruby - 4x01 & 4x02 & 4x03 - Max's Castle & Bunny Hopscotch & Max's Grasshopper]
Map [Max & Ruby - 4x04 - Grandma's Treasure Hunt] to [Max & Ruby - Grandma's Treasure Hunt <=> Max & Ruby - 4x04 & 4x05 & 4x06 - Grandma's Treasure Hunt & Ruby's Jigsaw Puzzle & Ruby's Recital]
Map [Max & Ruby - 4x05 - Ruby's Jigsaw Puzzle] to [Max & Ruby - Ruby's Jigsaw Puzzle <=> Max & Ruby - 4x04 & 4x05 & 4x06 - Grandma's Treasure Hunt & Ruby's Jigsaw Puzzle & Ruby's Recital]
Map [Max & Ruby - 4x06 - Ruby's Recital] to [Max & Ruby - Ruby's Recital <=> Max & Ruby - 4x04 & 4x05 & 4x06 - Grandma's Treasure Hunt & Ruby's Jigsaw Puzzle & Ruby's Recital]
Map [Max & Ruby - 4x07 - Ruby's Home Run] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x08 - Ruby's Missing Tune] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x09 - Ruby's Handstand] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x10 - Ruby's Gingerbread House (Max and Ruby's Bunny Tales)] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x11 - Max's Christmas Passed] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x12 - Max's New Year] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x13 - The Princess and the Marbles (Max and Ruby's Bunny Tales)] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x14 - Emperor Max's New Suit (Max and Ruby's Bunny Tales)] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x15 - Max and the Three Little Bunnies (Max and Ruby's Bunny Tales)] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x16 - Max's Balloon Buddies] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x17 - Ruby's Penny Carnival] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x18 - Ruby's Big Win] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x19 - Ruby's Hoola Hoop] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x20 - Max and the Martians] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x21 - Ruby's Real Cinderella] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x22 - Duck, Duck, Goose] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x23 - Ruby's Snowbunny] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x24 - Ruby's Snowflake] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x25 - Ruby's Good Neighbor Report] to [Max & Ruby - Ruby's Good Neighbor Report <=> Max & Ruby - 4x25 & 4x26 & 4x27 - Ruby's Good Neighbor Report & Candy Counting & Ruby's New Shoes]
Map [Max & Ruby - 4x26 - Candy Counting] to [Max & Ruby - Candy Counting <=> Max & Ruby - 4x25 & 4x26 & 4x27 - Ruby's Good Neighbor Report & Candy Counting & Ruby's New Shoes]
Map [Max & Ruby - 4x27 - Ruby's New Shoes] to [Max & Ruby - Ruby's New Shoes <=> Max & Ruby - 4x25 & 4x26 & 4x27 - Ruby's Good Neighbor Report & Candy Counting & Ruby's New Shoes]
Map [Max & Ruby - 4x28 - Max Saves the Parade] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x29 - Max's Big Kick] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x30 - Ruby's Horn of Plenty] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x31 - Super Max's Cape] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x32 - Ruby's Water Lilly] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x33 - Max Says Goodbye] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x34 - Ruby's Rainbow] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x35 - Home Tweet Home] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 4x36 - Max's Mudpie] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x01 - Ruby's Perfect Christmas Tree] to [Max & Ruby - Ruby's Perfect Christmas Tree <=> Max & Ruby - 5x01 & 5x02 & 5x03 - Ruby's Perfect Christmas Tree & Max's Christmas Presents & Max and Ruby's Christmas Carol]
Map [Max & Ruby - 5x02 - Max's Christmas Presents] to [Max & Ruby - Max's Christmas Presents <=> Max & Ruby - 5x01 & 5x02 & 5x03 - Ruby's Perfect Christmas Tree & Max's Christmas Presents & Max and Ruby's Christmas Carol]
Map [Max & Ruby - 5x03 - Max and Ruby's Christmas Carol] to [Max & Ruby - Max and Ruby's Christmas Carol <=> Max & Ruby - 5x01 & 5x02 & 5x03 - Ruby's Perfect Christmas Tree & Max's Christmas Presents & Max and Ruby's Christmas Carol]
Map [Max & Ruby - 5x04 - Max Says Hello] to [Max & Ruby - Max Says Hello <=> Max & Ruby - 5x04 & 5x05 & 5x06 - Max Says Hello & Ruby's Spa Day & Ruby's Tai Chi]
Map [Max & Ruby - 5x05 - Ruby's Spa Day] to [Max & Ruby - Ruby's Spa Day <=> Max & Ruby - 5x04 & 5x05 & 5x06 - Max Says Hello & Ruby's Spa Day & Ruby's Tai Chi]
Map [Max & Ruby - 5x06 - Ruby's Tai Chi] to [Max & Ruby - Ruby's Tai Chi <=> Max & Ruby - 5x04 & 5x05 & 5x06 - Max Says Hello & Ruby's Spa Day & Ruby's Tai Chi]
Map [Max & Ruby - 5x07 - Ruby Gets the Picture] to [Max & Ruby - Ruby Gets the Picture <=> Max & Ruby - 5x07 & 5x08 & 5x09 - Ruby Gets the Picture & Ruby's Birdie & Max Plays Catch]
Map [Max & Ruby - 5x08 - Ruby's Birdie] to [Max & Ruby - Ruby's Birdie <=> Max & Ruby - 5x07 & 5x08 & 5x09 - Ruby Gets the Picture & Ruby's Birdie & Max Plays Catch]
Map [Max & Ruby - 5x09 - Max Plays Catch] to [Max & Ruby - Max Plays Catch <=> Max & Ruby - 5x07 & 5x08 & 5x09 - Ruby Gets the Picture & Ruby's Birdie & Max Plays Catch]
Map [Max & Ruby - 5x10 - Ruby's Bedtime Story] to [Max & Ruby - Ruby's Bedtime Story <=> Max & Ruby - 5x10 & 5x11 & 5x12 - Ruby's Bedtime Story & Ruby's Amazing Maze & Max's Nightlight]
Map [Max & Ruby - 5x11 - Ruby's Amazing Maze] to [Max & Ruby - Ruby's Amazing Maze <=> Max & Ruby - 5x10 & 5x11 & 5x12 - Ruby's Bedtime Story & Ruby's Amazing Maze & Max's Nightlight]
Map [Max & Ruby - 5x12 - Max's Nightlight] to [Max & Ruby - Max's Nightlight <=> Max & Ruby - 5x10 & 5x11 & 5x12 - Ruby's Bedtime Story & Ruby's Amazing Maze & Max's Nightlight]
Map [Max & Ruby - 5x13 - Max's Sandwich] to [Max & Ruby - Max's Sandwich <=> Max & Ruby - 5x13 & 5x14 & 5x15 & 5x23 - Max's Sandwich & Max's Ice Cream Cone & Ruby's Art Stand & Max Goes Fishing]
Map [Max & Ruby - 5x14 - Max's Ice Cream Cone] to [Max & Ruby - Max's Ice Cream Cone <=> Max & Ruby - 5x13 & 5x14 & 5x15 & 5x23 - Max's Sandwich & Max's Ice Cream Cone & Ruby's Art Stand & Max Goes Fishing]
Map [Max & Ruby - 5x15 - Ruby's Art Stand] to [Max & Ruby - Ruby's Art Stand <=> Max & Ruby - 5x13 & 5x14 & 5x15 & 5x23 - Max's Sandwich & Max's Ice Cream Cone & Ruby's Art Stand & Max Goes Fishing]
Map [Max & Ruby - 5x16 - Picture Perfect] to [Max & Ruby - Picture Perfect <=> Max & Ruby - 5x16 & 5x17 & 5x18 - Picture Perfect & Detective Ruby & Superbunny Saves the Cake]
Map [Max & Ruby - 5x17 - Detective Ruby] to [Max & Ruby - Detective Ruby <=> Max & Ruby - 5x16 & 5x17 & 5x18 - Picture Perfect & Detective Ruby & Superbunny Saves the Cake]
Map [Max & Ruby - 5x18 - Superbunny Saves the Cake] to [Max & Ruby - Superbunny Saves the Cake <=> Max & Ruby - 5x16 & 5x17 & 5x18 - Picture Perfect & Detective Ruby & Superbunny Saves the Cake]
Map [Max & Ruby - 5x19 - The Bunny Who Cried Lobster] to [Max & Ruby - The Bunny Who Cried Lobster <=> Max & Ruby - 5x19 & 5x20 & 5x21 - The Bunny Who Cried Lobster & Max and The Three Bears & Little Ruby Hen]
Map [Max & Ruby - 5x20 - Max and The Three Bears] to [Max & Ruby - Max and The Three Bears <=> Max & Ruby - 5x19 & 5x20 & 5x21 - The Bunny Who Cried Lobster & Max and The Three Bears & Little Ruby Hen]
Map [Max & Ruby - 5x21 - Little Ruby Hen] to [Max & Ruby - Little Ruby Hen <=> Max & Ruby - 5x19 & 5x20 & 5x21 - The Bunny Who Cried Lobster & Max and The Three Bears & Little Ruby Hen]
Map [Max & Ruby - 5x22 - Ruby's Bird Walk] to [Max & Ruby - Ruby's Bird Walk <=> Max & Ruby - 5x22 & 5x24 & 5x34 & 5x35 & 5x36 - Ruby's Bird Walk & Ruby Tries Again & Engineer Max & Max's Toy Train & Max's Train Ride]
Map [Max & Ruby - 5x23 - Max Goes Fishing] to [Max & Ruby - Max Goes Fishing <=> Max & Ruby - 5x13 & 5x14 & 5x15 & 5x23 - Max's Sandwich & Max's Ice Cream Cone & Ruby's Art Stand & Max Goes Fishing]
Map [Max & Ruby - 5x24 - Ruby Tries Again] to [Max & Ruby - Ruby Tries Again <=> Max & Ruby - 5x22 & 5x24 & 5x34 & 5x35 & 5x36 - Ruby's Bird Walk & Ruby Tries Again & Engineer Max & Max's Toy Train & Max's Train Ride]
Map [Max & Ruby - 5x25 - Max's Ride] to [Max & Ruby - Max's Ride <=> Max & Ruby - 5x25 & 5x26 & 5x27 - Max's Ride & Max on Guard & Ruby's Real Tea Party]
Map [Max & Ruby - 5x26 - Max on Guard] to [Max & Ruby - Max on Guard <=> Max & Ruby - 5x25 & 5x26 & 5x27 - Max's Ride & Max on Guard & Ruby's Real Tea Party]
Map [Max & Ruby - 5x27 - Ruby's Real Tea Party] to [Max & Ruby - Ruby's Real Tea Party <=> Max & Ruby - 5x25 & 5x26 & 5x27 - Max's Ride & Max on Guard & Ruby's Real Tea Party]
Map [Max & Ruby - 5x28 - Ruby's Earth Day Party] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x29 - Ruby's Earth Day Checklist] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x30 - Max's Ducky Day] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x31 - Grandma's Birthday] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x32 - Max's Hand Print] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x33 - Grandma's Surprise Dance] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x34 - Engineer Max] to [Max & Ruby - Engineer Max <=> Max & Ruby - 5x22 & 5x24 & 5x34 & 5x35 & 5x36 - Ruby's Bird Walk & Ruby Tries Again & Engineer Max & Max's Toy Train & Max's Train Ride]
Map [Max & Ruby - 5x35 - Max's Toy Train] to [Max & Ruby - Max's Toy Train <=> Max & Ruby - 5x22 & 5x24 & 5x34 & 5x35 & 5x36 - Ruby's Bird Walk & Ruby Tries Again & Engineer Max & Max's Toy Train & Max's Train Ride]
Map [Max & Ruby - 5x36 - Max's Train Ride] to [Max & Ruby - Max's Train Ride <=> Max & Ruby - 5x22 & 5x24 & 5x34 & 5x35 & 5x36 - Ruby's Bird Walk & Ruby Tries Again & Engineer Max & Max's Toy Train & Max's Train Ride]
Map [Max & Ruby - 5x37 - Max's Kite] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x38 - Max's Beach Ball] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x39 - Ruby's Limbo] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 5x40 - Ruby's Diorama] to [Max & Ruby - Ruby's Diorama <=> Max & Ruby - 5x40 & 5x41 & 5x42 - Ruby's Diorama & Ruby's Huff and Puff & Ruby's Croquet Match]
Map [Max & Ruby - 5x41 - Ruby's Huff and Puff] to [Max & Ruby - Ruby's Huff and Puff <=> Max & Ruby - 5x40 & 5x41 & 5x42 - Ruby's Diorama & Ruby's Huff and Puff & Ruby's Croquet Match]
Map [Max & Ruby - 5x42 - Ruby's Croquet Match] to [Max & Ruby - Ruby's Croquet Match <=> Max & Ruby - 5x40 & 5x41 & 5x42 - Ruby's Diorama & Ruby's Huff and Puff & Ruby's Croquet Match]
Map [Max & Ruby - 5x43 - Max's Pinata] to [Max & Ruby - Max's Pinata <=> Max & Ruby - 5x43 & 5x44 & 5x45 & 5x58 & 5x59 & 5x60 - Max's Pinata & Ruby's Movie Night & Doctor Ruby & Max's Red Rubber Elephant Mystery & Ruby's Toy Drive & Max and Ruby's Big Finish]
Map [Max & Ruby - 5x44 - Ruby's Movie Night] to [Max & Ruby - Ruby's Movie Night <=> Max & Ruby - 5x43 & 5x44 & 5x45 & 5x58 & 5x59 & 5x60 - Max's Pinata & Ruby's Movie Night & Doctor Ruby & Max's Red Rubber Elephant Mystery & Ruby's Toy Drive & Max and Ruby's Big Finish]
Map [Max & Ruby - 5x45 - Doctor Ruby] to [Max & Ruby - Doctor Ruby <=> Max & Ruby - 5x43 & 5x44 & 5x45 & 5x58 & 5x59 & 5x60 - Max's Pinata & Ruby's Movie Night & Doctor Ruby & Max's Red Rubber Elephant Mystery & Ruby's Toy Drive & Max and Ruby's Big Finish]
Map [Max & Ruby - 5x46 - Ruby's Tower] to [Max & Ruby - Ruby's Tower <=> Max & Ruby - 5x46 & 5x47 & 5x48 & 5x61 & 5x62 & 5x63 - Ruby's Tower & Ruby's Juice Bar & Max's Tree Fort & Ruby's Memory Quilt & Lights,Camera,Ruby! & Ruby's Ping-Pong Record]
Map [Max & Ruby - 5x47 - Ruby's Juice Bar] to [Max & Ruby - Ruby's Juice Bar <=> Max & Ruby - 5x46 & 5x47 & 5x48 & 5x61 & 5x62 & 5x63 - Ruby's Tower & Ruby's Juice Bar & Max's Tree Fort & Ruby's Memory Quilt & Lights,Camera,Ruby! & Ruby's Ping-Pong Record]
Map [Max & Ruby - 5x48 - Max's Tree Fort] to [Max & Ruby - Max's Tree Fort <=> Max & Ruby - 5x46 & 5x47 & 5x48 & 5x61 & 5x62 & 5x63 - Ruby's Tower & Ruby's Juice Bar & Max's Tree Fort & Ruby's Memory Quilt & Lights,Camera,Ruby! & Ruby's Ping-Pong Record]
Map [Max & Ruby - 5x49 - Max and the Magnet] to [Max & Ruby - Max and the Magnet <=> Max & Ruby - 5x49 & 5x50 & 5x51 & 5x64 & 5x66 - Max and the Magnet & Ruby's Parrot Project & Max's Spaghetti & Ruby & The Beast & Max's Trick or Treat]
Map [Max & Ruby - 5x50 - Ruby's Parrot Project] to [Max & Ruby - Ruby's Parrot Project <=> Max & Ruby - 5x49 & 5x50 & 5x51 & 5x64 & 5x66 - Max and the Magnet & Ruby's Parrot Project & Max's Spaghetti & Ruby & The Beast & Max's Trick or Treat]
Map [Max & Ruby - 5x51 - Max's Spaghetti] to [Max & Ruby - Max's Spaghetti <=> Max & Ruby - 5x49 & 5x50 & 5x51 & 5x64 & 5x66 - Max and the Magnet & Ruby's Parrot Project & Max's Spaghetti & Ruby & The Beast & Max's Trick or Treat]
Map [Max & Ruby - 5x52 - Ruby's Autograph] to [Max & Ruby - Ruby's Autograph <=> Max & Ruby - 5x52 & 5x53 & 5x54 & 5x67 & 5x68 & 5x69 - Ruby's Autograph & A Toy for Baby Huffington & Max's Big Dig & Max and Ruby Give Thanks & Max Leaves & Ruby's Fall Pageant]
Map [Max & Ruby - 5x53 - A Toy for Baby Huffington] to [Max & Ruby - A Toy for Baby Huffington <=> Max & Ruby - 5x52 & 5x53 & 5x54 & 5x67 & 5x68 & 5x69 - Ruby's Autograph & A Toy for Baby Huffington & Max's Big Dig & Max and Ruby Give Thanks & Max Leaves & Ruby's Fall Pageant]
Map [Max & Ruby - 5x54 - Max's Big Dig] to [Max & Ruby - Max's Big Dig <=> Max & Ruby - 5x52 & 5x53 & 5x54 & 5x67 & 5x68 & 5x69 - Ruby's Autograph & A Toy for Baby Huffington & Max's Big Dig & Max and Ruby Give Thanks & Max Leaves & Ruby's Fall Pageant]
Map [Max & Ruby - 5x55 - Max and Ruby's Train Trip] to [Max & Ruby - Max and Ruby's Train Trip <=> Max & Ruby - 5x55 & 5x56 & 5x57 - Max and Ruby's Train Trip & Go to Sleep Max & Conductor Max]
Map [Max & Ruby - 5x56 - Go to Sleep Max] to [Max & Ruby - Go to Sleep Max <=> Max & Ruby - 5x55 & 5x56 & 5x57 - Max and Ruby's Train Trip & Go to Sleep Max & Conductor Max]
Map [Max & Ruby - 5x57 - Conductor Max] to [Max & Ruby - Conductor Max <=> Max & Ruby - 5x55 & 5x56 & 5x57 - Max and Ruby's Train Trip & Go to Sleep Max & Conductor Max]
Map [Max & Ruby - 5x58 - Max's Red Rubber Elephant Mystery] to [Max & Ruby - Max's Red Rubber Elephant Mystery <=> Max & Ruby - 5x43 & 5x44 & 5x45 & 5x58 & 5x59 & 5x60 - Max's Pinata & Ruby's Movie Night & Doctor Ruby & Max's Red Rubber Elephant Mystery & Ruby's Toy Drive & Max and Ruby's Big Finish]
Map [Max & Ruby - 5x59 - Ruby's Toy Drive] to [Max & Ruby - Ruby's Toy Drive <=> Max & Ruby - 5x43 & 5x44 & 5x45 & 5x58 & 5x59 & 5x60 - Max's Pinata & Ruby's Movie Night & Doctor Ruby & Max's Red Rubber Elephant Mystery & Ruby's Toy Drive & Max and Ruby's Big Finish]
Map [Max & Ruby - 5x60 - Max and Ruby's Big Finish] to [Max & Ruby - Max and Ruby's Big Finish <=> Max & Ruby - 5x43 & 5x44 & 5x45 & 5x58 & 5x59 & 5x60 - Max's Pinata & Ruby's Movie Night & Doctor Ruby & Max's Red Rubber Elephant Mystery & Ruby's Toy Drive & Max and Ruby's Big Finish]
Map [Max & Ruby - 5x61 - Ruby's Memory Quilt] to [Max & Ruby - Ruby's Memory Quilt <=> Max & Ruby - 5x46 & 5x47 & 5x48 & 5x61 & 5x62 & 5x63 - Ruby's Tower & Ruby's Juice Bar & Max's Tree Fort & Ruby's Memory Quilt & Lights,Camera,Ruby! & Ruby's Ping-Pong Record]
Map [Max & Ruby - 5x62 - Lights,Camera,Ruby!] to [Max & Ruby - Lights,Camera,Ruby! <=> Max & Ruby - 5x46 & 5x47 & 5x48 & 5x61 & 5x62 & 5x63 - Ruby's Tower & Ruby's Juice Bar & Max's Tree Fort & Ruby's Memory Quilt & Lights,Camera,Ruby! & Ruby's Ping-Pong Record]
Map [Max & Ruby - 5x63 - Ruby's Ping-Pong Record] to [Max & Ruby - Ruby's Ping-Pong Record <=> Max & Ruby - 5x46 & 5x47 & 5x48 & 5x61 & 5x62 & 5x63 - Ruby's Tower & Ruby's Juice Bar & Max's Tree Fort & Ruby's Memory Quilt & Lights,Camera,Ruby! & Ruby's Ping-Pong Record]
Map [Max & Ruby - 5x64 - Ruby & The Beast] to [Max & Ruby - Ruby & The Beast <=> Max & Ruby - 5x49 & 5x50 & 5x51 & 5x64 & 5x66 - Max and the Magnet & Ruby's Parrot Project & Max's Spaghetti & Ruby & The Beast & Max's Trick or Treat]
Map [Max & Ruby - 5x65 - Max & Ruby's Halloween House] to [Max & Ruby - Max & Ruby's Halloween House <=> Max & Ruby - 5x65 - Max & Ruby's Halloween House]
Map [Max & Ruby - 5x66 - Max's Trick or Treat] to [Max & Ruby - Max's Trick or Treat <=> Max & Ruby - 5x49 & 5x50 & 5x51 & 5x64 & 5x66 - Max and the Magnet & Ruby's Parrot Project & Max's Spaghetti & Ruby & The Beast & Max's Trick or Treat]
Map [Max & Ruby - 5x67 - Max and Ruby Give Thanks] to [Max & Ruby - Max and Ruby Give Thanks <=> Max & Ruby - 5x52 & 5x53 & 5x54 & 5x67 & 5x68 & 5x69 - Ruby's Autograph & A Toy for Baby Huffington & Max's Big Dig & Max and Ruby Give Thanks & Max Leaves & Ruby's Fall Pageant]
Map [Max & Ruby - 5x68 - Max Leaves] to [Max & Ruby - Max Leaves <=> Max & Ruby - 5x52 & 5x53 & 5x54 & 5x67 & 5x68 & 5x69 - Ruby's Autograph & A Toy for Baby Huffington & Max's Big Dig & Max and Ruby Give Thanks & Max Leaves & Ruby's Fall Pageant]
Map [Max & Ruby - 5x69 - Ruby's Fall Pageant] to [Max & Ruby - Ruby's Fall Pageant <=> Max & Ruby - 5x52 & 5x53 & 5x54 & 5x67 & 5x68 & 5x69 - Ruby's Autograph & A Toy for Baby Huffington & Max's Big Dig & Max and Ruby Give Thanks & Max Leaves & Ruby's Fall Pageant]
Map [Max & Ruby - 5x70 - Ruby's Big Case] to [Max & Ruby - Ruby's Big Case <=> Max & Ruby - 5x70 & 5x71 & 5x72 - Ruby's Big Case & Ruby's Rhyme Time & Max's Library Card]
Map [Max & Ruby - 5x71 - Ruby's Rhyme Time] to [Max & Ruby - Ruby's Rhyme Time <=> Max & Ruby - 5x70 & 5x71 & 5x72 - Ruby's Big Case & Ruby's Rhyme Time & Max's Library Card]
Map [Max & Ruby - 5x72 - Max's Library Card] to [Max & Ruby - Max's Library Card <=> Max & Ruby - 5x70 & 5x71 & 5x72 - Ruby's Big Case & Ruby's Rhyme Time & Max's Library Card]
Map [Max & Ruby - 5x73 - Max & Ruby's Groundhog Day] to [Max & Ruby - Max & Ruby's Groundhog Day <=> Max & Ruby - 5x73 & 5x74 & 5x75 - Max & Ruby's Groundhog Day & Ruby's First Robin of Spring & Grandma's Geraniums]
Map [Max & Ruby - 5x74 - Ruby's First Robin of Spring] to [Max & Ruby - Ruby's First Robin of Spring <=> Max & Ruby - 5x73 & 5x74 & 5x75 - Max & Ruby's Groundhog Day & Ruby's First Robin of Spring & Grandma's Geraniums]
Map [Max & Ruby - 5x75 - Grandma's Geraniums] to [Max & Ruby - Grandma's Geraniums <=> Max & Ruby - 5x73 & 5x74 & 5x75 - Max & Ruby's Groundhog Day & Ruby's First Robin of Spring & Grandma's Geraniums]
Map [Max & Ruby - 5x76 - Space Bunny] to [Max & Ruby - Space Bunny <=> Max & Ruby - 5x76 & 5x77 & 5x78 - Space Bunny & Max's Sprinkler & Max's Pogo Stick]
Map [Max & Ruby - 5x77 - Max's Sprinkler] to [Max & Ruby - Max's Sprinkler <=> Max & Ruby - 5x76 & 5x77 & 5x78 - Space Bunny & Max's Sprinkler & Max's Pogo Stick]
Map [Max & Ruby - 5x78 - Max's Pogo Stick] to [Max & Ruby - Max's Pogo Stick <=> Max & Ruby - 5x76 & 5x77 & 5x78 - Space Bunny & Max's Sprinkler & Max's Pogo Stick]
Map [Max & Ruby - 7x01 - Max & Ruby's Pirate Adventure] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x02 - Max's Fort] to [Max & Ruby - Max's Fort <=> Max & Ruby - 7x02 & 7x03 - Max's Fort & Ruby's Party Dress]
Map [Max & Ruby - 7x03 - Ruby's Party Dress] to [Max & Ruby - Ruby's Party Dress <=> Max & Ruby - 7x02 & 7x03 - Max's Fort & Ruby's Party Dress]
Map [Max & Ruby - 7x04 - The Frog and the Fly] to [Max & Ruby - The Frog and the Fly <=> Max & Ruby - 7x04 & 7x05 - The Frog and the Fly & Bye Bye Max's Lobster]
Map [Max & Ruby - 7x05 - Bye Bye Max's Lobster] to [Max & Ruby - Bye Bye Max's Lobster <=> Max & Ruby - 7x04 & 7x05 - The Frog and the Fly & Bye Bye Max's Lobster]
Map [Max & Ruby - 7x06 - Ruby's Rocking Bunnies] to [Max & Ruby - Ruby's Rocking Bunnies <=> Max & Ruby - 7x06 & 7x07 - Ruby's Rocking Bunnies & Max's Jump Shot]
Map [Max & Ruby - 7x07 - Max's Jump Shot] to [Max & Ruby - Max's Jump Shot <=> Max & Ruby - 7x06 & 7x07 - Ruby's Rocking Bunnies & Max's Jump Shot]
Map [Max & Ruby - 7x08 - Max's Parachute] to [Max & Ruby - Max's Parachute <=> Max & Ruby - 7x08 & 7x09 - Max's Parachute & The Class Pet]
Map [Max & Ruby - 7x09 - The Class Pet] to [Max & Ruby - The Class Pet <=> Max & Ruby - 7x08 & 7x09 - Max's Parachute & The Class Pet]
Map [Max & Ruby - 7x10 - Ruby's Knot] to [Max & Ruby - Ruby's Knot <=> Max & Ruby - 7x10 & 7x11 - Ruby's Knot & Soccer Star Max]
Map [Max & Ruby - 7x11 - Soccer Star Max] to [Max & Ruby - Soccer Star Max <=> Max & Ruby - 7x10 & 7x11 - Ruby's Knot & Soccer Star Max]
Map [Max & Ruby - 7x12 - Ruby's Book Reading] to [Max & Ruby - Ruby's Book Reading <=> Max & Ruby - 7x12 & 7x13 - Ruby's Book Reading & Max and the Space Alien]
Map [Max & Ruby - 7x13 - Max and the Space Alien] to [Max & Ruby - Max and the Space Alien <=> Max & Ruby - 7x12 & 7x13 - Ruby's Book Reading & Max and the Space Alien]
Map [Max & Ruby - 7x14 - Max and Ruby's Bunnyhop Parade] to [Max & Ruby - Max and Ruby's Bunnyhop Parade <=> Max & Ruby - 7x14 - Max and Ruby's Bunnyhop Parade]
Map [Max & Ruby - 7x15 - The Bunny Gnome] to [Max & Ruby - The Bunny Gnome <=> Max & Ruby - 7x15 & 7x16 - The Bunny Gnome & Max's Movie Magic]
Map [Max & Ruby - 7x16 - Max's Movie Magic] to [Max & Ruby - Max's Movie Magic <=> Max & Ruby - 7x15 & 7x16 - The Bunny Gnome & Max's Movie Magic]
Map [Max & Ruby - 7x17 - Robo-Max] to [Max & Ruby - Robo-Max <=> Max & Ruby - 7x17 & 7x18 - Robo-Max & Let it Snow]
Map [Max & Ruby - 7x18 - Let it Snow] to [Max & Ruby - Let it Snow <=> Max & Ruby - 7x17 & 7x18 - Robo-Max & Let it Snow]
Map [Max & Ruby - 7x19 - Max's Hug] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x20 - Super Spy Max] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x21 - Max's Big Race] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x22 - Max's S'Mores] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x23 - Max and Ruby's Father's Day] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x24 - Ruby's Hockey Practice] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x25 - Ruby's Apples] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x26 - Ruby's Story Time] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x27 - Ruby's Tea Party Surprise] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x28 - Max's Bump in the Night] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x29 - One of a Kind Ruby] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x30 - Ruby's To Do List] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x31 - Happy Baby Huffington] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x32 - Ruby's Cupcakes] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x33 - Ruby's Puzzle] to [Max & Ruby - Ruby's Puzzle <=> Max & Ruby - 7x33 & 7x34 - Ruby's Puzzle & Ruby's Egg Hunt]
Map [Max & Ruby - 7x34 - Ruby's Egg Hunt] to [Max & Ruby - Ruby's Egg Hunt <=> Max & Ruby - 7x33 & 7x34 - Ruby's Puzzle & Ruby's Egg Hunt]
Map [Max & Ruby - 7x35 - Mover Max] to [Max & Ruby - Mover Max <=> Max & Ruby - 7x35 & 7x36 - Mover Max & Ruby's Circus]
Map [Max & Ruby - 7x36 - Ruby's Circus] to [Max & Ruby - Ruby's Circus <=> Max & Ruby - 7x35 & 7x36 - Mover Max & Ruby's Circus]
Map [Max & Ruby - 7x37 - Ruby's Rock] to [Max & Ruby - Ruby's Rock <=> Max & Ruby - 7x37 & 7x38 - Ruby's Rock & Max's Backyard Safari]
Map [Max & Ruby - 7x38 - Max's Backyard Safari] to [Max & Ruby - Max's Backyard Safari <=> Max & Ruby - 7x37 & 7x38 - Ruby's Rock & Max's Backyard Safari]
Map [Max & Ruby - 7x39 - Ruby's Yoga Twist] to [Max & Ruby - Ruby's Yoga Twist <=> Max & Ruby - 7x39 & 7x40 - Ruby's Yoga Twist & Ruby's Cafe]
Map [Max & Ruby - 7x40 - Ruby's Cafe] to [Max & Ruby - Ruby's Cafe <=> Max & Ruby - 7x39 & 7x40 - Ruby's Yoga Twist & Ruby's Cafe]
Map [Max & Ruby - 7x41 - Ruby's Tidy Town] to [Max & Ruby - Ruby's Tidy Town <=> Max & Ruby - 7x41 & 7x42 - Ruby's Tidy Town & Max the Dragon Tamer]
Map [Max & Ruby - 7x42 - Max the Dragon Tamer] to [Max & Ruby - Max the Dragon Tamer <=> Max & Ruby - 7x41 & 7x42 - Ruby's Tidy Town & Max the Dragon Tamer]
Map [Max & Ruby - 7x43 - Max and Ruby and the New Baby] to [Max & Ruby - Max and Ruby and the New Baby <=> Max & Ruby - 7x43 - Max and Ruby and the New Baby]
Map [Max & Ruby - 7x44 - Max's Crew] to [Max & Ruby - Max's Crew <=> Max & Ruby - 7x44 & 7x45 - Max's Crew & Super Helpful Max]
Map [Max & Ruby - 7x45 - Super Helpful Max] to [Max & Ruby - Super Helpful Max <=> Max & Ruby - 7x44 & 7x45 - Max's Crew & Super Helpful Max]
Map [Max & Ruby - 7x46 - The Twin's Puppet Show] to [Max & Ruby - The Twin's Puppet Show <=> Max & Ruby - 7x46 & 7x47 - The Twin's Puppet Show & Max and Ruby's Switch]
Map [Max & Ruby - 7x47 - Max and Ruby's Switch] to [Max & Ruby - Max and Ruby's Switch <=> Max & Ruby - 7x46 & 7x47 - The Twin's Puppet Show & Max and Ruby's Switch]
Map [Max & Ruby - 7x48 - Sea Monster Max] to [Max & Ruby - Sea Monster Max <=> Max & Ruby - 7x48 & 7x49 - Sea Monster Max & Max's Bunny Scout Badge]
Map [Max & Ruby - 7x49 - Max's Bunny Scout Badge] to [Max & Ruby - Max's Bunny Scout Badge <=> Max & Ruby - 7x48 & 7x49 - Sea Monster Max & Max's Bunny Scout Badge]
Map [Max & Ruby - Special 2 - Max and Ruby Afternoons] to [Max & Ruby - Max and Ruby Afternoons <=> Max & Ruby - Special 2 - Max and Ruby Afternoons]
Map [Max & Ruby - Special 4 - Everybunny Loves Winter] to [Max & Ruby - Everybunny Loves Winter <=> Max & Ruby - Special 4 - Everybunny Loves Winter]
Map [Max & Ruby - Special 5 - A Merry Bunny Christmas] to [Max & Ruby - A Merry Bunny Christmas <=> Max & Ruby - Special 5 - A Merry Bunny Christmas]
Map [Max & Ruby - Special 6 - Max and Ruby Bunny Tales] to [Max & Ruby - Max and Ruby Bunny Tales <=> Max & Ruby - Special 6 - Max and Ruby Bunny Tales]
Map [Max & Ruby - Special 8 - Max & Ruby's Christmas] to [Max & Ruby - Max & Ruby's Christmas <=> Max & Ruby - Special 8 - Max & Ruby's Christmas]
Map [Max & Ruby - Special 9 - Max and Ruby Perfect Pumpkin] to [Max & Ruby - Max and Ruby Perfect Pumpkin <=> Max & Ruby - Special 9 - Max and Ruby Perfect Pumpkin]
Map [Max & Ruby - Special 10 - Springtime for Max & Ruby] to [Max & Ruby - Springtime for Max & Ruby <=> Max & Ruby - 0x10 & 0x11 - Springtime for Max & Ruby]
Map [Max & Ruby - Special 11 - Springtime for Max & Ruby] to [Max & Ruby - Springtime for Max & Ruby <=> Max & Ruby - 0x10 & 0x11 - Springtime for Max & Ruby]
Reverse Map [Max & Ruby - Max and Ruby Afternoons] to [Max & Ruby - Special 2 - Max and Ruby Afternoons]
Reverse Map [Max & Ruby - Ruby's Party Dress] to [Max & Ruby - 7x02 & 7x03 - Max's Fort & Ruby's Party Dress]
Reverse Map [Max & Ruby - The Frog and the Fly] to [Max & Ruby - 7x04 & 7x05 - The Frog and the Fly & Bye Bye Max's Lobster]
Reverse Map [Max & Ruby - Max's Jump Shot] to [Max & Ruby - 7x06 & 7x07 - Ruby's Rocking Bunnies & Max's Jump Shot]
Reverse Map [Max & Ruby - Max's Parachute] to [Max & Ruby - 7x08 & 7x09 - Max's Parachute & The Class Pet]
Reverse Map [Max & Ruby - Ruby's Knot] to [Max & Ruby - 7x10 & 7x11 - Ruby's Knot & Soccer Star Max]
Reverse Map [Max & Ruby - Max and the Space Alien] to [Max & Ruby - 7x12 & 7x13 - Ruby's Book Reading & Max and the Space Alien]
Reverse Map [Max & Ruby - Max and Ruby's Bunnyhop Parade] to [Max & Ruby - 7x14 - Max and Ruby's Bunnyhop Parade]
Reverse Map [Max & Ruby - The Bunny Gnome] to [Max & Ruby - 7x15 & 7x16 - The Bunny Gnome & Max's Movie Magic]
Reverse Map [Max & Ruby - Robo-Max] to [Max & Ruby - 7x17 & 7x18 - Robo-Max & Let it Snow]
Reverse Map [Max & Ruby - Max and Ruby Perfect Pumpkin] to [Max & Ruby - Special 9 - Max and Ruby Perfect Pumpkin]
Reverse Map [Max & Ruby - Max and Ruby Bunny Tales] to [Max & Ruby - Special 6 - Max and Ruby Bunny Tales]
[TEST] from [Max and Ruby_S07E01_Max & Ruby's Pirate Adventure.mp4] to [Max..Ruby.S00E02.Max.and.Ruby.Afternoons.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E02_Max's Fort_Ruby's Party Dress.mp4] to [Max..Ruby.S07E02-E03.Maxs.Fort..Rubys.Party.Dress.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E03_The Frog and the Fly_Bye Bye Max's Lobster.mp4] to [Max..Ruby.S07E04-E05.The.Frog.and.the.Fly..Bye.Bye.Maxs.Lobster.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E04_Ruby's Rocking Bunnies_Max's Jump Shot.mp4] to [Max..Ruby.S07E06-E07.Rubys.Rocking.Bunnies..Maxs.Jump.Shot.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E05_Max's Parachute_The Class Pet.mp4] to [Max..Ruby.S07E08-E09.Maxs.Parachute..The.Class.Pet.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E06_Ruby's Knot_Soccer Star Max.mp4] to [Max..Ruby.S07E10-E11.Rubys.Knot..Soccer.Star.Max.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E07_Ruby's Book Reading_Max and the Space Alien.mp4] to [Max..Ruby.S07E12-E13.Rubys.Book.Reading..Max.and.the.Space.Alien.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E08_Max and Ruby's Bunnyhop Parade.mp4] to [Max..Ruby.S07E14.Max.and.Rubys.Bunnyhop.Parade.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E09_The Bunny Gnome_Max's Movie Magic.mp4] to [Max..Ruby.S07E15-E16.The.Bunny.Gnome..Maxs.Movie.Magic.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E10_Robo-Max_Let it Snow.mp4] to [Max..Ruby.S07E17-E18.RoboMax..Let.it.Snow.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E11_Max's Hug_Super Spy Max.mp4] to [Max..Ruby.S00E09.Max.and.Ruby.Perfect.Pumpkin.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E12_Max's Big Race_Max's S'mores.mp4] to [Max..Ruby.S00E06.Max.and.Ruby.Bunny.Tales.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
Processed 12 files
Changing episode.number(null).map(episodelist.findAll{ airdate == it.airdate }).reverse() to be episode.number(null) doesn't fix since it will only match one episode.

Can I match episode segments without specifying an air date?
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by rednoah »

:?: Based on the episode list alone, can you know which episodes belong together?
https://thetvdb.com/series/max-and-ruby ... official/7


:idea: --mapper conceptually cannot take file names into account, so it'll always work the same irregardless of the file paths you pass along, so --mapper cannot help you if you need to look at the file names that you have to figure out which episodes need to be grouped together.


:idea: That said, the episode list above does suggest that you do want to group files together that are aired on the same airdate, and the console output suggests that it mostly works correctly already:

Code: Select all

...
[TEST] from [Max and Ruby_S07E02_Max's Fort_Ruby's Party Dress.mp4] to [Max..Ruby.S07E02-E03.Maxs.Fort..Rubys.Party.Dress.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E03_The Frog and the Fly_Bye Bye Max's Lobster.mp4] to [Max..Ruby.S07E04-E05.The.Frog.and.the.Fly..Bye.Bye.Maxs.Lobster.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E04_Ruby's Rocking Bunnies_Max's Jump Shot.mp4] to [Max..Ruby.S07E06-E07.Rubys.Rocking.Bunnies..Maxs.Jump.Shot.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
...

:idea: You may be able to work around the mismatches by looking at Season 7 only:

Shell: Select all

--filter "s == 7"

Code: Select all

...
[TEST] from [Max and Ruby_S07E11_Max's Hug_Super Spy Max.mp4] to [Max..Ruby.S00E09.Max.and.Ruby.Perfect.Pumpkin.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
[TEST] from [Max and Ruby_S07E12_Max's Big Race_Max's S'mores.mp4] to [Max..Ruby.S00E06.Max.and.Ruby.Bunny.Tales.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
...



EDIT:

:!: You may also need to add missing airdates to TheTVDB online where missing, and then wait for ~4 days for updated episode information to trickle down.

Code: Select all

...
Map [Max & Ruby - 7x19 - Max's Hug] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x20 - Super Spy Max] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x21 - Max's Big Race] to [...] failed: Binding "airdate": undefined
Map [Max & Ruby - 7x22 - Max's S'Mores] to [...] failed: Binding "airdate": undefined
...

EDIT 2:

The mismatches do seem to be caused by missing airdates, so adding the missing airdates online will make it work:

Code: Select all

...
Map [Max & Ruby - 7x01 - Max & Ruby's Pirate Adventure] to [...] failed: Binding "airdate": undefined
...
[TEST] from [Max and Ruby_S07E01_Max & Ruby's Pirate Adventure.mp4] to [Max..Ruby.S00E02.Max.and.Ruby.Afternoons.1080p.AMZN.WEB-DL.DDP2.0.AVC.mp4]
...
:idea: Alternatively, you can also modify your --mapper expression to catch errors and just return the Episode object at hand unmodified for matching.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by rednoah »

The following --mapper adds "no mapping on error" logic, as opposed to failing and excluding the unmappable episode from matching:

Groovy: Select all

any{ episode.number(null).map(episodelist.findAll{ airdate == it.airdate }.episode).reverse() }{ null }
NOTE: {episodelist} has changed; the code above requires FileBot 5.1.0 or higher
:idea: Please read the FAQ and How to Request Help.
Larsenv
Posts: 8
Joined: 18 Sep 2023, 17:00

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by Larsenv »

Could I match the episode by name? That correctly works if you're using 1-episode files, not working on 2-episode files.
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by rednoah »

Larsenv wrote: 22 Sep 2023, 02:37 Could I match the episode by name? That correctly works if you're using 1-episode files, not working on 2-episode files.
--mapper at the very least can't help you do that for reasons explained in my previous post. Well, --mapper is programmable so maybe it's possible and I just don't know how to do it.


However I already gave you a solution that works for your files in my post recent reply, no? Perhaps you can try that solution and then report back with success or failure command and console output?

Console Output: Select all

$ filebot -rename *.mp4 --format "{plex.name}" --db TheTVDB -non-strict --mapper "any{ episode.number(null).map(episodelist.findAll{ airdate == it.airdate }.episode).reverse() }{ null }" --action TEST --log INFO
[TEST] from [Max and Ruby_S07E01_Max & Ruby's Pirate Adventure.mp4] to [Max & Ruby - S07E01 - Max & Ruby's Pirate Adventure.mp4]
[TEST] from [Max and Ruby_S07E02_Max's Fort_Ruby's Party Dress.mp4] to [Max & Ruby - S07E02-E03 - Max's Fort & Ruby's Party Dress.mp4]
...
NOTE: {episodelist} has changed; the code above requires FileBot 5.1.0 or higher
:idea: Please read the FAQ and How to Request Help.
Larsenv
Posts: 8
Joined: 18 Sep 2023, 17:00

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by Larsenv »

I tried another show and it didn't work very nicely.

Code: Select all

filebot -rename *.mp4 --format "{n.space('zyxzyx').replaceAll(/\W/, '').replaceAll('zyxzyx', '.')}.{s00e00}.{t.space('zyxzyx').replaceAll(/\W/, '').replaceAll('zyxzyx', '.')}.{vf}.AMZN.WEB-DL.AAC2.0.{vc}" --db TheTVDB -non-strict --mapper "any{ episode.number(null).map(episodelist.findAll{ airdate == it.airdate }.episode).reverse() }{ null }" --action TEST --log INFO --q "Little Bill"
[TEST] from [Little Bill_S03E23_Echo Falls_Going Fishing.mp4] to [Little.Bill.S04E10.Echo.Falls.Going.Fishing.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E11_What About Me__Happy Not-Birthday To You!.mp4] to [Little.Bill.S03E11.Number.One.On.Honeywood.Street.Baseball.Glovers.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S01E08_The Meanest Thing to Say_Lavatory Story.mp4] to [Little.Bill.S01E08.Chicken.Pox.Shipwreck.Saturday.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S01E07_The Promise_The Practice.mp4] to [Little.Bill.S01E07.The.Zoo.My.Pet.Elephant.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E16_The New Babysitter _My Friend  Isabel.mp4] to [Little.Bill.S04E06.The.New.Babysitter.My.Friend.Isabel.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S01E02_Zoopity-Zoo_The Neighborhood Park.mp4] to [Little.Bill.S01E02.Just.A.Baby.The.Campout.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E03_The Car Keys_Doggie Sitting.mp4] to [Little.Bill.S03E03.Monty.Visits.Moms.Trip.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S02E10_The Snack Helper_Buds.mp4] to [Little.Bill.S02E10.Rolling.Along.The.Stage.Trick.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E24_The Early Bill_Going Camping.mp4] to [Little.Bill.S04E04.The.Early.Bill.Going.Camping.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E01_Little Bill's Adventure With Captain Brainstorm!.mp4] to [Little.Bill.S02E01.Little.Bills.Adventure.with.Captain.Brainstorm.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E13_Racing Time_All Tied Up.mp4] to [Little.Bill.S04E12.Racing.Time.All.Tied.Up.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E05_Wabbit Worries_Wabbit Babies.mp4] to [Little.Bill.S03E05.The.Halloween.Costume.The.Haunted.Halloween.Party.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E05_Making Mother's Day_Picture Perfect.mp4] to [Little.Bill.S02E05.Are.We.There.Yet.Super.Family.Fun.Land.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S01E04_Just a Baby_The Campout.mp4] to [Little.Bill.S01E04.Montys.Roar.Natural.Root.Pals.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E17_The Halloween Costume_The  Haunted Halloween Party.mp4] to [Little.Bill.S04E02.When.Friends.Get.Mad.The.Party.Box.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E12_Monty Joins The Class_Dad Goes To School.mp4] to [Little.Bill.S03E12.Little.Bills.Giant.Space.Adventure.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E10_Summertime in the Wintertime_Snowracers!.mp4] to [Little.Bill.S03E10.Ready.Set.Read.I.Got.A.Letter.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E25_LITTLE BILL'S GIANT SPACE ADVENTURE  [Captain Brainstorm special].mp4] to [Little.Bill.S04E14.The.Incredible.Shrinking.Little.Bill.The.Big.Swings.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E21_Merry Christmas, Little Bill!.mp4] to [Little.Bill.S04E03.New.Neighbors.Doggie.Magic.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E02_The New Neighbors_Doggie Magic.mp4] to [Little.Bill.S03E02.The.Violin.Lesson.Squirmy.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S01E01_Monty's Roar_Natural Root Pals.mp4] to [Little.Bill.S01E01.The.Treasure.Hunt.The.Best.Way.To.Play.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E18_The Best Book Ever _ A Ramp For Monty.mp4] to [Little.Bill.S04E09.The.Best.Book.Ever.A.Ramp.For.Monty.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E03_Rolling Along_The Stage Trick.mp4] to [Little.Bill.S02E03.Zoopity.Zoo.The.Neighborhood.Park.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E11_A Day At The Beach_The Get Well Song.mp4] to [Little.Bill.S02E11.The.Snack.Helper.Buds.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E15_Get Well, Elephant_Elephant's Best Friend.mp4] to [Little.Bill.S04E18.Get.Well.Elephant.Elephants.Best.Friend.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E04_A Trip To The Hospital _The Wrong Thing To Do.mp4] to [Little.Bill.S02E04.The.Promise.The.Practice.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S01E03_Guppies_The Magic Quilt.mp4] to [Little.Bill.S01E03.The.Dollar.The.Choice.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S01E12_Copy Cat _Picture Day.mp4] to [Little.Bill.S02E12.Copy.Cat.Picture.Day.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E02_The Birthday Present_The Birthday Party.mp4] to [Little.Bill.S02E02.Elephant.On.The.Loose.If.A.Bird.Rings.Answer.It.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E06_#1 On Honeywood Street_Baseball Glover.mp4] to [Little.Bill.S02E06.The.Ring.Bear.Miss.Murrays.Wedding.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E04_Same Moon, Same Sun, Same Star_All Together Now.mp4] to [Little.Bill.S03E04.The.NoTalking.Contest.The.Search.For.The.Sock.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E07_New Foods_Elephant Tricks.mp4] to [Little.Bill.S03E07.A.Day.At.The.Beach.The.Get.Well.Song.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E08_When Friends Get Mad_The Party Box.mp4] to [Little.Bill.S03E08.Michael.Sleeps.Over.Michaels.First.Snow.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S01E13_Elephant On The Loose_If A Bird Rings, Answer It!.mp4] to [Little.Bill.S04E13.Summertime.In.The.Wintertime.Snow.Racer.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E08_Michael Sleeps Over_Michael's First Snow.mp4] to [Little.Bill.S02E08.A.Trip.To.The.Hospital.The.Wrong.Thing.To.Do.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E01_The Incredible Shrinking Little Bill_The Big Swings.mp4] to [Little.Bill.S03E01.Monty.Joins.The.Class.Dad.Goes.To.School.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S01E10_Are We There Yet__Super Family Fun Land!.mp4] to [Little.Bill.S04E01.Same.Moon.Same.Sun.Same.Star.All.Together.Now.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E06_Ready, Set, Read!_I Got A Letter.mp4] to [Little.Bill.S03E06.Merry.Christmas.Little.Bill.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E20_The Musical Instrument_The Choir.mp4] to [Little.Bill.S04E15.The.Musical.Instrument.The.Choir.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S01E05_The Dollar_ The Choice.mp4] to [Little.Bill.S01E05.Guppies.The.Magic.Quilt.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E22_I Can Sign_The Sign For _Friend_.mp4] to [Little.Bill.S04E16.I.Can.Sign.The.Sign.For.Friend.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S02E07_Violin Lessons _Squirmy.mp4] to [Little.Bill.S02E07.The.Birthday.Present.The.Birthday.Party.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E14_The Surprise _ Good Ol' Lightnin'.mp4] to [Little.Bill.S04E11.The.Surprise.Good.Ol.Lightnin.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S02E09_Monty's Visit_Mom's Trip.mp4] to [Little.Bill.S02E09.Making.Mothers.Day.Picture.Perfect.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S01E06_Chicken Pox_Shipwreck Saturday.mp4] to [Little.Bill.S01E06.The.Meanest.Thing.To.Say.Lavatory.Story.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S01E11_The Zoo_My Pet Elephant.mp4] to [Little.Bill.S04E07.New.Foods.Elephant.Tricks.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
[TEST] from [Little Bill_S03E19_The Skating Lesson _ Mr_ Moth.mp4] to [Little.Bill.S04E17.The.Skating.Lesson.Mr.Moth.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S01E09_Big Kid_The Bills Go To Work.mp4] to [Little.Bill.S01E09.Big.Kid.The.Bills.Go.To.Work.576p.AMZN.WEB-DL.AAC2.0.AVC.mp4]
[TEST] from [Little Bill_S03E09_The No-Talking Contest_The Search is for the Sock.mp4] to [Little.Bill.S03E09.Wabbit.Worries.Wabbit.Babies.480p.AMZN.WEB-DL.AAC2.0.x264.mp4]
I want to match by episode name. Not season or episode or airdate. I only was using the airdate mapper because I couldn't find a way to derive by episode names when there's multiple episodes.
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by rednoah »

:idea: Little Bill notably does not require multi-episode matching (i.e. match a file to multiple SxE numbers) as far as I can see:

Code: Select all

Little Bill - 1x01 - The Treasure Hunt / The Best Way To Play
Little Bill - 1x02 - Just A Baby / The Campout
Little Bill - 1x03 - The Dollar / The Choice
...

:arrow: So the standard Match by Episode Title instructions will work best in this case:
rednoah wrote: 20 Aug 2018, 16:38 e.g. force Match by Episode Title or Match by Episode Airdate by nullifying SxE numbers:

Shell: Select all

--mapper "episode.number(null)"

e.g.

Console Output: Select all

$ filebot -rename *.mp4 --db TheTVDB -non-strict --mapper "episode.number(null)" --action TEST --log INFO
[TEST] from [Little Bill_S01E08_The Meanest Thing to Say_Lavatory Story.mp4] to [Little Bill - 1x06 - The Meanest Thing To Say  Lavatory Story.mp4]
[TEST] from [Little Bill_S03E11_What About Me__Happy Not-Birthday To You!.mp4] to [Little Bill - 4x08 - What About Me Happy Not Birthday To You.mp4]
[TEST] from [Little Bill_S03E23_Echo Falls_Going Fishing.mp4] to [Little Bill - 4x10 - Echo Falls Going Fishing.mp4]
:idea: Please read the FAQ and How to Request Help.
Larsenv
Posts: 8
Joined: 18 Sep 2023, 17:00

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by Larsenv »

I have lots of different shows I wanna rename, but some of them need matching for the multiple episodes because they're listed separately. For example SpongeBob is one. How can I do that?
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by rednoah »

Larsenv wrote: 24 Sep 2023, 15:11 I have lots of different shows I wanna rename, but some of them need matching for the multiple episodes because they're listed separately. For example SpongeBob is one. How can I do that?
:arrow: You do know that I'm gonna ask for sample file paths by now, right? :lol:


:arrow: In absence of you providing a test case that covers all the corner cases that you need taken care of, I took a few seemingly representative files from the thread above to see if I can write a single command that works for all of them:

Console Output: Select all

$ filebot -rename *.mp4 --format "{plex.name}" --db TheTVDB -non-strict --mapper "any{ episode.number(null).map(episodelist.findAll{ airdate == it.airdate }.episode).reverse() }{ episode.number(null) }" --action TEST --log INFO
[TEST] from [Little Bill_S01E08_The Meanest Thing to Say_Lavatory Story.mp4] to [Little Bill - S01E06 - The Meanest Thing To Say Lavatory Story.mp4]
[TEST] from [Little Bill_S03E11_What About Me__Happy Not-Birthday To You!.mp4] to [Little Bill - S04E08 - What About Me Happy Not Birthday To You.mp4]
[TEST] from [Max and Ruby_S07E01_Max & Ruby's Pirate Adventure.mp4] to [Max & Ruby - S07E01 - Max & Ruby's Pirate Adventure.mp4]
[TEST] from [Max and Ruby_S07E02_Max's Fort_Ruby's Party Dress.mp4] to [Max & Ruby - S07E02-E03 - Max's Fort & Ruby's Party Dress.mp4]
:idea: Please read the FAQ and How to Request Help.
Larsenv
Posts: 8
Joined: 18 Sep 2023, 17:00

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by Larsenv »

Closer, but I tried it on SpongeBob and it doesn't select each episode. Your help's appreciated. Thank you.

Code: Select all

filebot -rename *.mp4 --format "{plex.name}" --db TheTVDB -non-strict --mapper "any{ episode.number(null).map(episodelist.findAll{ airdate == it.airdate }.episode).reverse() }{ episode.number(null) }" --action TEST --log INFO
[TEST] from [SpongeBob SquarePants_S01E01_Help Wanted_Reef Blowers_Tea at the Treedome.mp4] to [SpongeBob SquarePants - S01E03 - Tea at the Treedome.mp4]
[TEST] from [SpongeBob SquarePants_S01E02_Bubblestand_Ripped Pants.mp4] to [SpongeBob SquarePants - S01E05 - Ripped Pants.mp4]
[TEST] from [SpongeBob SquarePants_S01E03_Jellyfishing_Plankton.mp4] to [SpongeBob SquarePants - S01E06 - Jellyfishing.mp4]
[TEST] from [SpongeBob SquarePants_S01E04_Naughty Nautical Neighbors_Boating School.mp4] to [SpongeBob SquarePants - S01E08 - Naughty Nautical Neighbors.mp4]
[TEST] from [SpongeBob SquarePants_S01E05_Pizza Delivery_Home Sweet Pineapple.mp4] to [SpongeBob SquarePants - S01E11 - Home Sweet Pineapple.mp4]
[TEST] from [SpongeBob SquarePants_S01E06_Mermaid Man and Barnacle Boy_Pickles.mp4] to [SpongeBob SquarePants - S01E12 - Mermaid Man and Barnacle Boy.mp4]
[TEST] from [SpongeBob SquarePants_S01E07_Hall Monitor_Jellyfish Jam.mp4] to [SpongeBob SquarePants - S01E15 - Jellyfish Jam.mp4]
[TEST] from [SpongeBob SquarePants_S01E08_Sandy's Rocket_Squeaky Boots.mp4] to [SpongeBob SquarePants - S01E17 - Squeaky Boots.mp4]
[TEST] from [SpongeBob SquarePants_S01E09_Nature Pants_Opposite Day.mp4] to [SpongeBob SquarePants - S01E19 - Opposite Day.mp4]
[TEST] from [SpongeBob SquarePants_S01E10_Culture Shock_F_U_N_.mp4] to [SpongeBob SquarePants - S01E20 - Culture Shock.mp4]
[TEST] from [SpongeBob SquarePants_S01E11_MuscleBob Buffpants_Squidward, The Unfriendly Ghost.mp4] to [SpongeBob SquarePants - S01E23 - Squidward the Unfriendly Ghost.mp4]
[TEST] from [SpongeBob SquarePants_S01E12_The Chaperone_Employee of the Month.mp4] to [SpongeBob SquarePants - S01E25 - Employee of the Month.mp4]
[TEST] from [SpongeBob SquarePants_S01E13_Scaredy Pants_I Was a Teenage Gary.mp4] to [SpongeBob SquarePants - S01E27 - I Was a Teenage Gary.mp4]
[TEST] from [SpongeBob SquarePants_S01E14_SpongeBob 129_Karate Choppers.mp4] to [SpongeBob SquarePants - S01E29 - Karate Choppers.mp4]
[TEST] from [SpongeBob SquarePants_S01E15_Sleepy Time_Suds.mp4] to [SpongeBob SquarePants - S01E31 - Suds.mp4]
[TEST] from [SpongeBob SquarePants_S01E16_Valentine's Day_The Paper.mp4] to [SpongeBob SquarePants - S01E32 - Valentine's Day.mp4]
[TEST] from [SpongeBob SquarePants_S01E17_Arrgh!_Rock Bottom.mp4] to [SpongeBob SquarePants - S01E35 - Rock Bottom.mp4]
[TEST] from [SpongeBob SquarePants_S01E18_Texas_Walking Small.mp4] to [SpongeBob SquarePants - S01E37 - Walking Small.mp4]
[TEST] from [SpongeBob SquarePants_S01E19_Fools In April_Neptune's Spatula.mp4] to [SpongeBob SquarePants - S01E39 - Neptune's Spatula.mp4]
[TEST] from [SpongeBob SquarePants_S01E20_Hooky_Mermaid Man II.mp4] to [SpongeBob SquarePants - S01E40 - Hooky.mp4]
Larsenv
Posts: 8
Joined: 18 Sep 2023, 17:00

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by Larsenv »

Max and Ruby still doesn't properly get renamed.

Code: Select all

filebot -rename *.mp4 --format "{plex.name}" --db TheTVDB -non-strict --mapper "any{ episode.number(null).map(episodelist.findAll{ airdate == it.airdate }.episode).reverse() }{ episode.number(null) }" --action TEST --log INFO --q "Max and Ruby"
[TEST] from [Max and Ruby_S01E01_Ruby's Piano Practice _ Max's Bath_Max's Bedtime.mp4] to [Max & Ruby - S01E03 - Max's Bedtime.mp4]
[TEST] from [Max and Ruby_S01E02_Hide and Seek_Max's Breakfast_Louise's Secret.mp4] to [Max & Ruby - S01E04 - Hide and Seek.mp4]
[TEST] from [Max and Ruby_S01E03_Max Misses the Bus_Max's Wormcake_Max's Rainy Day.mp4] to [Max & Ruby - S01E09 - Max's Rainy Day.mp4]
[TEST] from [Max and Ruby_S01E04_Ruby's Clubhouse _ Camp Out_Max's Picnic.mp4] to [Max & Ruby - S01E12 - Max's Picnic.mp4]
[TEST] from [Max and Ruby_S01E05_Max's Halloween_Ruby's Leaf Collection_The Blue Tarantula.mp4] to [Max & Ruby - S01E15 - The Blue Tarantula.mp4]
[TEST] from [Max and Ruby_S01E06_Ruby's Merit Badge_Max's Apple_Quiet, Max!.mp4] to [Max & Ruby - S01E16 - Ruby's Merit Badge.mp4]
[TEST] from [Max and Ruby_S01E07_Max Cleans Up_Max's Cuckoo Clock_Ruby's Jewelry Box.mp4] to [Max & Ruby - S01E20 - Max's Cuckoo Clock.mp4]
[TEST] from [Max and Ruby_S01E08_Bunny Cakes_Bunny Party_Bunny Money.mp4] to [Max & Ruby - S01E22 - Bunny Cakes.mp4]
[TEST] from [Max and Ruby_S01E09_Max's Birthday_Max's New Suit_Good Night Max.mp4] to [Max & Ruby - S01E25 - Max's Birthday.mp4]
[TEST] from [Max and Ruby_S01E10_Max's Christmas_Ruby's Snow Queen_Max's Rocket Run.mp4] to [Max & Ruby - S01E28 - Max's Christmas.mp4]
[TEST] from [Max and Ruby_S01E11_Max's Chocolate Chicken _ Ruby's Beauty Shop_Max Drives Away.mp4] to [Max & Ruby - S01E31 - Max's Chocolate Chicken.mp4]
[TEST] from [Max and Ruby_S01E12_Ruby's Lemonade Stand_Ruby's Rummage Sale_Ruby's Magic Act.mp4] to [Max & Ruby - S01E34 - Ruby's Lemonade Stand.mp4]
[TEST] from [Max and Ruby_S01E13_Max's Valentine_Ruby Flies a Kite_Super Max.mp4] to [Max & Ruby - S01E37 - Max's Valentine.mp4]
[TEST] from [Max and Ruby_S01E14_Max's Work of Art_Max Meets Morris_Ruby's Scavenger Hunt.mp4] to [Max & Ruby - S02E01 - Max's Work of Art.mp4]
[TEST] from [Max and Ruby_S01E15_Ruby's Hiccups_The Big Picture_Ruby's Stage Show.mp4] to [Max & Ruby - S02E06 - Ruby's Stage Show.mp4]
[TEST] from [Max and Ruby_S01E16_Max's Froggy Friend_Max's Music_Max Gets Wet.mp4] to [Max & Ruby - S02E07 - Max's Froggy Friend.mp4]
[TEST] from [Max and Ruby_S01E17_Ruby's Tea Party_Max Is It_Ruby's Science Project.mp4] to [Max & Ruby - S02E12 - Ruby's Science Project.mp4]
[TEST] from [Max and Ruby_S01E18_Ruby's Panda Prize_Ruby's Rollerskates_Ghost Bunny.mp4] to [Max & Ruby - S02E13 - Ruby's Panda Prize.mp4]
[TEST] from [Max and Ruby_S01E19_Max's Bug Salad_Ruby's Beach Party_Super Max To The Rescue.mp4] to [Max & Ruby - S02E18 - Super Max to the Rescue.mp4]
[TEST] from [Max and Ruby_S01E20_Max's Dragon Shirt_Max's Rabbit Racer_Roger's Choice.mp4] to [Max & Ruby - S02E20 - Max's Rabbit Racer.mp4]
[TEST] from [Max and Ruby_S01E21_Ruby's Pajama Party_Baby Max_Bunny Scout Brownies.mp4] to [Max & Ruby - S02E24 - Bunny Scout Brownies.mp4]
[TEST] from [Max and Ruby_S01E22_Max's Shadow_Max Remembers_Ruby's Candy Store.mp4] to [Max & Ruby - S02E25 - Max's Shadow.mp4]
[TEST] from [Max and Ruby_S01E23_Max's Check Up_Max's Prize_Space Max.mp4] to [Max & Ruby - S02E29 - Max's Prize.mp4]
[TEST] from [Max and Ruby_S01E24_Ruby's Figure Eight_Ruby's Surprise Party_Ruby's Tent.mp4] to [Max & Ruby - S02E32 - Ruby's Surprise Party.mp4]
[TEST] from [Max and Ruby_S01E25_Ruby Writes a Story_Max's Dominoes_Grandma's Attic.mp4] to [Max & Ruby - S02E36 - Grandma's Attic.mp4]
[TEST] from [Max and Ruby_S01E26_Max's Thanksgiving_Max's Pretend Friend_Fireman Max.mp4] to [Max & Ruby - S02E38 - Max's Pretend Friend.mp4]
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by rednoah »

e.g.

Console Output: Select all

$ filebot -rename SpongeBob*.mp4 --format '{plex.name}' --db TheTVDB -non-strict --mapper 'any{ if (regular) episode.number(null).map(episodelist.findAll{ airdate == it.airdate && !it.special }.episode).reverse() }{ episode.number(null) }' --action TEST --log INFO
[TEST] from [SpongeBob SquarePants_S01E01_Help Wanted_Reef Blowers_Tea at the Treedome.mp4] to [SpongeBob SquarePants - S01E01-E03 - Help Wanted & Reef Blower & Tea at the Treedome.mp4]
[TEST] from [SpongeBob SquarePants_S01E02_Bubblestand_Ripped Pants.mp4] to [SpongeBob SquarePants - S01E04-E05 - Bubblestand & Ripped Pants.mp4]
:!: SpongeBob SquarePants can have multiple regular episodes and special episodes on the same airdate.


EDIT:

e.g.

Console Output: Select all

$ filebot -rename Max*.mp4 --format '{plex.name}' --db TheTVDB -non-strict --mapper 'any{ if (regular) episode.number(null).map(episodelist.findAll{ airdate == it.airdate && !it.special }.episode).reverse() }{ episode.number(null) }' --action TEST --log INFO
[TEST] from [Max and Ruby_S01E01_Ruby's Piano Practice _ Max's Bath_Max's Bedtime.mp4] to [Max & Ruby - S01E01-E03 - Ruby's Piano Practice & Max's Bath & Max's Bedtime.mp4]
:!: Same code also works for Max and Ruby. But the changes don't affect Max and Ruby as far as I can tell, so you're possibly getting different results some some other reason... Your log suggests that the "group by airdate" aspect fails for you.


EDIT 2:

:?: You did update to FileBot 5.1.0 or higher, right? NOTE: {episodelist} has changed; the code above requires FileBot 5.1.0 or higher
:idea: Please read the FAQ and How to Request Help.
Larsenv
Posts: 8
Joined: 18 Sep 2023, 17:00

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by Larsenv »

FileBot was on an older version and I updated that now.

Still doesn't rename properly with all episodes.

Take a look.

Code: Select all

filebot -rename Max*.mp4 --format '{plex.name}' --db TheTVDB -non-strict --mapper 'any{ if (regular) episode.number(null).map(episodelist.findAll{ airdate == it.airdate && !it.special }.episode).reverse() }{ episode.number(null) }' --action TEST --log INFO
[TEST] from [Max and Ruby_S07E01_Max & Ruby's Pirate Adventure.mp4] to [Max & Ruby - S07E01 - Max & Ruby's Pirate Adventure.mp4]
[TEST] from [Max and Ruby_S07E02_Max's Fort_Ruby's Party Dress.mp4] to [Max & Ruby - S07E02-E03 - Max's Fort & Ruby's Party Dress.mp4]
[TEST] from [Max and Ruby_S07E03_The Frog and the Fly_Bye Bye Max's Lobster.mp4] to [Max & Ruby - S07E04-E05 - The Frog and the Fly & Bye Bye Max's Lobster.mp4]
[TEST] from [Max and Ruby_S07E04_Ruby's Rocking Bunnies_Max's Jump Shot.mp4] to [Max & Ruby - S07E06-E07 - Ruby's Rocking Bunnies & Max's Jump Shot.mp4]
[TEST] from [Max and Ruby_S07E05_Max's Parachute_The Class Pet.mp4] to [Max & Ruby - S07E08-E09 - Max's Parachute & The Class Pet.mp4]
[TEST] from [Max and Ruby_S07E06_Ruby's Knot_Soccer Star Max.mp4] to [Max & Ruby - S07E10-E11 - Ruby's Knot & Soccer Star Max.mp4]
[TEST] from [Max and Ruby_S07E07_Ruby's Book Reading_Max and the Space Alien.mp4] to [Max & Ruby - S07E12-E13 - Ruby's Book Reading & Max and the Space Alien.mp4]
[TEST] from [Max and Ruby_S07E08_Max and Ruby's Bunnyhop Parade.mp4] to [Max & Ruby - S07E14 - Max and Ruby's Bunnyhop Parade.mp4]
[TEST] from [Max and Ruby_S07E09_The Bunny Gnome_Max's Movie Magic.mp4] to [Max & Ruby - S07E15-E16 - The Bunny Gnome & Max's Movie Magic.mp4]
[TEST] from [Max and Ruby_S07E10_Robo-Max_Let it Snow.mp4] to [Max & Ruby - S07E17-E18 - Robo-Max & Let it Snow.mp4]
[TEST] from [Max and Ruby_S07E11_Max's Hug_Super Spy Max.mp4] to [Max & Ruby - S07E20 - Super Spy Max.mp4]
[TEST] from [Max and Ruby_S07E12_Max's Big Race_Max's S'mores.mp4] to [Max & Ruby - S07E21 - Max's Big Race.mp4]
[TEST] from [Max and Ruby_S04E01_Max's Castle_Bunny Hopscotch_Max's Grasshopper.mp4] to [Max & Ruby - S04E01-E03 - Max's Castle & Bunny Hopscotch & Max's Grasshopper.mp4]
[TEST] from [Max and Ruby_S04E02_Grandma's Treasure Hunt_Ruby's Jigsaw Puzzle_Ruby's Recital.mp4] to [Max & Ruby - S04E04-E06 - Grandma's Treasure Hunt & Ruby's Jigsaw Puzzle & Ruby's Recital.mp4]
[TEST] from [Max and Ruby_S04E03_Ruby's Home Run_Ruby's Missing Tune_Ruby's Handstand.mp4] to [Max & Ruby - S04E07 - Ruby's Home Run.mp4]
[TEST] from [Max and Ruby_S04E04_Ruby's Gingerbread House_Max's Christmas Passed_Max's New Year.mp4] to [Max & Ruby - S04E10 - Ruby's Gingerbread House (Max and Ruby's Bunny Tales).mp4]
[TEST] from [Max and Ruby_S04E05_The Princess and the Marbles_Emperor Max's New Suit_Max and the Three Little Bunnies.mp4] to [Max & Ruby - S04E13 - The Princess and the Marbles (Max and Ruby's Bunny Tales).mp4]
[TEST] from [Max and Ruby_S04E06_Ruby's Rainbow_Home Tweet Home_Max's Mudpie.mp4] to [Max & Ruby - S04E35 - Home Tweet Home.mp4]
[TEST] from [Max and Ruby_S04E07_Max's Balloon Buddies_Ruby's Penny Carnival_Ruby's Big Win.mp4] to [Max & Ruby - S04E17 - Ruby's Penny Carnival.mp4]
[TEST] from [Max and Ruby_S04E08_Ruby's Hoola Hoop_Max and the Martians_Ruby's Real Cinderella.mp4] to [Max & Ruby - S04E20 - Max and the Martians.mp4]
[TEST] from [Max and Ruby_S04E09_Duck Duck Goose_Ruby's Snowbunny_Ruby's Snowflake.mp4] to [Max & Ruby - S04E24 - Ruby's Snowflake.mp4]
[TEST] from [Max and Ruby_S04E10_Ruby's Good Neighbour Report_Candy Counting_Ruby's New Shoes.mp4] to [Max & Ruby - S04E25-E27 - Ruby's Good Neighbor Report & Candy Counting & Ruby's New Shoes.mp4]
[TEST] from [Max and Ruby_S04E11_Max Saves the Parade_Max's Big Kick_Ruby's Horn of Plenty.mp4] to [Max & Ruby - S04E28 - Max Saves the Parade.mp4]
[TEST] from [Max and Ruby_S04E12_Super Max's Cape_Ruby's Water Lily_Max Says Goodbye.mp4] to [Max & Ruby - S04E31 - Super Max's Cape.mp4]
[TEST] from [Max and Ruby_S06E01_Max's Preschool_Grandma's Storytime Sleepover.mp4] to [Max & Ruby - S06E01-E04 - Max's Preschool & Grandma's Strorytime Sleepover & Ruby's Teacher & Max's Art Time.mp4]
[TEST] from [Max and Ruby_S06E02_Ruby's Teacher_Max's Art Time.mp4] to [Max & Ruby - S06E01-E04 - Max's Preschool & Grandma's Strorytime Sleepover & Ruby's Teacher & Max's Art Time.mp4]
[TEST] from [Max and Ruby_S06E04_Max's Rocket_Max! Bam! Boom!.mp4] to [Max & Ruby - S06E07-E08 - Max's Rocket & Max! Bam! Boom.mp4]
[TEST] from [Max and Ruby_S06E05_Max Whistles_Ruby's Photo Op.mp4] to [Max & Ruby - S06E09-E10 - Max Whistles & Ruby's Photo Op.mp4]
[TEST] from [Max and Ruby_S06E06_Grandma's Surprise_Costume Day.mp4] to [Max & Ruby - S06E11-E12 - Grandma's Surprise & Costume Day.mp4]
[TEST] from [Max and Ruby_S06E07_Max's Skateboard_Super Butterfly.mp4] to [Max & Ruby - S06E13-E14 - Max's Skateboard & Super Butterfly.mp4]
[TEST] from [Max and Ruby_S06E08_Ruby Juggles_Max and Priya.mp4] to [Max & Ruby - S06E15-E16 - Ruby Juggles & Max and Priya.mp4]
[TEST] from [Max and Ruby_S06E09_Dino Hunter Max_Ruby's Solar System.mp4] to [Max & Ruby - S06E17-E18 - Dino Hunter Max & Ruby's Solar System.mp4]
[TEST] from [Max and Ruby_S06E10_Fun in the Sun_Max the Detective.mp4] to [Max & Ruby - S06E19-E20 - Fun in the Sun & Max the Detective.mp4]
[TEST] from [Max and Ruby_S06E11_Cowboy Max_Ruby's Poem.mp4] to [Max & Ruby - S06E21-E22 - Cowboy Max & Ruby's Poem.mp4]
[TEST] from [Max and Ruby_S06E12_Max and Winston_Grandma's Bunny Sniffles.mp4] to [Max & Ruby - S06E23-E24 - Max and Winston & Grandma's Bunny Sniffles.mp4]
[TEST] from [Max and Ruby_S06E13_You Can't Catch Me_Max's Bubbles.mp4] to [Max & Ruby - S00E06 - Max and Ruby Bunny Tales.mp4]
[TEST] from [Max and Ruby_S06E14_Ruby's Chocolate Chip Chaos_Max's Kazoo.mp4] to [Max & Ruby - S00E08 - Max & Ruby's Christmas.mp4]
[TEST] from [Max and Ruby_S06E15_Ruby's Party_Max's Super Jet.mp4] to [Max & Ruby - S00E02 - Max and Ruby Afternoons.mp4]
[TEST] from [Max and Ruby_S06E16_Max Decorates_Max's Shiny Coin.mp4] to [Max & Ruby - S06E31 - Max Decorates.mp4]
[TEST] from [Max and Ruby_S06E17_Super Shopper Max_Ruby's Time Capsule.mp4] to [Max & Ruby - S06E33-E34 - Supper Shopper Max & Ruby's Time Capsule.mp4]
[TEST] from [Max and Ruby_S06E18_Ruby's Ice Show_Max's Baby Birdie.mp4] to [Max & Ruby - S06E35-E36 - Ruby's Ice Show & Max's Baby Birdie.mp4]
[TEST] from [Max and Ruby_S06E19_Community Garden_Ruby's Backyard Camping Trip.mp4] to [Max & Ruby - S06E38 - Ruby's Backyard Camping Trip.mp4]
[TEST] from [Max and Ruby_S06E20_Lost and Found_Ruby's Book Report.mp4] to [Max & Ruby - S06E39 - Lost and Found.mp4]
[TEST] from [Max and Ruby_S06E21_Ms_ Bunty's Gift_Max to the Rescue.mp4] to [Max & Ruby - S06E41 - Ms. Bunty's Gift.mp4]
[TEST] from [Max and Ruby_S06E22_Message in a Bottle_Max on a Mission.mp4] to [Max & Ruby - S06E43 - Message in a Bottle.mp4]
[TEST] from [Max and Ruby_S06E23_Max the Champion_Max & Ruby's Restaurant.mp4] to [Max & Ruby - S06E45 - Max the Champion.mp4]
[TEST] from [Max and Ruby_S06E24_Ruby's Yard Sale_Camper Max.mp4] to [Max & Ruby - S06E47 - Ruby's Yard Sale.mp4]
[TEST] from [Max and Ruby_S06E25_Max's Sleepover_Slugger Max.mp4] to [Max & Ruby - S06E49-E50 - Max's Sleepover & Slugger Max.mp4]
[TEST] from [Max and Ruby_S06E26_Max and Ruby's Museum Adventure.mp4] to [Max & Ruby - S06E51 - Max and Ruby's Museum Adventure.mp4]
[TEST] from [Max and Ruby_S06E03_Show and Tell_The Whirligig.mp4] to [Max & Ruby - S06E05-E06 - Show and Tell & The Whirligig.mp4]
[TEST] from [Max and Ruby_S05E01_Ruby's Perfect Christmas Tree_Max's Christmas Present_Max and Ruby's Christmas Carol.mp4] to [Max & Ruby - S05E01-E03 - Ruby's Perfect Christmas Tree & Max's Christmas Presents & Max and Ruby's Christmas Carol.mp4]
[TEST] from [Max and Ruby_S05E02_Max Says Hello_Ruby's Spa Day_Ruby's Tai Chi.mp4] to [Max & Ruby - S05E04-E06 - Max Says Hello & Ruby's Spa Day & Ruby's Tai Chi.mp4]
[TEST] from [Max and Ruby_S05E03_Ruby Gets the Picture_Ruby's Birdie_Max Plays Catch.mp4] to [Max & Ruby - S05E07-E09 - Ruby Gets the Picture & Ruby's Birdie & Max Plays Catch.mp4]
[TEST] from [Max and Ruby_S05E04_Ruby's Bedtime Story_Ruby's Amazing Maze_Max's Nightlight.mp4] to [Max & Ruby - S05E10-E12 - Ruby's Bedtime Story & Ruby's Amazing Maze & Max's Nightlight.mp4]
[TEST] from [Max and Ruby_S05E05_Max's Sandwich_Max's Ice Cream Cone_Ruby's Art Stand.mp4] to [Max & Ruby - S05E13E14E15E23 - Max's Sandwich & Max's Ice Cream Cone & Ruby's Art Stand & Max Goes Fishing.mp4]
[TEST] from [Max and Ruby_S05E06_Picture Perfect _ Detective Ruby _ Superbunny Saves the Cake.mp4] to [Max & Ruby - S05E16-E18 - Picture Perfect & Detective Ruby & Superbunny Saves the Cake.mp4]
[TEST] from [Max and Ruby_S05E07_The Bunny Who Cried Lobster _ Max and The Three Bears _ Little Ruby Hen.mp4] to [Max & Ruby - S05E19-E21 - The Bunny Who Cried Lobster & Max and The Three Bears & Little Ruby Hen.mp4]
[TEST] from [Max and Ruby_S05E08_Ruby's Bird Walk_Max Goes Fishing_Ruby Tries Again.mp4] to [Max & Ruby - S05E22E24E34E35E36 - Ruby's Bird Walk & Ruby Tries Again & Engineer Max & Max's Toy Train & Max's Train Ride.mp4]
[TEST] from [Max and Ruby_S05E09_Max's Ride_Max on Guard_Ruby's Real Tea Party.mp4] to [Max & Ruby - S05E25-E27 - Max's Ride & Max on Guard & Ruby's Real Tea Party.mp4]
[TEST] from [Max and Ruby_S05E10_Ruby's Earth Day Party _ Ruby's Earth Day Checklist _ Max's Ducky Day.mp4] to [Max & Ruby - S05E28 - Ruby's Earth Day Party.mp4]
[TEST] from [Max and Ruby_S05E11_Grandma's Birthday_Max's Hand Print_Grandma's Surprise Dance.mp4] to [Max & Ruby - S05E33 - Grandma's Surprise Dance.mp4]
[TEST] from [Max and Ruby_S05E12_Engineer Max_Max's Toy Train_Max's Train Ride.mp4] to [Max & Ruby - S05E22E24E34E35E36 - Ruby's Bird Walk & Ruby Tries Again & Engineer Max & Max's Toy Train & Max's Train Ride.mp4]
[TEST] from [Max and Ruby_S05E13_Max's Kite_Max's Beach Ball_Ruby's Limbo.mp4] to [Max & Ruby - S05E38 - Max's Beach Ball.mp4]
[TEST] from [Max and Ruby_S05E14_Ruby's Diorama_Ruby's Croquet Match_Ruby's Huff and Puff.mp4] to [Max & Ruby - S05E40-E42 - Ruby's Diorama & Ruby's Huff and Puff & Ruby's Croquet Match.mp4]
[TEST] from [Max and Ruby_S05E15_Max's Pinata_Ruby's Movie Night_Doctor Ruby.mp4] to [Max & Ruby - S05E43E44E45E58E59E60 - Max's Pinata & Ruby's Movie Night & Doctor Ruby & Max's Red Rubber Elephant Mystery & Ruby's Toy Drive & Max and Ruby's Big Finish.mp4]
[TEST] from [Max and Ruby_S05E16_Ruby's Tower_Ruby's Juice Bar_Max's Tree Fort.mp4] to [Max & Ruby - S05E46E47E48E61E62E63 - Ruby's Tower & Ruby's Juice Bar & Max's Tree Fort & Ruby's Memory Quilt & Lights,Camera,Ruby! & Ruby's Ping-Pong Record.mp4]
[TEST] from [Max and Ruby_S05E17_Max and the Magnet_Ruby's Parrot Project_Max's Spaghetti.mp4] to [Max & Ruby - S05E49E50E51E64E66 - Max and the Magnet & Ruby's Parrot Project & Max's Spaghetti & Ruby & The Beast & Max's Trick or Treat.mp4]
[TEST] from [Max and Ruby_S05E18_Ruby's Autograph_A Toy for Baby Huffington_Max's Big Dig.mp4] to [Max & Ruby - S05E52E53E54E67E68E69 - Ruby's Autograph & A Toy for Baby Huffington & Max's Big Dig & Max and Ruby Give Thanks & Max Leaves & Ruby's Fall Pageant.mp4]
[TEST] from [Max and Ruby_S05E19_Max and Ruby's Train Trip_Go to Sleep Max_Conductor Max.mp4] to [Max & Ruby - S05E55-E57 - Max and Ruby's Train Trip & Go to Sleep Max & Conductor Max.mp4]
[TEST] from [Max and Ruby_S05E20_Max's Red Rubber Elephant Mystery_Ruby's Toy Drive_Max and Ruby's Big Finish.mp4] to [Max & Ruby - S05E43E44E45E58E59E60 - Max's Pinata & Ruby's Movie Night & Doctor Ruby & Max's Red Rubber Elephant Mystery & Ruby's Toy Drive & Max and Ruby's Big Finish.mp4]
[TEST] from [Max and Ruby_S05E21_Ruby's Memory Quilt_Lights,Camera,Ruby!_Ruby's Ping-Pong Record.mp4] to [Max & Ruby - S05E46E47E48E61E62E63 - Ruby's Tower & Ruby's Juice Bar & Max's Tree Fort & Ruby's Memory Quilt & Lights,Camera,Ruby! & Ruby's Ping-Pong Record.mp4]
[TEST] from [Max and Ruby_S05E22_Ruby & The Beast_Max & Ruby's Halloween House_Max's Trick or Treat.mp4] to [Max & Ruby - S05E65 - Max & Ruby's Halloween House.mp4]
[TEST] from [Max and Ruby_S05E23_Max and Ruby Give Thanks_Max Leaves_Ruby's Fall Pageant.mp4] to [Max & Ruby - S05E52E53E54E67E68E69 - Ruby's Autograph & A Toy for Baby Huffington & Max's Big Dig & Max and Ruby Give Thanks & Max Leaves & Ruby's Fall Pageant.mp4]
[TEST] from [Max and Ruby_S05E24_Ruby's Big Case_Ruby's Rhyme Time_Max's Library Card.mp4] to [Max & Ruby - S05E70-E72 - Ruby's Big Case & Ruby's Rhyme Time & Max's Library Card.mp4]
[TEST] from [Max and Ruby_S05E25_Max & Ruby's Groundhog Day_Ruby's First Robin of Spring_Grandma's Geraniums.mp4] to [Max & Ruby - S05E73-E75 - Max & Ruby's Groundhog Day & Ruby's First Robin of Spring & Grandma's Geraniums.mp4]
[TEST] from [Max and Ruby_S05E26_Space Bunny_Max's Sprinkler_Max's Pogo Stick.mp4] to [Max & Ruby - S05E76-E78 - Space Bunny & Max's Sprinkler & Max's Pogo Stick.mp4]
[TEST] from [Max and Ruby_S03E01_Ruby's Loose Tooth_Ruby Scores!_Ruby's Sandcastle.mp4] to [Max & Ruby - S03E01 - Ruby's Loose Tooth.mp4]
[TEST] from [Max and Ruby_S03E02_Max & Ruby's Christmas Tree_Grandma's Present_Max & Ruby's Snow Plow.mp4] to [Max & Ruby - S03E04 - Max & Ruby's Christmas Tree.mp4]
[TEST] from [Max and Ruby_S03E03_Ruby's Hippity Hop Dance_Ruby's Bird Bath_Super Max Saves the World.mp4] to [Max & Ruby - S03E07 - Ruby's Hippity Hop Dance.mp4]
[TEST] from [Max and Ruby_S03E04_Ruby's Easter Bonnet_Max's Easter Parade_Max & the Easter Bunny.mp4] to [Max & Ruby - S03E10-E12 - Ruby's Easter Bonnet & Max's Easter Parade & Max & the Easter Bunny.mp4]
[TEST] from [Max and Ruby_S03E05_Little Red Ruby Riding Hood_Max & the Beanstalk_The Froggy Prince.mp4] to [Max & Ruby - S03E15 - The Froggy Prince (Max and Ruby's Bunny Tales).mp4]
[TEST] from [Max and Ruby_S03E06_Ruby Delivers_Getting Crabby at the Beach_Max Babysits.mp4] to [Max & Ruby - S03E17 - Getting Crabby at the Beach.mp4]
[TEST] from [Max and Ruby_S03E07_Max's Fire Flies_Max & Ruby's Fashion Show_Ruby's Sing-a-long.mp4] to [Max & Ruby - S03E20 - Max & Ruby's Fashion Show.mp4]
[TEST] from [Max and Ruby_S03E08_Ruby's Safari_Max's Mudbath_Max's Lost Lizard.mp4] to [Max & Ruby - S03E23 - Max's Mudbath.mp4]
[TEST] from [Max and Ruby_S03E09_Max's Snow Day_Max's Snow Bunny_Max's Mix Up.mp4] to [Max & Ruby - S03E25-E27 - Max's Snow Day & Max's Snow Bunny & Max's Mix Up.mp4]
[TEST] from [Max and Ruby_S03E10_Surprise Ruby_Ruby's Party_Max's Present.mp4] to [Max & Ruby - S03E28 - Surprise Ruby.mp4]
[TEST] from [Max and Ruby_S03E11_Ruby's Puppet Show_Sugar Plum Max_Max's Ant Farm.mp4] to [Max & Ruby - S03E33 - Max's Ant Farm.mp4]
[TEST] from [Max and Ruby_S03E12_Max's Jack-o-Lantern_Max & Ruby's Perfect Pumpkin_Max's Big Boo!.mp4] to [Max & Ruby - S03E35 - Max's Jack-o-Lantern.mp4]
[TEST] from [Max and Ruby_S03E13_Grandma's Berry Patch_Ruby's Bunny Scout Parade_Ruby's Detective Agency.mp4] to [Max & Ruby - S03E37 - Grandma's Berry Patch.mp4]
[TEST] from [Max and Ruby_S03E14_Max's Rocket Racer_Max's Candy Apple_Max's Blast Off!.mp4] to [Max & Ruby - S03E41 - Max's Candy Apple.mp4]
[TEST] from [Max and Ruby_S01E01_Ruby's Piano Practice _ Max's Bath_Max's Bedtime.mp4] to [Max & Ruby - S01E01-E03 - Ruby's Piano Practice & Max's Bath & Max's Bedtime.mp4]
[TEST] from [Max and Ruby_S01E02_Hide and Seek_Max's Breakfast_Louise's Secret.mp4] to [Max & Ruby - S01E04 - Hide and Seek.mp4]
[TEST] from [Max and Ruby_S01E03_Max Misses the Bus_Max's Wormcake_Max's Rainy Day.mp4] to [Max & Ruby - S01E09 - Max's Rainy Day.mp4]
[TEST] from [Max and Ruby_S01E04_Ruby's Clubhouse _ Camp Out_Max's Picnic.mp4] to [Max & Ruby - S01E12 - Max's Picnic.mp4]
[TEST] from [Max and Ruby_S01E05_Max's Halloween_Ruby's Leaf Collection_The Blue Tarantula.mp4] to [Max & Ruby - S01E15 - The Blue Tarantula.mp4]
[TEST] from [Max and Ruby_S01E06_Ruby's Merit Badge_Max's Apple_Quiet, Max!.mp4] to [Max & Ruby - S01E16 - Ruby's Merit Badge.mp4]
[TEST] from [Max and Ruby_S01E07_Max Cleans Up_Max's Cuckoo Clock_Ruby's Jewelry Box.mp4] to [Max & Ruby - S01E20 - Max's Cuckoo Clock.mp4]
[TEST] from [Max and Ruby_S01E08_Bunny Cakes_Bunny Party_Bunny Money.mp4] to [Max & Ruby - S01E22 - Bunny Cakes.mp4]
[TEST] from [Max and Ruby_S01E09_Max's Birthday_Max's New Suit_Good Night Max.mp4] to [Max & Ruby - S01E25 - Max's Birthday.mp4]
[TEST] from [Max and Ruby_S01E10_Max's Christmas_Ruby's Snow Queen_Max's Rocket Run.mp4] to [Max & Ruby - S01E28 - Max's Christmas.mp4]
[TEST] from [Max and Ruby_S01E11_Max's Chocolate Chicken _ Ruby's Beauty Shop_Max Drives Away.mp4] to [Max & Ruby - S01E31 - Max's Chocolate Chicken.mp4]
[TEST] from [Max and Ruby_S01E12_Ruby's Lemonade Stand_Ruby's Rummage Sale_Ruby's Magic Act.mp4] to [Max & Ruby - S01E34 - Ruby's Lemonade Stand.mp4]
[TEST] from [Max and Ruby_S01E13_Max's Valentine_Ruby Flies a Kite_Super Max.mp4] to [Max & Ruby - S01E37-E39 - Max's Valentine & Ruby Flies a Kite & Super Max.mp4]
[TEST] from [Max and Ruby_S01E14_Max's Work of Art_Max Meets Morris_Ruby's Scavenger Hunt.mp4] to [Max & Ruby - S02E01-E03 - Max's Work of Art & Max Meets Morris & Ruby's Scavenger Hunt.mp4]
[TEST] from [Max and Ruby_S01E15_Ruby's Hiccups_The Big Picture_Ruby's Stage Show.mp4] to [Max & Ruby - S02E06 - Ruby's Stage Show.mp4]
[TEST] from [Max and Ruby_S01E16_Max's Froggy Friend_Max's Music_Max Gets Wet.mp4] to [Max & Ruby - S02E07 - Max's Froggy Friend.mp4]
[TEST] from [Max and Ruby_S01E17_Ruby's Tea Party_Max Is It_Ruby's Science Project.mp4] to [Max & Ruby - S02E12 - Ruby's Science Project.mp4]
[TEST] from [Max and Ruby_S01E18_Ruby's Panda Prize_Ruby's Rollerskates_Ghost Bunny.mp4] to [Max & Ruby - S02E13 - Ruby's Panda Prize.mp4]
[TEST] from [Max and Ruby_S01E19_Max's Bug Salad_Ruby's Beach Party_Super Max To The Rescue.mp4] to [Max & Ruby - S02E18 - Super Max to the Rescue.mp4]
[TEST] from [Max and Ruby_S01E20_Max's Dragon Shirt_Max's Rabbit Racer_Roger's Choice.mp4] to [Max & Ruby - S02E20 - Max's Rabbit Racer.mp4]
[TEST] from [Max and Ruby_S01E21_Ruby's Pajama Party_Baby Max_Bunny Scout Brownies.mp4] to [Max & Ruby - S02E24 - Bunny Scout Brownies.mp4]
[TEST] from [Max and Ruby_S01E22_Max's Shadow_Max Remembers_Ruby's Candy Store.mp4] to [Max & Ruby - S02E25 - Max's Shadow.mp4]
[TEST] from [Max and Ruby_S01E23_Max's Check Up_Max's Prize_Space Max.mp4] to [Max & Ruby - S02E29 - Max's Prize.mp4]
[TEST] from [Max and Ruby_S01E24_Ruby's Figure Eight_Ruby's Surprise Party_Ruby's Tent.mp4] to [Max & Ruby - S02E32 - Ruby's Surprise Party.mp4]
[TEST] from [Max and Ruby_S01E25_Ruby Writes a Story_Max's Dominoes_Grandma's Attic.mp4] to [Max & Ruby - S02E36 - Grandma's Attic.mp4]
[TEST] from [Max and Ruby_S01E26_Max's Thanksgiving_Max's Pretend Friend_Fireman Max.mp4] to [Max & Ruby - S02E37-E39 - Max's Thanksgiving & Max's Pretend Friend & Fireman Max.mp4]
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by rednoah »

A quick glance on the first ~5 and last ~5 matches show no issues. Can you point out at least on of the mismatches so that I don't have to sift through the log?




EDIT:

I found an "incomplete" match:

Code: Select all

[TEST] from [Max and Ruby_S03E07_Max's Fire Flies_Max & Ruby's Fashion Show_Ruby's Sing-a-long.mp4] to [Max & Ruby - S03E20 - Max & Ruby's Fashion Show.mp4]
The issues above are likely caused by missing / incomplete / incorrect episode information, most notably missing airdates, but I see a number of peculiarities at a glance:

Console Output: Select all

$ filebot -list --db TheTVDB --q "Max & Ruby" --format "{d} | {episode}"
...
 | Max & Ruby - 3x19 - Max's Fire Flies
 | Max & Ruby - 3x20 - Max & Ruby's Fashion Show
 | Max & Ruby - 3x21 - Ruby’s Sing-a-long
...
2016-09-18 | Max & Ruby - 6x02 - Grandma's Strorytime Sleepover
...
 | Max & Ruby - 6x25 - You Can\'t Catch Me
 | Max & Ruby - 6x26 - Max\'s Bubbles
 | Max & Ruby - 6x27 - Ruby\'s Chocolate Chip Chaos
...

:idea: I did run additional tests with --db TheMovieDB::TV and the algorithm fundamentally works as long as the database has complete episode information with correct airdates and episode titles:

Console Output: Select all

$ filebot -list --db TheMovieDB::TV --q "Max & Ruby" --format "{d} | {episode}"
...
2007-04-11 | Max and Ruby - 3x10 - Max's Fire Flies
2007-04-11 | Max and Ruby - 3x11 - Max & Ruby's Fashion Show
2007-04-11 | Max and Ruby - 3x12 - Ruby’s Sing-a-long
...


:!: At this point, there's probably not much we can do. You could try to come up with your own "match by multiple titles without airdate grouping" but the reason we do "airdate grouping" in the first place is because "match by multiple titles" is really really really difficult when you don't know where each title begins and ends, titles don't match exactly due to spelling mistakes or spelling variations, etc, it's an entirely new can of worms.
:idea: Please read the FAQ and How to Request Help.
Larsenv
Posts: 8
Joined: 18 Sep 2023, 17:00

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by Larsenv »

This works ok for some shows, but is it possible to change a span of dates where it can search matches?
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Rename episodes with multiple segments if there aren't airdates which match

Post by rednoah »

Larsenv wrote: 16 Oct 2023, 19:55 This works ok for some shows, but is it possible to change a span of dates where it can search matches?
Yes, if you can write the code. Unfortunately, I don't currently have time to write custom code for you.
:idea: Please read the FAQ and How to Request Help.
Post Reply