Series ID

All about user-defined episode / movie / file name format expressions
Post Reply
Pab
Posts: 11
Joined: 18 Oct 2015, 21:45

Series ID

Post by Pab »

I'm looking for some help using the series expression. I don't seem to be able to use any functions on this. Is this an object rather than a string and hence the standard methods are unavailable?

This is what I have so far:

Code: Select all

{n.replaceAll(/:/,/-/)} ({certification} {y}) [{series}]/Season {s.pad(2)}/{n.replaceAll(/:/,/-/)} - {s00e00} - {t.replaceAll(/:/,/-/)} - {airdate.format('yyyy.MM.dd')} - [{vc} {vf} {ac} {af}]
which changes "Firefly s01e01" into:

Firefly (TV-14 2002) [TheTVDB::78874]/Season 01/Firefly - S01E01 - Serenity - 2002.12.20 - [HEVC 1080p AAC 6ch]

however I would quite like to tidy up the series section to just display the id (78874) and so have

Firefly (TV-14 2002) [78874]/Season 01/Firefly - S01E01 - Serenity - 2002.12.20 - [HEVC 1080p AAC 6ch]

Is this possible?
Many thanks
Pab
Posts: 11
Joined: 18 Oct 2015, 21:45

Re: The series expression

Post by Pab »

I found the toString() expression and I think I can get it from there.

series.toString()
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Series ID

Post by rednoah »

Please use the id property of the SeriesInfo object:

Code: Select all

{series.id}
:idea: Please read the FAQ and How to Request Help.
Pab
Posts: 11
Joined: 18 Oct 2015, 21:45

Re: Series ID

Post by Pab »

Ah that's great! I didn't notice that property. Thank you!

I also have another question. Thetvdb didn't have an episode for a BBC documentary, so I updated it. I was wondering how long it takes to go through to the database or if there is some way I can force an update of the local database. Or is this just thetvdb's api taking a few days to push it through? Thank you
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Series ID

Post by rednoah »

No more than 48 hours.
:idea: Please read the FAQ and How to Request Help.
Pab
Posts: 11
Joined: 18 Oct 2015, 21:45

Re: Series ID

Post by Pab »

Thank you, it's all updated
:)
Post Reply