DEFENDORe / pseudotv

Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
MIT License
234 stars 36 forks source link

ECMAScript Modules and Client Isolation #28

Closed rafaelvieiras closed 3 years ago

rafaelvieiras commented 4 years ago

What has changed?

Creating a database middleware.

For now, we use diskdb to save information, but, on future we may want to add new ways to save information, an SQL, plain json or simple change diskdb to another lib. Thinking on this, I'm created a Database class, to manager save, update, list and find. Without the other codes knowing which lib being in use.

Driver Class & Driver Router

The concept behind The Driver is to manager information to client with multiple media-server, or any media-server type, like Emby, Plex or Jellyfin, without exclusivity.

The Driver can add media service on PseudoTv server without an exclusive service type. The Driver possibility the channel end-point return a channel with multiple media sources or just without an exclusive service.

ECMAScript Modules

Changed from require to import. All modules are now exported by export and no more by module.export.

Related with #20 and #19

rafaelvieiras commented 4 years ago

@DEFENDORe and @powdermilkman, I'm very anxious for your opinion. Remember, this PR is Work in Progress.

powdermilkman commented 4 years ago

@rafaelvieiras if you're interested you should take a look at the rebuild branch, we are looking to rebuild the app in vue.js. Join us on the discord https://discord.gg/PCZYH6

rafaelvieiras commented 4 years ago

@powdermilkman this invite is invalid! You can add me!? rafaelvieiras#0729

powdermilkman commented 4 years ago

sent a friend request