Giter VIP home page Giter VIP logo

Comments (12)

huxuan avatar huxuan commented on June 18, 2024 1

Sorry, I was too busy these days to make any commitment.

from iptvtools.

huxuan avatar huxuan commented on June 18, 2024

This seems to be quite an odd feature for me. Any specific reason to achieve this?

from iptvtools.

FrancYescO avatar FrancYescO commented on June 18, 2024

That's because i manage a list that is in a pretty confused order (or at least in an order that i don't like) or it get confused after being sorted by tvg-id or height, so i need a better and more specific sorting priority list..

like the example above, i just want that all channels named ZAZZA (1,2,3) are one next to the other and not mixed with PIPPO, and i want to put these before LALALA just because i like these more than LALALA so i want these to be on top of my list

from iptvtools.

huxuan avatar huxuan commented on June 18, 2024

I would expect it should be something like title buckets. Different channels belong to different buckets according to the title. It would be more reasonable to have a specific order for buckets. What do you think of?

from iptvtools.

FrancYescO avatar FrancYescO commented on June 18, 2024

Yep this should be okay at least for grouping these that getting mixed, but the real thing that i want to take care is their sorting order, that basically is "something i like in this way".
there are few channels (or buckets), call these favourites, that i want on top of my list and in a specific order, than all the other (filtered channels) will follow the 'tvg-id' / 'title' / 'height' sorting

from iptvtools.

huxuan avatar huxuan commented on June 18, 2024

Yep, that is almost what I mean. I would prefer to have a new concept bucket so that we can sort by the bucket id. In this way, what we need to do are:

  1. Specify the rules and orders of the buckets.
  2. Specify the bucket alongside others (tvg-id, title, height) as sort keys.

Any opinions?

from iptvtools.

FrancYescO avatar FrancYescO commented on June 18, 2024

looks good, i still have unclear how do you want to "generate" a new bucket (in my example i've just keeped simple using an array in array of regex of the -s flag that will generate what you call bucket and give them an order), but if these bucket can be custom ordered (so will not follow the alphabetical order) is what i was searching for

in my specific case i have just 1 bucket (4 channels starting with same prefix) and ~6 different named channels as favourites, but its not a problem if i need to create a bucket for each one of this channel to have it callable in the sorting flag

from iptvtools.

huxuan avatar huxuan commented on June 18, 2024

OK, let me try some further explanation. There will be a new argument for buckets. For example, --buckets '^ZAZZA' '^LALALA$' will generate two buckets. The bucket id for ^ZAZZA is 0 and 1 for ^LALALA$. In this way, we can utilize the current sort keys to sort by the bucket id.

An example of the arguments would be

--buckets '^ZAZZA' '^LALALA$' --sort-keys bucket tvg-id title height

from iptvtools.

FrancYescO avatar FrancYescO commented on June 18, 2024

oh ok, so basically it will keep ordering by the newly created bucket id (probably not referenced/keeped in the final m3u), yep this allow me to go straight to the objective :)

from iptvtools.

FrancYescO avatar FrancYescO commented on June 18, 2024

any news on this?

from iptvtools.

FrancYescO avatar FrancYescO commented on June 18, 2024

any guidance to get this implemented?

from iptvtools.

huxuan avatar huxuan commented on June 18, 2024

Thanks for the interests! Just some points in a rush, just let me know if there is anything unclear.

  1. Leverage nargs with a * for argument bucket, so they are ordered naturally.
  2. Mark the entry with corresponding bucket index as something like bucket id when the title matches the regular expression of the bucket. (defaults to maximum)
  3. Sort by bucket id directly.

Will this make it clear?

from iptvtools.

Related Issues (16)

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.