How about a double fallback?
pseudo-code:
if (not_undefined(airsbefore_season)) {
return airsbefore_season;
}
else if (not_undefined(airsafter_season)) {
return airsafter_season;
}
else {
return 0;
}
I can't image that both values are set simultaneously for many episodes and even in that ...
Search found 2 matches
- 11 Jan 2015, 13:41
- Forum: Episode / Movie Naming Scheme
- Topic: Special Epsiode Seasons in thetvdb
- Replies: 3
- Views: 4732
- 08 Jan 2015, 16:20
- Forum: Episode / Movie Naming Scheme
- Topic: Special Epsiode Seasons in thetvdb
- Replies: 3
- Views: 4732
Special Epsiode Seasons in thetvdb
Hi,
I am having a problem with Special Episodes and the thetvdb as they always seem to be have the {s} attribute set to 0, despite having the field "Airs after Season" on the thetvdb set to a correct value.
E.g.
A file named "Doctor Who (2005) Special 142" will resolve to
Season 00 /Doctor Who ...
I am having a problem with Special Episodes and the thetvdb as they always seem to be have the {s} attribute set to 0, despite having the field "Airs after Season" on the thetvdb set to a correct value.
E.g.
A file named "Doctor Who (2005) Special 142" will resolve to
Season 00 /Doctor Who ...