Comments (12)
Sorry, I was too busy these days to make any commitment.
from iptvtools.
This seems to be quite an odd feature for me. Any specific reason to achieve this?
from iptvtools.
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.
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.
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.
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:
- Specify the rules and orders of the buckets.
- Specify the
bucket
alongside others (tvg-id
,title
,height
) as sort keys.
Any opinions?
from iptvtools.
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.
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.
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.
any news on this?
from iptvtools.
any guidance to get this implemented?
from iptvtools.
Thanks for the interests! Just some points in a rush, just let me know if there is anything unclear.
- Leverage
nargs
with a*
for argumentbucket
, so they are ordered naturally. - 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) - Sort by bucket id directly.
Will this make it clear?
from iptvtools.
Related Issues (16)
- skip connectivity check
- LS character will cause AttributeError: 'NoneType' object has no attribute 'groupdict' HOT 12
- Can't run script on raspberry pi HOT 5
- The script sometimes fails HOT 2
- NL character cause AttributeError: 'NoneType' object has no attribute 'groupdict'
- ValueError: invalid literal for int() with base 10 HOT 4
- AttributeError: module 'socket' has no attribute 'SO_REUSEPORT'. Did you mean: 'SO_REUSEADDR'? HOT 2
- TypeError: expected string or bytes-like object
- group-include filter enhencement HOT 3
- Discussion HOT 28
- Issue when creating man pages HOT 1
- Check whether ffprobe/ffmpeg is installed when specifying `--min-height` option and show necessary help message.
- Add option to append resolution to channel name.
- Iptv HOT 4
- filter by group HOT 8
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 iptvtools.