Comments (2)
Hi, Florent!
I've definitely considered doing that. However, we need a big change in our rather simple streams file to include a logo field. Some paths I've thought are:
- Keep it as JSON, but each radio is an object, making it extensible. Something like this:
[
{
"name": "Radio 1",
"streamUrl": "https://example.com/stream1",
"category": "Talk radio"
"logo": "https://example.com/logo"
},
{
"name" ...
Not a big fan of this solution, as the file would grow complex to type and error-prone.
- Switch for a more human-friendly format such as toml or yaml.
This could do it, but I'd rather stick to a more standard format for streams.
- Use the M3U8 format.
This is probably the route I would take. It is still more complex to type than the current simple JSON, but users will be able to use third-party lists easily, or generate one automatically through common enough software.
The problem here is that I'm not aware of any Ruby library to parse M3U8. There is m3u8, but it targets HLS, and as far as I've looked at it, doesn't parse fields such as tvg-logo
.
from pifi-radio.
I'm closing this, as it is not actionable right now. Thanks for the input!
from pifi-radio.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pifi-radio.