bebo-dot-dev / m3u-epg-editor

a python m3u / epg optimizer
120 stars 27 forks source link

Groups Get #22

Closed wlatic closed 5 years ago

wlatic commented 5 years ago

This isnt an issue but more a feature request.

Would it be possible to add in a function to group only the groups?

Would make getting the config setup a little easier!

wlatic commented 5 years ago

To help i've been using the following command: grep -o -P '(?<=group-title=").*(?=")' original.m3u8 | sort | uniq | tr A-Z a-z

This does bring up a slight issue, the groups are outputting their names with all caps, however I can see the script requires a lower case entry to find the groups correctly. This is why I've done the "tr A-Z a-z" entry.

bebo-dot-dev commented 5 years ago

Hi @wlatic,

I can see that your grep command outputs the content of all distinct group-title attributes from the given m3u file, sorted alphabetically.

I'm not entirely clear what this feature request is requesting at present, hopefully you can clarify. What is "a function to group only the groups" asking for ?

Are you requesting that all channel groups from the original source m3u file be output into i.e. a new original.groups.txt file to help with initial config setup ?

Are you aware that all channels from the original source m3u file are output into the original.channels.txt file along with their channel group ?

Please let me know

Cheers, Joe

bebo-dot-dev commented 5 years ago

I'm going to close this because there's been no further comms to clarify exactly what is needed. If you want to clarify / supply more details, reopen it.