justinemter / pseudo-channel

This is a python based cli-app using the python-plex-api to control a plex-client and act like a real TV channel with show scheduling, commercial breaks, movie nights, etc. "Home-Brewed TV Channel(s) for Hackers"
GNU General Public License v3.0
130 stars 18 forks source link

Web Schedule reordered when Debug mode is off #59

Closed MoeFwacky closed 6 years ago

MoeFwacky commented 6 years ago

I only recently turned off debug mode, mostly to grab screenshots of the schedule for the blog posts I wrote. What I've noticed though is that with debug mode off, it reorders the schedule to start with midnight instead of what is at the top of the xml. For reference, this is my schedule as displayed, and below is the xml as laid out. It also failed to adjust the start time on the after-midnight movie, even though it's not set to strict-time.

    <everyday>
    <time title="random" type="movie" strict-time="true" time-shift="15" overlap-max="10" xtra="contentRating:G,PG duration__lt:8100000 duration__gt:6300000">6:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:G,PG duration__lt:8100000 duration__gt:6300000">8:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:G,PG duration__lt:8100000 duration__gt:6300000">10:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:PG,PG&#45;13 duration__lt:8100000 duration__gt:6300000">12:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:PG,PG&#45;13 duration__lt:8100000 duration__gt:6300000">14:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:PG&#45;13 duration__lt:8100000 duration__gt:6300000">16:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:PG&#45;13,R duration__lt:8100000 duration__gt:6300000">18:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:R duration__lt:8100000 duration__gt:6300000">20:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:R duration__lt:8100000 duration__gt:6300000">22:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:R duration__lt:8100000 duration__gt:6300000">0:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:R duration__lt:8100000 duration__gt:6300000">2:30</time>
    <time title="random" type="movie" strict-time="false" time-shift="15" overlap-max="10" xtra="contentRating:G,PG duration__lt:8100000 duration__gt:6300000">4:30</time>
    </everyday>
justinemter commented 6 years ago

This is really odd... I've noticed my schedule do this too, but I usually have debug off. Are you certain that the schedule logic works as you say with debug mode on?

MoeFwacky commented 6 years ago

So I know for sure that it did, but now when I turn debug mode back on and run -m, it's still showing it starting at midnight. I'll keep it on and see how it displays after the reset for tomorrow.