filename.ts.meta renames to filename.meta

Support for Windows users
Post Reply
User avatar
onkeljoerg
Posts: 4
Joined: 04 Jul 2022, 14:41

filename.ts.meta renames to filename.meta

Post by onkeljoerg »

Hello there.
I'm very new to filebot but it helped me a lot.
I have a little problem with renaming files.
My recordings (Enigma 2) contain following files:

Code: Select all

file.ts (audio and video data)
file.eit (epg data)
file.log (log file from TS-Doctor, my cutting program)
file.txt (extracted epg data, plain text)
file_problem.txt (if any problems found during the cutting)

and
file.ts.meta (additional data for file.eit)
file.ts.ap 
file.ts.sc (both index files for Enigma2 playback)

sometimes 
file.deu.srt (subtitles in german)
 
 
now my problem:
When I rename the files with this scheme

{n.upper()} ({y}) {" {IMDB-$imdbid}"} - {vf}/{n.lower()}

the filebot renames the "file.ts.ap to file.ap, the file.ts.meta to file.meta and so on.
And I have to rename them manually.

My question: what can I do to keep the naming?

thank you for your help
Joerg
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: filename.ts.meta renames to filename.meta

Post by rednoah »

Yes, you just have to customise your format to preserve that part as well, since FileBot will only preserve the file extension:

Code: Select all

{ fn.match(/[.]ts/) }
:arrow: See Companion Files (Type 1) for details.



:idea: Alternatively, you can generate the .ts bit for some files but not others using if-then-else conditions:

Code: Select all

{ ext ==~ /meta|ap|sc/ ? '.ts' : null }
:idea: Please read the FAQ and How to Request Help.
User avatar
onkeljoerg
Posts: 4
Joined: 04 Jul 2022, 14:41

Re: filename.ts.meta renames to filename.meta

Post by onkeljoerg »

Thank you for your quick response.
Due to I'm very new to this, and I'm an old man, I have my problems to find in it .
Sorry.
Where do I have to put in this { fn.match(/[.]ts/) }
into my
{n.upper()} ({y}) {" {IMDB-$imdbid}"} - {vf}/{n.lower()}?

sorry for this dumb question, I'm very new to this and I have no experience in programming and this stuff

Thank you
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: filename.ts.meta renames to filename.meta

Post by rednoah »

1. Load your files and match them up against your preferred database
2. Double-Click on the New Names on the right-handside that corresponds to your file.ts.meta file on the left-hand side and then select Edit Format.
3. Play with it. Try a bit of trial and error and see if you can figure it out. If it takes you more than 5 minutes, then just copy & paste here how far you got, and we'll help you figure out the rest.




:idea: You'll always want to prototype your custom format in the FileBot Desktop application / Format Editor first:
https://youtu.be/cihWAvDW7MM?t=30

Image


e.g.

Code: Select all

{n.upper()} ({y}) {" {IMDB-$imdbid}"} - {vf}/{n.lower()}{ fn.match(/[.]ts/) }
:idea: Please read the FAQ and How to Request Help.
User avatar
onkeljoerg
Posts: 4
Joined: 04 Jul 2022, 14:41

Re: filename.ts.meta renames to filename.meta

Post by onkeljoerg »

Ok, I didn't know about the double click thing on te result side.
This works fine for me.
Thank you very much
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: filename.ts.meta renames to filename.meta

Post by rednoah »

The key is testing your custom format with a real file / episode pair so that you can test with the specific corner case at hand.
:idea: Please read the FAQ and How to Request Help.
Post Reply