Page 1 of 1

Series ID

Posted: 18 Oct 2015, 22:01
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

Re: The series expression

Posted: 18 Oct 2015, 22:12
by Pab
I found the toString() expression and I think I can get it from there.

series.toString()

Re: Series ID

Posted: 19 Oct 2015, 07:01
by rednoah
Please use the id property of the SeriesInfo object:

Code: Select all

{series.id}

Re: Series ID

Posted: 27 Oct 2015, 21:01
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

Re: Series ID

Posted: 28 Oct 2015, 05:18
by rednoah
No more than 48 hours.

Re: Series ID

Posted: 30 Oct 2015, 22:50
by Pab
Thank you, it's all updated
:)