Closed ilike2burnthing closed 5 months ago
Ta, working.
I realise I'm a bit late thinking of this now, but is this able to account for crossing months, e.g. -1 on the 1st Feb would be the 31st Jan and not the 0th Feb, and +1 on the 31st Jan would be the 1st Feb and not the 32nd Jan?
Should do. I'm not manipulating the daynumber directly, but added a moment.js call to the existing moment chain, to either subtract or add days to the broadcast date. https://github.com/SchizoDuckie/DuckieTV/blob/fc5ac68d17a5a075eaed00b5af939d363478a0ab/js/services/SceneNameResolver.js#L54-L81
Should probably support
+
or-
, and be a bit more distinct than the above example, e.g.YYYY MM DD[-1]
. Can't see the year or month ever needing modified like that.