Scrape only episode numbers with multiple Episodes per File
Posted: 14 Jan 2017, 16:01
Hello,
i want to add missing episode numbers for some series. For multiple episodes (Separator ' + '), the absolute episode number of the first episode is used if the number is consecutive, otherwise, each episode number is separated by commas.
That means, I try to have the following output format (german):
Bibi und Tina\Bibi und Tina ¦ 27, 31 ¦ Spuk auf der Ferieninsel + Amadeus verliebt sich.mp4
Bibi und Tina HD\Bibi und Tina HD ¦ 37 ¦ Aufregung auf dem Kupferberg + Das Mittelalterfest.mp4
The input format (german) is something like the following..
Benjamin; bärenstark¡\Benjamin; bärenstark¡ ¦ ¦ 2016.04.23_Wo ist Holly¿ + Ein Stern am Theaterhimmel + Rettet Edgar.mp4
My Little Pony\My Little Pony ¦ 133 ¦ 06.11.2016_Scherzkekse.mp4
My Little Pony - Freundschaft ist Magie\My Little Pony - Freundschaft ist Magie ¦ S04E25 ¦ 2016.05.07_Twilights Königreich - Teil 1.mp4
Cosmic Quantum Ray\Cosmic Quantum Ray ¦ - ¦ Das Buckingham-Puzzle + Glitschikus.mp4
Cosmic Quantum Ray HD\Cosmic Quantum Ray HD ¦ 01 ¦ Das Buckingham-Puzzle.mp4
I know very inconsistent, but that is exactly what I want to change. Even the number of episodes per file is variable within a series, because I sometimes recorded a series multiple times. - only the series name is always fixed per series and in all files equal.

Currently, I'm using {n} ¦ {absolute} ¦ {t} in FileBot
I also want to keep the characters ¡¿; and the HD indicator. short: Only the text between the separators ¦ should be changed except that the date should be removed (but that can cause filename collisions). Now I look for a week for a possibility. I have the problem that several episodes are not recognized and {absolute} often does not provide any values. I have tried it with different regex queries. For example ((?<=\ |^)[^\+]+(?!\+)) separates several episode names in the output format.
I'm not really wiser from the FAQs and forum posts. Slowly I despair a little. I hope someone can help me.
Request Help Infos
OS: Windows 10 Education (64bit)
Java: JDK 8 U 111 (64bit)
FileBot-Version: GUI 4.7.7 (Windows Installer from Chip.de)
i want to add missing episode numbers for some series. For multiple episodes (Separator ' + '), the absolute episode number of the first episode is used if the number is consecutive, otherwise, each episode number is separated by commas.
That means, I try to have the following output format (german):
Bibi und Tina\Bibi und Tina ¦ 27, 31 ¦ Spuk auf der Ferieninsel + Amadeus verliebt sich.mp4
Bibi und Tina HD\Bibi und Tina HD ¦ 37 ¦ Aufregung auf dem Kupferberg + Das Mittelalterfest.mp4
The input format (german) is something like the following..
Benjamin; bärenstark¡\Benjamin; bärenstark¡ ¦ ¦ 2016.04.23_Wo ist Holly¿ + Ein Stern am Theaterhimmel + Rettet Edgar.mp4
My Little Pony\My Little Pony ¦ 133 ¦ 06.11.2016_Scherzkekse.mp4
My Little Pony - Freundschaft ist Magie\My Little Pony - Freundschaft ist Magie ¦ S04E25 ¦ 2016.05.07_Twilights Königreich - Teil 1.mp4
Cosmic Quantum Ray\Cosmic Quantum Ray ¦ - ¦ Das Buckingham-Puzzle + Glitschikus.mp4
Cosmic Quantum Ray HD\Cosmic Quantum Ray HD ¦ 01 ¦ Das Buckingham-Puzzle.mp4
I know very inconsistent, but that is exactly what I want to change. Even the number of episodes per file is variable within a series, because I sometimes recorded a series multiple times. - only the series name is always fixed per series and in all files equal.

Currently, I'm using {n} ¦ {absolute} ¦ {t} in FileBot
I also want to keep the characters ¡¿; and the HD indicator. short: Only the text between the separators ¦ should be changed except that the date should be removed (but that can cause filename collisions). Now I look for a week for a possibility. I have the problem that several episodes are not recognized and {absolute} often does not provide any values. I have tried it with different regex queries. For example ((?<=\ |^)[^\+]+(?!\+)) separates several episode names in the output format.
I'm not really wiser from the FAQs and forum posts. Slowly I despair a little. I hope someone can help me.
Request Help Infos
OS: Windows 10 Education (64bit)
Java: JDK 8 U 111 (64bit)
FileBot-Version: GUI 4.7.7 (Windows Installer from Chip.de)
Code: Select all
FileBot 4.7.7 (r4678)
JNA Native: 4.0.1
MediaInfo: 0.7.88
7-Zip-JBinding: 9.20
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2017-01-05 (r470)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_111
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 1 GB Max Memory / 184 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
Data: C:\Users\Sonic\AppData\Roaming\FileBot