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

Add second level timerbar for upcoming episodes #40

Open
4 tasks
shizuka opened this issue Mar 5, 2016 · 0 comments
Open
4 tasks

Add second level timerbar for upcoming episodes #40

shizuka opened this issue Mar 5, 2016 · 0 comments

Comments

@shizuka
Copy link
Member

shizuka commented Mar 5, 2016

Reference Xena's PonyAPI

Have brst_countdowns.js call API to fetch the next pony episode time, load into autogen list with the upcoming movie nights. Not poking the API at every update (30s interval) should cut down on traffic spam. No serverside thinking because static Jekyll (doubt we could get Jekyll to do curl+parsing for build time).

Timer data objects need a flag added indicating if they should appear in second level timerbar. Main bar should always be next upcoming timer, and hide second bar if the two are the same object.

timers:
  - title: MLP Season Premiere
  - time: 2016-03-26 11:00 -0400
  - header: true

Auto-generated episode object would automatically get the header flag. If API doesn't return an episode, just bail out and continue with the movie night generation.

Second level bar shows the next upcoming timer with the header flag set. If no such timers, no bar.


TODO:

  • Bar styling
  • JS API call and parse - https://ponyapi.apps.xeserv.us/newest?options=bare returns
    { "name": "ep name",  
      "air_date": "unix timestamp", 
      "season": "#",
      "episode": "#",
      "is_movie": "bool" }
  • Episode timer generation
  • Manual timer flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant