Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues of shows stopping at midnight, going into the next day #70

Open
mutto233 opened this issue Jun 20, 2018 · 0 comments
Open

Issues of shows stopping at midnight, going into the next day #70

mutto233 opened this issue Jun 20, 2018 · 0 comments

Comments

@mutto233
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant