Receiving TV Data

All about user-defined episode / movie / file name format expressions
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

Image
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Yes! It's "e <= 10" instead of "e<=10".
Thanks!
I guess "not equal" is "!=". Right?
It's ok! I tested "!=" and it worked.

And for strings it's like this t == /Titel/ . Right?
That's how I tested it positive. :)
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

I see! Thanks!
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Hi,

can I filter the data by episode release date?

Kind regards,

Sheldon
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

Sure, same as in the Format Dialog. You have {startdate} and {airdate} and maybe some other stuff I can't recall now.

e.g.

Code: Select all

startdate.year >= 2000
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Great thanks! :)
Do you have a list or collection of all parameters that can be used for filtering.
Maybe with samples, too!
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

It's the same as in the Format Expression. So you have the Naming docs online lots of examples built into the Format Editor(click the (x)= button).
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Ah! If I click the (x)-Button and one of the links that are shown in the list nothing happens.
I would expect an url to be opened in my Firefox.
Is there something missing in my enviroment and/or the cmd?
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

In the Format Editor you can easily prototype any expression:
Image

In the Bindings dialog you can easily check what bindings are available and what values they may have:
Image

It's all self-documenting really, but if you want a link you can have one:
http://www.filebot.net/naming.html#bindings

(Linked all over the website AND from within the application if you click Syntax)
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Thanks!
I just wanted to mention that I can't access any link from the "Rename Options" dialog.
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

What links? Or rather, what do you think should be a link? If you click one of the preset formats it'll switch to that format.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

I mean this:
Rename Options.jpg
Probably a misunderstanding from my side.
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

Yes, that's Rename Options. Specifically what to do with Extensions and what Rename Action do use. If you don't know what a "hardlink" or a "symlink" is you probably won't need any of those. If you click it, you'll set the given option, do don't click it. :D
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Currently I use

--filter "airdate.year == 2014 && airdate.month == 6 && airdate.day == 1"

to filter the airdate 2014-06-01.

This is a bit inconvinient. Is there another way like airdate."something" == 2014-06-01 ?
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

Try something like this:

Code: Select all

{airdate.toString() == '2001-09-30'}
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Yep! It works! Thanks!
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Is there something simular for airdate >,>=,<,<= ?
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

e.g.

Code: Select all

{airdate.timeStamp > 14e11}
@see
http://www.unixtimestamp.com/index.php

timeStamp => airdate in milliseconds
today's date in milliseconds => 14015808001000

PS: Newer revisions also support {age} which is the age (today - airdate) in days.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Thanks!

But it seems not to work properly.

I tried airdate.timestamp <= 1401613113 but received nothing what I should.
Is it Unix specific or do you use GregorianCalandar?

I work on Windows.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

I tested it again. airdate.timestamp doesn't work. Wrong function?
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

all code is case-sensitive
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

Ok! It works! Thanks! :)
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: Receiving TV Data

Post by Sheldon »

I couldn't find a binding for the audio language.
Is there something like:

--format "{n} - {s.pad(2)} - {e.pad(2)} - {t} - {lang} - {airdate}"?
User avatar
rednoah
The Source
Posts: 23053
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Receiving TV Data

Post by rednoah »

Image

Obviously that's based on metadata embedded in the file, which may or may not be available.
:idea: Please read the FAQ and How to Request Help.
Post Reply