-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom sorting #12
Comments
This seems to be quite an odd feature for me. Any specific reason to achieve this? |
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 |
I would expect it should be something like |
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". |
Yep, that is almost what I mean. I would prefer to have a new concept
Any opinions? |
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 |
OK, let me try some further explanation. There will be a new argument for buckets. For example, An example of the arguments would be
|
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 :) |
any news on this? |
Sorry, I was too busy these days to make any commitment. |
any guidance to get this implemented? |
Thanks for the interests! Just some points in a rush, just let me know if there is anything unclear.
Will this make it clear? |
would be nice to have a way to set a custom order for some channels... i.e.
this is the starting list (assume this is the channel name, i stripped all other m3u values...)
Setting the flags like
-R -s [['^ZAZZA','^LALALA$'], 'tvg-id', 'title', 'height']
Will generate this list:
The text was updated successfully, but these errors were encountered: