Skip to content
/ gracker Public

chrome extension to track playback progress and episode progression

Notifications You must be signed in to change notification settings

vnev/gracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gramaton Tracker

Chrome extension to track the progress of your current movies and TV shows on Gramaton.io

Background Script Data Layout

The data communicated between the background and injected script has a particular layout. To start with, this is the layout used.

{
  db: {
    movies: [{
      title: "",
      timestamp: 0.0,
      volume: 0.0,
      url: "",
    }],

    shows: [{
      title: "",
      currSeason: 1,
      currEpisode: 1,
      url: "", <-- url to latest episode
      timestamp: 0.0,
      volume: 0.0,
      totalSeasons: 1,
      totalEpisodes: 1,
    }],

    cookie: {
      sessionId: "...",
    }
  }
}

Layout will probably change as I add more features.

Things to note

A lot of event listeners and web request listeners in both the background and injected scripts rely on a particular URL layout that Gramaton uses, and if Gramaton were to change their base URL or one of their media URLs, things in the extension would need to be changed in order to continue accurate tracking.

About

chrome extension to track playback progress and episode progression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published