Coder Social home page Coder Social logo

Add support for a radio logo about pifi-radio HOT 2 CLOSED

rc2dev avatar rc2dev commented on June 28, 2024
Add support for a radio logo

from pifi-radio.

Comments (2)

rc2dev avatar rc2dev commented on June 28, 2024 1

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:

  1. 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.

  1. 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.

  1. 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.

rc2dev avatar rc2dev commented on June 28, 2024

I'm closing this, as it is not actionable right now. Thanks for the input!

from pifi-radio.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.