Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 15
  • 16
  • 17(current)
  • 18
  • 19
  • 22
Beta xmltv Meld - creates a single xmltv file from rytec, zap etc
(2019-01-18, 15:54)primaeval Wrote:
(2019-01-18, 15:02)Coldstream Wrote: @primaeval  you have made a bunch of nice plugins, and for the last few days ive been playing around with them. Some things are working fine, other things doesn't seem to work for me. However, especially with xmltv Meld i am getting quite some troubles.
Maybe it's because i don't get the idea but whenever i try to meld i always either get errors, or i don't get any channels linked for TV Guide Full screen.
Perhaps you can clear it up a bit for me, right now the IPTV provider i use have both an M3U link & a Kodi addon. I prefer to play most through simple IPTV client because i'm getting good results with proper audio passthrough and video switching.
Anyway, i tried to add either yo.tv or rytec as sources, to get primarly a dutch guide, but i don't manage to link the channels properly. I am not even sure what would be te recommended player from all of them at your repo. I can also add the XMLTV file from my provider, but this has different channel-id's as rytec or yo.tv... I figured i could meld them all with xmltv meld but no succes as of yet.
Also, right now i just used https://github.com/tvgrabbers/tvgrabpyAPI to generate a xmltv guide which works fine in full screen tv, but i can't use it in XMLTV meld at all Sad for the time beeing i at least matched their id with my m3u manually but obviously on the first change of name/link the channel will break. I'm considering writing a python script just to match tvg-ID in m3u with anything from an xmltv source but then again it will defeat the purpose of this plugin. What am i overlooking? My iptv device is a nvidia shield, so no webgrab+ can run on it. I can run it on my pc and generate a bigger guide once in the x days if thats a solution though. Hope you can chime in on how to archieve this all. I prefer using both TVG full screen and native PVR with simple client. No recording is needed either.
 It might not be you. This addon is getting quite complicated and I've found a few bugs recently.

If your xmltv from tvgrabpyAPI  contains any non-standard xml it will fail to load in TV Guide Fullscreen.
That means things like an & which should be & and named entities like ß for ß
There is a fix for that in
TV Guide Fullscreen \ Settings \ Fix xmltv html entity errors

You can change the ids and channel names in the Channels section.

Matching m3u streams to channels is done by the channel name rather than tvg-id in guess_channel_stream_dialog.
If you want to add in matching by id you or I could add it in there.

You can post or pm me examples if that helps. 
 Thank you, i haven't had the time to reply sooner, though i still have been playing around a bit.
