RE: Schedules Direct for Tvheadend addon - edit4ever - 2017-10-19
Two things to check. First, is the xmltv.xml file in the userdata/addon_data/script.module.sd4tvh folder look like it is complete and up to date?
Then in tvheadend, take a look at the epg grabbers and make sure that if you have both enabled - that the sd4tvh has a higher priority.
RE: Schedules Direct for Tvheadend addon - Yousty - 2018-01-10
Is it possible to use this addon without having tvheadend? The reason I ask is because I have a Schedules Direct subscription and am trying to create an xmltv file that contains both cable and antenna channels for importing into TV Guide Fullscreen. I installed the app and followed the setup directions but whenever I try to modify channel lineup I get an error.
Here is I think the appropriate section of the log file:
Code: 07:41:35.591 T:3508 ERROR: Control has invalid animation type (no condition or no type)
07:41:46.585 T:3508 ERROR: Previous line repeats 2 times.
07:41:46.585 T:3508 ERROR: unmatched parentheses in ListItem.AddonStarRating)
07:41:46.585 T:3508 ERROR: unmatched parentheses in ListItem.AddonDisclaimer)
07:41:46.587 T:3508 ERROR: unmatched parentheses in ListItem.Addonbroken)
07:41:50.995 T:3508 ERROR: Control has invalid animation type (no condition or no type)
07:41:58.340 T:6524 ERROR: Previous line repeats 2 times.
07:41:58.340 T:6524 NOTICE: [xbmcswift2] Request for "/" matches rule for function "index"
07:42:00.645 T:10996 NOTICE: [xbmcswift2] Request for "/remove_provider" matches rule for function "remove_provider"
07:42:00.645 T:10996 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
07:42:02.418 T:3508 WARNING: Previous line repeats 1 times.
07:42:02.418 T:3508 WARNING: Trying to add unsupported control type 1
07:42:05.318 T:3508 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.sd4tvh/remove_provider
07:42:05.318 T:3508 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.sd4tvh/remove_provider) failed
07:42:07.131 T:568 NOTICE: [xbmcswift2] Request for "/add_provider" matches rule for function "add_provider"
07:42:07.131 T:568 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
07:42:24.603 T:3508 WARNING: Previous line repeats 1 times.
07:42:24.603 T:3508 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.sd4tvh/add_provider
07:42:24.603 T:3508 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.sd4tvh/add_provider) failed
07:42:31.028 T:5244 NOTICE: [xbmcswift2] Request for "/review_channels" matches rule for function "review_channels"
07:42:31.029 T:5244 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.WindowsError'>
Error Contents: [Error 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.sd4tvh\main.py", line 376, in <module>
plugin.run()
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 332, in run
items = self._dispatch(self.request.path)
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 306, in _dispatch
listitems = view_func(**items)
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.sd4tvh\main.py", line 139, in review_channels
subprocess.check_call("/storage/.kodi/addons/script.module.sd4tvh/bin/sd4tvh_channels")
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 181, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
-->End of Python script error report<--
07:42:31.077 T:3508 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.sd4tvh/review_channels
07:42:31.077 T:3508 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.sd4tvh/review_channels) failed
07:42:52.877 T:3508 ERROR: Control 50 in window 10001 has been asked to focus, but it can't
07:43:00.397 T:8832 NOTICE: [xbmcswift2] Request for "/remove_provider" matches rule for function "remove_provider"
07:43:00.398 T:8832 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
07:43:04.175 T:3508 WARNING: Previous line repeats 1 times.
07:43:04.176 T:3508 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.sd4tvh/remove_provider
07:43:04.176 T:3508 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.sd4tvh/remove_provider) failed
07:43:06.605 T:1716 NOTICE: [xbmcswift2] Request for "/remove_provider" matches rule for function "remove_provider"
07:43:06.606 T:1716 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
07:43:09.681 T:3508 WARNING: Previous line repeats 1 times.
07:43:09.681 T:3508 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.sd4tvh/remove_provider
07:43:09.681 T:3508 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.sd4tvh/remove_provider) failed
07:43:12.320 T:6452 NOTICE: [xbmcswift2] Request for "/add_provider" matches rule for function "add_provider"
07:43:12.320 T:6452 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
07:43:24.296 T:3508 WARNING: Previous line repeats 1 times.
07:43:24.296 T:3508 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.sd4tvh/add_provider
07:43:24.296 T:3508 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.sd4tvh/add_provider) failed
07:43:27.354 T:6596 NOTICE: [xbmcswift2] Request for "/add_provider" matches rule for function "add_provider"
07:43:27.354 T:6596 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
07:43:50.891 T:6596 WARNING: Previous line repeats 1 times.
07:43:50.891 T:6596 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'utilssd.SourceException'>
Error Contents: Lineup could not be saved! Check the log for details.
Traceback (most recent call last):
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.sd4tvh\main.py", line 376, in <module>
plugin.run()
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 332, in run
items = self._dispatch(self.request.path)
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 306, in _dispatch
listitems = view_func(**items)
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.sd4tvh\main.py", line 94, in add_provider
raise SourceException('Lineup could not be saved! '
SourceException: Lineup could not be saved! Check the log for details.
-->End of Python script error report<--
07:43:50.939 T:3508 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.sd4tvh/add_provider
07:43:50.939 T:3508 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.sd4tvh/add_provider) failed
07:44:00.212 T:10972 NOTICE: [xbmcswift2] Request for "/review_channels" matches rule for function "review_channels"
07:44:00.214 T:10972 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.WindowsError'>
Error Contents: [Error 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.sd4tvh\main.py", line 376, in <module>
plugin.run()
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 332, in run
items = self._dispatch(self.request.path)
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 306, in _dispatch
listitems = view_func(**items)
File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.sd4tvh\main.py", line 139, in review_channels
subprocess.check_call("/storage/.kodi/addons/script.module.sd4tvh/bin/sd4tvh_channels")
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 181, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
-->End of Python script error report<--
07:44:00.264 T:3508 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.sd4tvh/review_channels
07:44:00.264 T:3508 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.sd4tvh/review_channels) failed
RE: Schedules Direct for Tvheadend addon - edit4ever - 2018-01-10
The base schedules direct to xmltv file functions of my addon are built off of this:
https://github.com/astrilchuk/sd2xmltv
That should be able to work for you - just follow the instructions on the readme page of the repo.
RE: Schedules Direct for Tvheadend addon - Yousty - 2018-01-10
(2018-01-10, 16:19)edit4ever Wrote: The base schedules direct to xmltv file functions of my addon are built off of this:
https://github.com/astrilchuk/sd2xmltv
That should be able to work for you - just follow the instructions on the readme page of the repo. Thanks I'll give it a try! Unfortunately I don't have a linux machine to be able to compile the Kodi addon, is this zip already created and able to download somewhere?
RE: Schedules Direct for Tvheadend addon - edit4ever - 2018-01-10
You don't need to compile the addon - you just want to download the repo extract it to your system and the run the sd2xmltv.py script.
To manage your Schedules Direct lineup(s):
Code: ./sd2xmltv.py --username sdusername --password sdpassword --manage
To create an xmltv.xml file with your current Schedules Direct lineup:
Code: ./sd2xmltv.py --username sdusername --password sdpassword [--output ./xmltv.xml] [--days 14] [--hdhomerun discover|ip]
RE: Schedules Direct for Tvheadend addon - edit4ever - 2018-01-10
If you wanted to try as an addon - here is the built version:
https://www.dropbox.com/s/3prwffcphdupn32/tools.module.sd2xmltv-0.1.3.zip?dl=0
RE: Schedules Direct for Tvheadend addon - Yousty - 2018-01-10
Thanks I'll give it a try tonight! I actually got your zap2epg addon working well last night but unfortunately as far as I could tell there was no way to select more than one channel source so I couldn't select both Antenna and Cable/Satellite as channel sources.
RE: Schedules Direct for Tvheadend addon - edit4ever - 2018-01-10
Yeah - it looks like a lot of people are looking for multiple lineups...I'm going to look into a workaround for that in my zap2epg addon.
RE: Schedules Direct for Tvheadend addon - Yousty - 2018-01-10
(2018-01-10, 16:39)edit4ever Wrote: You don't need to compile the addon - you just want to download the repo extract it to your system and the run the sd2xmltv.py script.
To manage your Schedules Direct lineup(s):
Code: ./sd2xmltv.py --username sdusername --password sdpassword --manage
To create an xmltv.xml file with your current Schedules Direct lineup:
Code: ./sd2xmltv.py --username sdusername --password sdpassword [--output ./xmltv.xml] [--days 14][--hdhomerun discover|ip]
When running the first command I'm getting the following error:
Code: c:\Torrents\xmltv>python ./sd2xmltv.py --username **** --password **** --manage
Traceback (most recent call last):
File "./sd2xmltv.py", line 7, in <module>
from xmltv import XmltvChannel, XmltvProgramme, XmltvWriter
File "c:\Torrents\xmltv\xmltv\__init__.py", line 24, in <module>
from xmltvdocument import XmltvDocument
ModuleNotFoundError: No module named 'xmltvdocument'
Not sure why because xmltvdocument.py is in the "c:\Torrents\xmltv\xmltv" folder
RE: Schedules Direct for Tvheadend addon - edit4ever - 2018-01-11
strange - not sure why that error would pop up. Did you try the kodi addon version?
Maybe try not naming your top level xmltv folder the same...but that shouldn't make a difference.
RE: Schedules Direct for Tvheadend addon - Yousty - 2018-01-11
No luck with either option :-(
I tried renaming the folder and still get the same error:
Code: Microsoft Windows [Version 10.0.16299.192]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Anthony>cd c:\xml
c:\xml>python ./sd2xmltv.py --username **** --password **** --manage
Traceback (most recent call last):
File "./sd2xmltv.py", line 7, in <module>
from xmltv import XmltvChannel, XmltvProgramme, XmltvWriter
File "c:\xml\xmltv\__init__.py", line 24, in <module>
from xmltvdocument import XmltvDocument
ModuleNotFoundError: No module named 'xmltvdocument'
c:\xml>
I'm not sure if it matters but I have Python 3.6.4 installed.
And when I try to run the Kodi addon I get the error "This is a console-only addon"
RE: Schedules Direct for Tvheadend addon - edit4ever - 2018-01-11
Couple of things...the add-on isn't meant to be run...just configured through its settings in Kodi...then run the sd2xmltv.py script.
However, I was just glancing at the code (albeit I'm on my mobile) and I think the XmltvDocument import is missing in the sd2xmltv.py file.
In that file, try changing the following line:
Code: from xmltv import XmltvChannel, XmltvProgramme, XmltvWriter
to:
Code: from xmltv import XmltvChannel, XmltvProgramme, XmltvWriter, XmltvDocument
I'm not near a system to test...but let me know if that gives an error.
RE: Schedules Direct for Tvheadend addon - Yousty - 2018-01-11
Still the same error:
Code: Microsoft Windows [Version 10.0.16299.192]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Anthony>cd c:\xml
c:\xml>python ./sd2xmltv.py --username **** --password **** --manage
Traceback (most recent call last):
File "./sd2xmltv.py", line 7, in <module>
from xmltv import XmltvChannel, XmltvProgramme, XmltvWriter, XmltvDocument
File "c:\xml\xmltv\__init__.py", line 24, in <module>
from xmltvdocument import XmltvDocument
ModuleNotFoundError: No module named 'xmltvdocument'
c:\xml>
RE: Schedules Direct for Tvheadend addon - edit4ever - 2018-01-11
OK - I'm back at my test system and can take a deeper look.
BTW - remove you username and password from the post above!!
RE: Schedules Direct for Tvheadend addon - edit4ever - 2018-01-11
Strange - this runs for me. Remove the ./ from your command line so it looks like this:
python sd2xmltv.py --username **** --password **** --manage
./ means run in linux - not needed in windows.
--- let me know if that still fails for you and I'll zip up my sd2xmltv folder and post it for you.
|