Giter VIP home page Giter VIP logo

Comments (6)

Chris230291 avatar Chris230291 commented on August 12, 2024 1

Hi yes I understand.
It is because at some point I thought it would be nice to sort the channels by name.
I have added some options to allow sorting by genre, channel number, name or none at all (and they stack).
The order in the edit page (or the config file) has no impact on how the channels are sorted.
If no custom parameters are applied then it just uses the server provided value. This is why it is not in the config.

There are some other things I need to finish up before I will update the repo and docker image. I think it will solve your issue.

from stb-proxy.

codeabilly avatar codeabilly commented on August 12, 2024 1

Awesome, works perfect.
Thank you very much.

from stb-proxy.

Chris230291 avatar Chris230291 commented on August 12, 2024

The channels are already added in the order they appear in the list given by the getAllChannels response.
Adding ordering options should be doable but I dont understand what ordering it is you want.
By channel number? By genre?

EDIT: Sorry I do sort by name... I forgot.
I can still add options to sort by other params though.

from stb-proxy.

codeabilly avatar codeabilly commented on August 12, 2024

Thanks for quick response,

I didn't mean sorting options as a new feature.
The issue I'm facing is that channels do not appear in the same order as they are in the source list.

So here's my workflow:

  • filter by GroupName
  • show all items for that group
  • toggle select for that entire group

I was hoping this would effectively enable entire group to show without making any changes to the source group.

However when I'm looking at the playlist, I'm getting something like this:

  • tvg-chno="8329"
  • tvg-chno="8337"
  • tvg-chno="8327"
  • tvg-chno="8328"

Or if I'm looking at the rendered URL's that looks something like this:

  • http://<my.local.ip>/play/<list.hash>/6709
  • http://<my.local.ip>/play/<list.hash>/9008
  • http://<my.local.ip>/play/<list.hash>/165752
  • http://<my.local.ip>/play/<list.hash>/205693
  • http://<my.local.ip>/play/<list.hash>/9015

So neither tvg-chno nor ID's in URL appears in order.

However, when I'm looking at http://<my.local.ip>/editor page and sort items by Number in interface, that does result with channels ordered same way as they appear in the original list, but it doesn't affect rendered list in any way.

My conclusion would be that some reordering does happen behind the scene which changes channel order from the source and I can't see the benefit of it.

ps. when I sort channels by Number in web interface, first enabled channel in that list has number 8418 but when I search for that number within config.json under enabled channels I'm not getting any results there.
On the other hand when I look for it in rendered list I do find this:

#EXTINF:-1 tvg-id="<list.hash>" tvg-chno="8418" group-title="<group.title>",<channel.name>
http://<my.local.ip>/play/<list.hash>/131204

Now, this 131204 from url, that I can find within config.json.

In other words, I believe that rendering list ordered by tvg-chno="8418" attribute would result with channel order same as the source list. I believe that at this point sorting is done by channel name instead.

from stb-proxy.

codeabilly avatar codeabilly commented on August 12, 2024

Great, glad I managed to explain it :D

I do agree some people might find sorting by name to be useful (to be honest I thought of it myself at some point), but that can become messy with bigger lists/groups.
With that being said, I would prefer sorting to be removed or at least turned into an optional feature.
As for default setup, I believe the order should be same as the source list.

For the time being, I will go with manual ordering within TiviMate to achieve what I want.

Again, great work with this project and I'll make sure to keep an eye on the future updates

from stb-proxy.

Chris230291 avatar Chris230291 commented on August 12, 2024

Just updated.
If you are using Docker make sure you are not using the stable tag because I deleted it.

from stb-proxy.

Related Issues (20)

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.