About the XML and HTML entity errors, when i try to run TVG FS with an XML from tvgrabpyapi, and enable fix HTML entities, it will crash no matter what. So i also can't load it in XMLTV meld.
Now, i've created another XMLTV file with webgrab+ (horizon.tv as source fwiw) and it can load with the html entity fix function enabled. However, same applies to these XML's. i can't get them in XMLTV Meld no matter what.
As for the matching, i never thought about the channel-name as i left it alone all the time. I am also not sure how simple client matches, but i guess that's through tvg-id?
Anyway as you probably faced these issues already before, i think getting the channel-names matching might also be kind of the best way to get it properly done.
For the last two days or so, i've been writing some python code to make a matcher, but it's giving me quite some headaches to be fair as there seems to be so much confusion all around everywhere to get a proper matching system it seems. One takes channel-name, other takes tvg-name. Even others take tvg-ID. As for what i got so far, i'm just parsing the XML and M3u, trying to use regex to clean m3u values as good as possible. Now i need to actually think about proper matching, i could try to match the tvg-name (from xml) as good as possible with the channel display name, if somehow it seems like a match then write the tvg-name as channel name in the m3u, that should work for tvg fs right? Also, what would i need to change in either tvgrabpyapi or webgrab+ to get it loaded in xmltv meld? Is it just the HTML entities that messes it all up? I would value your input, as i am kind of in doubt what path to take. Also i can't pm here as i was only a lurker before and haven't got much posts on this forum haha. Thanks
Reply
(2019-01-20, 14:57)Coldstream Wrote:
(2019-01-18, 15:54)primaeval Wrote:
(2019-01-18, 15:02)Coldstream Wrote: @primaeval  you have made a bunch of nice plugins, and for the last few days ive been playing around with them. Some things are working fine, other things doesn't seem to work for me. However, especially with xmltv Meld i am getting quite some troubles.
Maybe it's because i don't get the idea but whenever i try to meld i always either get errors, or i don't get any channels linked for TV Guide Full screen.
Perhaps you can clear it up a bit for me, right now the IPTV provider i use have both an M3U link & a Kodi addon. I prefer to play most through simple IPTV client because i'm getting good results with proper audio passthrough and video switching.
Anyway, i tried to add either yo.tv or rytec as sources, to get primarly a dutch guide, but i don't manage to link the channels properly. I am not even sure what would be te recommended player from all of them at your repo. I can also add the XMLTV file from my provider, but this has different channel-id's as rytec or yo.tv... I figured i could meld them all with xmltv meld but no succes as of yet.
Also, right now i just used https://github.com/tvgrabbers/tvgrabpyAPI to generate a xmltv guide which works fine in full screen tv, but i can't use it in XMLTV meld at all Sad for the time beeing i at least matched their id with my m3u manually but obviously on the first change of name/link the channel will break. I'm considering writing a python script just to match tvg-ID in m3u with anything from an xmltv source but then again it will defeat the purpose of this plugin. What am i overlooking? My iptv device is a nvidia shield, so no webgrab+ can run on it. I can run it on my pc and generate a bigger guide once in the x days if thats a solution though. Hope you can chime in on how to archieve this all. I prefer using both TVG full screen and native PVR with simple client. No recording is needed either.
 It might not be you. This addon is getting quite complicated and I've found a few bugs recently.

If your xmltv from tvgrabpyAPI  contains any non-standard xml it will fail to load in TV Guide Fullscreen.
That means things like an & which should be & and named entities like ß for ß
There is a fix for that in
TV Guide Fullscreen \ Settings \ Fix xmltv html entity errors

You can change the ids and channel names in the Channels section.

Matching m3u streams to channels is done by the channel name rather than tvg-id in guess_channel_stream_dialog.
If you want to add in matching by id you or I could add it in there.

You can post or pm me examples if that helps.   
 Thank you, i haven't had the time to reply sooner, though i still have been playing around a bit.
About the XML and HTML entity errors, when i try to run TVG FS with an XML from tvgrabpyapi, and enable fix HTML entities, it will crash no matter what. So i also can't load it in XMLTV meld.
Now, i've created another XMLTV file with webgrab+ (horizon.tv as source fwiw) and it can load with the html entity fix function enabled. However, same applies to these XML's. i can't get them in XMLTV Meld no matter what.
As for the matching, i never thought about the channel-name as i left it alone all the time. I am also not sure how simple client matches, but i guess that's through tvg-id?
Anyway as you probably faced these issues already before, i think getting the channel-names matching might also be kind of the best way to get it properly done.
For the last two days or so, i've been writing some python code to make a matcher, but it's giving me quite some headaches to be fair as there seems to be so much confusion all around everywhere to get a proper matching system it seems. One takes channel-name, other takes tvg-name. Even others take tvg-ID. As for what i got so far, i'm just parsing the XML and M3u, trying to use regex to clean m3u values as good as possible. Now i need to actually think about proper matching, i could try to match the tvg-name (from xml) as good as possible with the channel display name, if somehow it seems like a match then write the tvg-name as channel name in the m3u, that should work for tvg fs right? Also, what would i need to change in either tvgrabpyapi or webgrab+ to get it loaded in xmltv meld? Is it just the HTML entities that messes it all up? I would value your input, as i am kind of in doubt what path to take. Also i can't pm here as i was only a lurker before and haven't got much posts on this forum haha. Thanks  
 I think I'll have to have a look at your xmltv files to see what is wrong.
