You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have mentioned this issue on the Discord, but I wanted to raise it as an issue here as well for the future.
There was a problem around midnight where certain shows would not correctly run once midnight was reached. For instance, if a show started at 11:50PM and should run until 1:30AM, after midnight the show would seemingly stop.
The cause for this ended up being the definition of closest media and "now". Here is basically how the script works:
Checks for the absolute closest media compared to "now" (whatever time it currently is)
If that media is behind "now", we must have found the current thing playing; play that.
If it is in front of "now", the previous element must be the current thing playing; play that.
Determine media offset by doing ("now") - (start time of previous object)
This usually works well, but in certain cases has issues. If the previous element is determined to start at 11:50PM, and "now" is 1:00AM, the difference of "now" and the start time of the previous object is instead basically a whole day since that is the absolute distance between those two times.
To fix this, I have a modified script for PseudoChannel.py that has been holding up quite well. This version senses if a day has passed, and correctly identifies the time that has elapsed for the element that crosses over the day skip. Can others let me know how this is working?
I have also put this script into my fork of the project. File is here: PseudoChannel.zip
The text was updated successfully, but these errors were encountered:
I have mentioned this issue on the Discord, but I wanted to raise it as an issue here as well for the future.
There was a problem around midnight where certain shows would not correctly run once midnight was reached. For instance, if a show started at 11:50PM and should run until 1:30AM, after midnight the show would seemingly stop.
The cause for this ended up being the definition of closest media and "now". Here is basically how the script works:
This usually works well, but in certain cases has issues. If the previous element is determined to start at 11:50PM, and "now" is 1:00AM, the difference of "now" and the start time of the previous object is instead basically a whole day since that is the absolute distance between those two times.
To fix this, I have a modified script for PseudoChannel.py that has been holding up quite well. This version senses if a day has passed, and correctly identifies the time that has elapsed for the element that crosses over the day skip. Can others let me know how this is working?
I have also put this script into my fork of the project. File is here: PseudoChannel.zip
The text was updated successfully, but these errors were encountered: