Posts: 515
Joined: Jul 2012
Reputation:
18
Wow! That was really fast!
Posts: 2,427
Joined: Sep 2006
Reputation:
331
2020-07-15, 19:57
(This post was last modified: 2020-07-16, 02:18 by matthuisman.)
Let me guess. An android device?
Seems python on kodi on some android devices doesn't like seeking in a file.
Its only getting to that because one of your EPG sources is failing. Try disabling one by one (via context menu) until you get a good merge. Once you know what source is failing, investigate why. Maybe URL has changed etc.
I'm working on a fix for the seek issue hopefully today
UPDATE:
Ok, just pushed 0.7.6 that fixes the SEEK issue
Python on some device sdoesn't like using seek with open(path, 'rb') or codecs.open(path, 'rb')
However, it does work using io.FileIO(path, 'rb')
So swapped to using that when needing to seek.
Also, that fixes the gzip IOError where it would need to use the android built-in gzip binary.
So now it can just use pythons gzip by using gzip.GzipFile(fileobj=io.FileIO(in_path, 'rb'))
YAH!
Posts: 11
Joined: Dec 2019
Reputation:
0
Great, everything works like before.
Thank you for great and fast solving issue
Posts: 48
Joined: Aug 2012
Reputation:
6
2020-08-02, 05:10
(This post was last modified: 2020-08-02, 05:20 by enerdude.)
Hi
Thanks for your continued work on this great add-on.
I have a suggestion for improving it when you have some time:
I am using it with the dstv-now addon as well as an iptv service to merge them together.
What I sometimes get is that I only see my iptv channels in the list and it is usually when the dstv now addon channel list fails to merge. The way I know it is if I open iptv merge and go to playlists and find that dstv-now is marked in red and on the left it has the timestamp of when it tried to merge but failed, which can then usually be fixed by just running a merge manually again.
So I was wondering if you can maybe add a setting in the addon similar to the 'auto merge sources' setting where one can maybe set a timeout / retry interval for it to retry after a failure. This should avoid having to run the merge manually after a failure.
Thanks in advance.
Posts: 2,427
Joined: Sep 2006
Reputation:
331
Even after a source failure, the last good data should still be used. But yeh, the next try won't be until the next merge time.
So, yeh. I could add some new settings to each source. Number of retries and time between retries.
Posts: 2,427
Joined: Sep 2006
Reputation:
331
I've checked and even on a failed playlist grab, it should still use the last good data.
I have just pushed an update that removes the behaviour of 2nd playlist channel numbers starting after the 1st.
It's now gone back to every playlist channel numbers starting from 1 the new default.
This can be changed to a higher number in the playlist source settings.
This means the order of the playlists is now irrelevant (same as epg).
Maybe that will help.
But yeh, if a source fails, the data is rolled back for that source.
So should never lose the channels...
Please try with latest version.
Posts: 2,427
Joined: Sep 2006
Reputation:
331
You can simulate a failure by editing
addons/plugin.video.dstv.now/.iptv_merge
change
"playlist": "plugin://$ID/?_=playlist&output=$FILE"
to
"playlist": "plugin://$ID/?_=playlist&output=$FIL"
And then "Run Merge". the DSTV playlist should fail.
But you should still have the channels