I've seen some very sloppy xml from webgrab recently. I don't know if it was from their official scrapers or elsewhere.
It's going to take a while to get to 10 posts here.
Reply
I'm sure you have already considered this, Primaeval, but is it possible to add the tv.com listings to xmltv Meld? It seems to me that has a lot of countries that aren't available in yo.tv or rytec. I've know I can do it with webgrab+ but I can't seem to get that to work properly.
Reply
(2019-02-05, 21:17)TopekaRoy Wrote: I'm sure you have already considered this, Primaeval, but is it possible to add the tv.com listings to xmltv Meld? It seems to me that has a lot of countries that aren't available in yo.tv or rytec. I've know I can do it with webgrab+ but I can't seem to get that to work properly.
 I'm have a look when I get time.
Did you try using the tv.com wizard in my webgrab configurator addon?
I think I tried that a couple of weeks ago and it still worked.
Reply
(2019-02-05, 21:22)primaeval Wrote:
(2019-02-05, 21:17)TopekaRoy Wrote: I'm sure you have already considered this, Primaeval, but is it possible to add the tv.com listings to xmltv Meld? It seems to me that has a lot of countries that aren't available in yo.tv or rytec. I've know I can do it with webgrab+ but I can't seem to get that to work properly.
 I'm have a look when I get time.
Did you try using the tv.com wizard in my webgrab configurator addon?
I think I tried that a couple of weeks ago and it still worked. 
No, I haven't but I'll take a look at it. As always, thanks for the prompt reply!
Reply
Using webgrab+ to generate my own xml file as a backup when/if my providers guide isn't working.   Previously I added my xml guide as a custom file without issues and was able to load channels from it using xmltv meld.  Today I went to add some channels from my custom guide and am getting an error.  This is part of the error from the log.

 Error Type: <class 'requests.exceptions.InvalidSchema'>
 Error Contents: No connection adapters were found for 'C:/Users/john/AppData/Roaming/Kodi/IPTV/guide.xml'

There's a number of python errors then:

06:59:14.138 T:5316   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.program.xmltv.meld/select_channels/C%3A%5CUsers%5Cjohn%5CAppData%5CRoaming%5CKodi%5CIPTV%5Cguide.xml/john2
06:59:14.144 T:2668   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.xmltv.meld/select_channels/C%3A%5CUsers%5Cjohn%5CAppData%5CRoaming%5CKodi%5CIPTV%5Cguide.xml/john2) failed
06:59:14.474 T:11868  NOTICE: [xbmcswift2] Request for "/custom_xmltv" matches rule for function "custom_xmltv"
06:59:14.475 T:11868 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

Any thoughts?
Reply
(2019-02-09, 14:08)Cangeoboy Wrote: Using webgrab+ to generate my own xml file as a backup when/if my providers guide isn't working.   Previously I added my xml guide as a custom file without issues and was able to load channels from it using xmltv meld.  Today I went to add some channels from my custom guide and am getting an error.  This is part of the error from the log.

 Error Type: <class 'requests.exceptions.InvalidSchema'>
 Error Contents: No connection adapters were found for 'C:/Users/john/AppData/Roaming/Kodi/IPTV/guide.xml'

There's a number of python errors then:

06:59:14.138 T:5316   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.program.xmltv.meld/select_channels/C%3A%5CUsers%5Cjohn%5CAppData%5CRoaming%5CKodi%5CIPTV%5Cguide.xml/john2
06:59:14.144 T:2668   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.xmltv.meld/select_channels/C%3A%5CUsers%5Cjohn%5CAppData%5CRoaming%5CKodi%5CIPTV%5Cguide.xml/john2) failed
06:59:14.474 T:11868  NOTICE: [xbmcswift2] Request for "/custom_xmltv" matches rule for function "custom_xmltv"
06:59:14.475 T:11868 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

