In my opinion the RasPi needs too much time to load the whole channel list (5-10 minutes). So i thought that i make a little crontab and only take the channels that i need.
This is a dirty fix and could be improved but it's a good start i think.
Here's how i did it :
Connect via SSH to your RasPi
Now create a file called tv.sh in your homedir
Now put this into the file (note this is for the german channels but should work with any other country)
Now create a crontab. You can do it like this
and put the following inside
The new list is named TV.m3u and you will find it in your homedir.
The last thing you need to do is : import it into your addon.
This is a dirty fix and could be improved but it's a good start i think.
Here's how i did it :
Connect via SSH to your RasPi
Code:
ssh IP-OF-YOUR-RASPI -l USERNAME
Code:
nano tv.sh
Code:
rm TV.m3u
wget 'YOUR-LIST-URL' -O ~/Channels.m3u
grep 'LIVE: Austria' Channels.m3u -A1 > ~/austria.m3u
grep 'LIVE: Germany' Channels.m3u -A1 > ~/germany.m3u
grep 'LIVE: Switzerland' Channels.m3u -A1 > ~/switzerland.m3u
grep 'MOVIE: German' Channels.m3u -A1 > ~/movie.m3u
echo '#EXTM3U' > TV.m3u
cat austria.m3u germany.m3u switzerland.m3u movie.m3u >> TV.m3u
sed -i '/--/d' ~/TV.m3u
rm Channels.m3u austria.m3u germany.m3u movie.m3u switzerland.m3u xmltv.xml
Code:
crontab -e
Code:
0 12 * * * /home/osmc/tv.sh
The last thing you need to do is : import it into your addon.