bebo-dot-dev / m3u-epg-editor

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

Starting value argument for channel numbers #20

Closed jobrien2001 closed 5 years ago

jobrien2001 commented 5 years ago

Hello

I am looking to run this on 2 different m3us and do not want the channel numbers to overlap. I cant merge the m3u before hand because of reasons...

It would be great to have a starting value for channel numbering so that it does not always start at 1.

Thanks

bebo-dot-dev commented 5 years ago

Hi there

I think that you're requesting the introduction of a new argument that would work with the existing --tvh_offset / -t argument i.e. something like --tvh_start / -ts.

When specified, this value would be used as the absolute start of numbering for the tvh-chnum attribute values on channels.

Do I understand correctly?

Cheers

jobrien2001 commented 5 years ago

Yes, exactly

bebo-dot-dev commented 5 years ago

ok I'll take a look later, it sounds reasonable and easy enough

bebo-dot-dev commented 5 years ago

That should do it, tested working here.