Any thoughts?
 Try 0.0.54.
It was reading the File as a Url.
Reply
Primeval,

That was it.  0.54 fixed it.  Thanks again.  This is such a great program addon.
Reply
Have another question about xmltvmeld.   One of my iptv providers uses a xmltv.php file within their epg url.  Had no problems initially adding this as a custom epg, but now if I go into that custom guide to add or remove a channel, nothing is listed.   Can xmltvmeld handle this type of url?  Do I need to do a reset?  Looking in temp, my xmltv.php file that matches what should be downloaded from my providers url is there, but it is empty.  Checked the url itself using simpleiptv client and it does download the epg guide, so I know the guide is working.  

Thanks
Reply
(2019-02-12, 15:32)Cangeoboy Wrote: Have another question about xmltvmeld.   One of my iptv providers uses a xmltv.php file within their epg url.  Had no problems initially adding this as a custom epg, but now if I go into that custom guide to add or remove a channel, nothing is listed.   Can xmltvmeld handle this type of url?  Do I need to do a reset?  Looking in temp, my xmltv.php file that matches what should be downloaded from my providers url is there, but it is empty.  Checked the url itself using simpleiptv client and it does download the epg guide, so I know the guide is working.  

Thanks
xmltv.php should work. I tried it just now and it was ok.It might not work if it needs a special user-agent.
pm me the url and I'll see if it does.
Reply
Primaeval,

The fix you made worked great.   Can now see the channels again.   As usual thanks for the great addon and your problem solving and maintenance.
Reply
Hi. I've added my local over-the-air broadcast channels to the guide, but I have a good antenna and can pick up several channels from a larger nearby city. Can I change my zip code in settings to that city and add these channels from Zap without losing the local channels I already have? Would that mess anything up?
Reply
(2019-03-09, 01:47)TopekaRoy Wrote: Hi. I've added my local over-the-air broadcast channels to the guide, but I have a good antenna and can pick up several channels from a larger nearby city. Can I change my zip code in settings to that city and add these channels from Zap without losing the local channels I already have? Would that mess anything up?
 I have only added the ability to add one zip code for the usa or canada.
I've got the feeling that it would need a huge amount of changes to the code to add more.

Is there some zip code between you and the city that would bring up both providers in the list?

Are your extra channels in the TIMEZONE lists? You can add more than one of them.

The other alternative is to use @edit4ever 's zap2epg addon.
He kindly let me use his code as the basis for the zap channels in xmltv Meld.
https://github.com/edit4ever/script.module.zap2epg
Reply
(2019-03-09, 01:47)TopekaRoy Wrote: Hi. I've added my local over-the-air broadcast channels to the guide, but I have a good antenna and can pick up several channels from a larger nearby city. Can I change my zip code in settings to that city and add these channels from Zap without losing the local channels I already have? Would that mess anything up?
 Try version 0.0.56. I've added in an extra zip code for USA and Canada.
It might work. Let me know if it gets the timezones correct.
Reply
(2019-03-09, 10:51)primaeval Wrote:
(2019-03-09, 01:47)TopekaRoy Wrote: Hi. I've added my local over-the-air broadcast channels to the guide, but I have a good antenna and can pick up several channels from a larger nearby city. Can I change my zip code in settings to that city and add these channels from Zap without losing the local channels I already have? Would that mess anything up?
 Try version 0.0.56. I've added in an extra zip code for USA and Canada.
It might work. Let me know if it gets the timezones correct. 
The 2nd Zip code works great! Thanks for the update. Now I can see what is on those channels without having to wear out the batteries on my remote.
Reply
  • 1
  • 15
  • 16
  • 17(current)
  • 18
  • 19
  • 22

Logout Mark Read Team Forum Stats Members Help
xmltv Meld - creates a single xmltv file from rytec, zap etc1