Project

General

Profile

[OpenELEC] Adding new channels from M3U playlist

Added by Andrej S. almost 12 years ago

Hello,

I have 100+ channels in some M3U playlist and I would like to easily add them to IPTV list... Is there an easy way to do this?
Well the easy way for me is also making the script to create a new file/s (whatever is needed) from my old m3u...
I've been trying to alter ~/.xbmc/userdata/addon_data/service.multimedia.tvheadend/iptvservices (iptv_*) files filled with lines from my m3u, but HTS Tvheadend 3.3.328~g60371b0 web interface doesn't recognize anything...
What can I do? I just don't want to be kicking all the channels (100+) in via web interface...

Thank you and best regards...
-Andrej


Replies (5)

RE: [OpenELEC] Adding new channels from M3U playlist - Added by Pavel Zlatovratsky over 11 years ago

You may try my solution. This is a tiny program that open playlist and create iptv
Use -h key to show help
All parameters except --follow_links are needed (link to playlist, url of tvheadend like http://192.168.1.1:9981, name and password for tvh.

https://github.com/Scondo/tvh_m3u_reader

RE: [OpenELEC] Adding new channels from M3U playlist - Added by Dan Poz over 10 years ago

To Pavel Zlatovratsky

your program does not work, this error:

Error while creating IPTV service
Traceback (most recent call last):
File "tvh_m3u_reader.py", line 100, in <module>
cid = find_service(pre_chans, cname)
File "tvh_m3u_reader.py", line 46, in find_service
for item in items:
TypeError: 'bool' object is not iterable

run with code: python tvh_m3u_reader.py --playlist-url /home/xbmc/Public/iptv_new.m3u --tvheadend http://192.168.1.4:9981 --user admin --password **

RE: [OpenELEC] Adding new channels from M3U playlist - Added by Pavel Zlatovratsky over 10 years ago

I can try to improve error information, but it seems that something wrong with retrieving list of current iptv services from tvheadend.

Error while creating IPTV service

As it's first connection to tvheadend try to check tvheadend url, user and password.
And please write version of tvheadend - program use WebUI API which is undocumented and so not guaranteed to be stable.

RE: [OpenELEC] Adding new channels from M3U playlist - Added by Dan Poz over 10 years ago

Version of Tvheaden: HTS Tvheadend 3.9.431~g3f3fdc8
through a Web interface to Tvheadend is connected correctly.

    (1-5/5)