[CLI] S00E00 instead of 00x00
[CLI] S00E00 instead of 00x00
Hi, been pointed in this direction for some help renaming files via CLI. I've normally used the GUI on iFlicks for Mac but recently made some changes to my media streaming setup.
I'm running Filebot via CLI I want my file to look like this:- Name of Show S00E00 Name of episode
this is what I've tried so far
filebot -rename "/xxx/xxx/media/TV Shows/xxxx/Season 5" --db TheTVDB -non-strict however doing that gives an output of Name of show - 00x00 - Name of episode
Not sure of the exact format to use to achieve my result. I want the files to remain in place and once they've been renamed i'll be moving them over to Google Drive.
I'm running Filebot via CLI I want my file to look like this:- Name of Show S00E00 Name of episode
this is what I've tried so far
filebot -rename "/xxx/xxx/media/TV Shows/xxxx/Season 5" --db TheTVDB -non-strict however doing that gives an output of Name of show - 00x00 - Name of episode
Not sure of the exact format to use to achieve my result. I want the files to remain in place and once they've been renamed i'll be moving them over to Google Drive.
Re: CLI in place renaming help
You'll want to use a custom format if you're not happy with the default:
https://www.filebot.net/naming.html
e.g.
viewtopic.php?t=4116
https://www.filebot.net/naming.html
e.g.
Code: Select all
--format {plex.name}
Re: CLI in place renaming help
That worked an absolute treat. Many thanksrednoah wrote: ↑21 Oct 2019, 15:51 You'll want to use a custom format if you're not happy with the default:
https://www.filebot.net/naming.html
e.g.viewtopic.php?t=4116Code: Select all
--format {plex.name}

Re: [CLI] S00E00 instead of 00x00
How do I make sure something is being tagged correctly? There's a file that I've downloaded for a TV show that looks from TVDB records that there's a couple of different entries. The CLI command seems to have picked the wrong one though.
Re: [CLI] S00E00 instead of 00x00
So the file I've downloaded is in the format
/home25/{user]/media/TV%20Shows/Watchmen/Season%201/Watchmen.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264.1-KiNGS-Obfuscated.mkv
When I run the command filebot -rename /home25/[user]/media/TV\ Shows/Watchmen\ 2019/Season\ 1/ --db TheTVDB --format {plex.name}
I get this output Watchmen - Motion Comic - S01E01 - Chapter I - At Midnight, All the Agents.mkv
/home25/{user]/media/TV%20Shows/Watchmen/Season%201/Watchmen.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264.1-KiNGS-Obfuscated.mkv
When I run the command filebot -rename /home25/[user]/media/TV\ Shows/Watchmen\ 2019/Season\ 1/ --db TheTVDB --format {plex.name}
I get this output Watchmen - Motion Comic - S01E01 - Chapter I - At Midnight, All the Agents.mkv
Re: [CLI] S00E00 instead of 00x00
1.
If your priority is avoiding mismatches, then you can use strict mode. In this case, in strict mode, a failure would be the expected and desired result, since there's many shows with the same name which can't be differentiated reliably:
2.
By enabling -non-strict mode, I get Watchmen (2017) as best match, which presumably is the correct match, at least looks like it could be to me:
3.
Let's assume we know that this is Watchmen and not Watchmen (2017) then we can use the --q option the specify that specifically and unambiguously:
If your priority is avoiding mismatches, then you can use strict mode. In this case, in strict mode, a failure would be the expected and desired result, since there's many shows with the same name which can't be differentiated reliably:
Code: Select all
filebot -rename *.mkv --action TEST
Rename episodes using [TheTVDB] with [Airdate Order]
Auto-detected query: [Watchmen]
Multiple options: Advanced auto-selection requires -non-strict matching: [Watchmen, Watchmen: Motion Comic, Watchmen (2017)]
Failure (×_×)⌒☆
2.
By enabling -non-strict mode, I get Watchmen (2017) as best match, which presumably is the correct match, at least looks like it could be to me:
Code: Select all
filebot -rename *.mkv -non-strict --action TEST
Rename episodes using [TheTVDB] with [Airdate Order]
Auto-detected query: [Watchmen]
Fetching episode data for [Watchmen]
Fetching episode data for [Watchmen: Motion Comic]
Fetching episode data for [Watchmen (2017)]
Fetching episode data for [Pitchmen]
[TEST] from [Watchmen.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264.1-KiNGS-Obfuscated.mkv] to [Watchmen (2017) - 1x01.mkv]
Processed 1 files
3.
Let's assume we know that this is Watchmen and not Watchmen (2017) then we can use the --q option the specify that specifically and unambiguously:
Code: Select all
filebot -rename *.mkv --q "Watchmen" --action TEST
Rename episodes using [TheTVDB] with [Airdate Order]
Fetching episode data for [Watchmen]
[TEST] from [Watchmen.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264.1-KiNGS-Obfuscated.mkv] to [Watchmen - 1x01 - It's Summer and We're Running Out of Ice.mkv]
Processed 1 files
Re: [CLI] S00E00 instead of 00x00
Thanks for coming back to me. I really do appreciate it 
The first listing for Watchmen is the correct one. On TVDB it's the first result with ID 360733 so I guess it's how I force Filebot to now use that

The first listing for Watchmen is the correct one. On TVDB it's the first result with ID 360733 so I guess it's how I force Filebot to now use that
Re: [CLI] S00E00 instead of 00x00
1.
Yes, you can use --q 360733 to force the specific ID.
2.
--filter option may be preferable in more automated use cases, as it allows you to add generic rules that better model your specific requirements (e.g. if you only process files that are released in the last 30 days, then we can search for matches within that time frame, which makes finding the right one significantly easier)
viewtopic.php?t=2127
Yes, you can use --q 360733 to force the specific ID.
2.
--filter option may be preferable in more automated use cases, as it allows you to add generic rules that better model your specific requirements (e.g. if you only process files that are released in the last 30 days, then we can search for matches within that time frame, which makes finding the right one significantly easier)
Code: Select all
filebot -rename *.mkv --filter "age < 30" -non-strict --action TEST
Rename episodes using [TheTVDB] with [Airdate Order]
Auto-detected query: [Watchmen]
Fetching episode data for [Watchmen]
Fetching episode data for [Watchmen: Motion Comic]
Fetching episode data for [Watchmen (2017)]
Fetching episode data for [Pitchmen]
Apply filter [age < 30] on [84] items
Include [Watchmen - 1x01 - It's Summer and We're Running Out of Ice]
[TEST] from [Watchmen.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264.1-KiNGS-Obfuscated.mkv] to [Watchmen - 1x01 - It's Summer and We're Running Out of Ice.mkv]
Processed 1 files

Re: [CLI] S00E00 instead of 00x00
ok, interesting. i've just tried option 1 you listed as a test and this is what I got
Code: Select all
filebot -rename /home25/[user]/media/TV\ Shows/Watchmen/Season\ 1/ --db TheTVDB --q 360733 --format {plex.name}
Rename episodes using [TheTVDB]
Failed to fetch episode data: [360733]
Failed to match files to episode data
Re: [CLI] S00E00 instead of 00x00
I see. IDK. Try the latest beta, there were changes to manual lookup a few weeks ago:
https://get.filebot.net/filebot/BETA/
https://get.filebot.net/filebot/BETA/
Re: [CLI] S00E00 instead of 00x00
The seedbox that I'm running won't update to the latest version frustratingly