Kodi Community Forum
[RELEASE] myTV - TV Guide Script (with pluginsnew script) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] myTV - TV Guide Script (with pluginsnew script) (/showthread.php?tid=12895)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


- jezza - 2009-09-25

pinthenet Wrote:I would really like to use myTV to setup scheduling for a MythTV backend

myTV doesn't support MythTV.


- pinthenet - 2009-09-25

Not directly, but if I can get myTv to store the program schedule details in a shared folder on the mythtv backend I can run a scheduled job to check & program the recording on mythtv. Its a similar idea to the Hauppauge example in the readme (which I also couldn't get to work). As I understand it the SMB option is what I need but I can't see where/how to set it up.


- jezza - 2009-09-25

Oh, I see. I can't find the readme, but nevertheless, I might be able to help a bit.

You setup SMB in the Settings menu. From the programme guide, press "C" to get the pop-up menu, select "Settings Menu", and one of the menu items there is "Setup SMB" (might need to scroll down to see it). From there, you can define the SMB path to save files to. The format needs to be like: smb://user:password@host/sharename/. For example:
smb://guest:guest@server/tv shows/
Note that username and password are required, even for guest.


- pinthenet - 2009-09-25

Thanks
I managed to get that setup but only if I select one of the TV cards, if I select 'no TV card' I don't have the SMB options as far as I remember. I reinstalled xbmc yesterday and now nothing seems to work aynmore - scripts (incl myTv) fail to start. I installed the latest SVN yesterday and that seems to have been a mistake.

I'll try over the weekend & let you know


- jezza - 2009-09-25

Actually, I'm not sure that the current code supports the "SMB" method. Perhaps it broke in the last release. I can't see any way to make it happen. The readme talks about settings in the config.dat file, but I don't see any place in the code that reads it such that it would make a difference.

I'm working on an "SMB" virtual card that will do what you want. Unfortunately it requires fixes to other code to get it to work. Not sure when I'll get it done.


- jezza - 2009-09-25

Also, I'm running XBMC pre-8.10 dated December 2008. About time I did an upgrade too.


- pinthenet - 2009-09-26

Thanks again Jezza
I can wait for the features - this is a long running project (already)Rolleyes
I'm also looking at MythBox (which also has problems with my installation), and the built-in myth support, but myTV has a much nicer epg

John


- pinthenet - 2009-09-26

Finally got things working again - seems the problem was caused by the 'private' XBMC folder still left in 'Documents and Settings'. Once I deleted that things started working again.

I had a quick look at the TS_Reader.py script, which is one of the simplest, and I could imaging modifying that to meet my immediate requirements, or copying it to a new save_programme. Problem is I'm a perl programmer and not a Python programmer.

I'll see what I can do as a learning challenge...


- BigBellyBilly - 2009-09-26

myTV has changed quite a bit internally and I'd recommend yuo do any changes based on version in my box.net (see sig) v1.19 beta

I overhaulled all datasources and some of the saveprogramme modules too.

I'll try and put latest code in there in next few days.


- moontan77 - 2009-09-26

anyone have this running on linux? runs for a second then says python failed for me


- moontan77 - 2009-10-11

has anyone got this working with xbmc linux? used to use it on xbox years ago but just get a script failed error on linux.


- scarab - 2010-03-17

I`ve got a problem with myTV -my xbmc crashes after starting the sctipt, here is the log:
Code:
11:21:50 T:912 M:839610368  NOTICE: cookie 1 = <Cookie wpsticket=2736211556701299pBzkQf7ix3k6g3sdyykMm%2Bc4KQKGg7no%2FTwdEiYXnWGUcDStKv7utPuBkIoAviqN6yFqgWapK6KV0iLjQxbZi%2B2vqvTM0qos%2BKordlowe4A%3D for .tv.wp.pl/>
11:21:50 T:912 M:839610368  NOTICE: cookie 2 = <Cookie rekticket=1268821203 for .wp.pl/>
11:21:50 T:912 M:839610368  NOTICE: cookie 3 = <Cookie statid=94.246.130.18.8515:1268821201:3924925156:v1 for .wp.pl/>
11:21:50 T:912 M:839610368  NOTICE: cookie 4 = <Cookie wpdticket=6872285480880118LE%2BXeVHK5LePyRgAyUHoi7WWzVdYysuc8Em86X9CvoWSw%2FuJXRK35q9bJUGTe%2FtsOE%2FTX0i4IkPo7g7Su%2FXJnS4tDNnStJrczcw%2FCGxjits%3D for .wp.pl/>
11:21:50 T:912 M:839577600  NOTICE:           < fetchURL success=True
11:21:50 T:912 M:839577600  NOTICE:         regex data  ...
11:21:50 T:912 M:839577600  NOTICE:         findAllRegEx() matches=30
11:21:50 T:912 M:839577600  NOTICE:           > mytvLib.saveChannelToFile()
11:21:50 T:912 M:839577600  NOTICE:           legal filename=C:\Program Files\XBMC\userdata\script_data\myTV\cache\172_20100317.dat
11:21:50 T:912 M:839577600  NOTICE:             > mytvLib.checkProgContinuity()
11:21:50 T:912 M:839577600  NOTICE:             < mytvLib.checkProgContinuity()
11:21:50 T:912 M:839565312  NOTICE:           < mytvLib.saveChannelToFile() saved=True
11:21:50 T:912 M:839565312  NOTICE:           > mytvLib.storeChannel() appendORprefix=True chIDX=11 chID=172
11:21:50 T:912 M:839565312  NOTICE:           TVData.hasChannel() False
11:21:50 T:912 M:839565312  NOTICE:           < mytvLib.storeChannel() changed=False
11:21:50 T:912 M:839565312  NOTICE:         FETCHING actualChIDX=12 epgChIDX=12 fetchCount=13/13
11:21:50 T:912 M:839565312  NOTICE:         getChannelInfo() chID=173, chName=ATV (niem.), chIDAlt=
11:21:50 T:912 M:839565312  NOTICE:         isFileLoaded() filename=C:\Program Files\XBMC\userdata\script_data\myTV\cache\173_20100317.dat False
11:21:50 T:912 M:839565312  NOTICE:         isErrorFile() addFile=False found=False
11:21:50 T:912 M:839565312  NOTICE:         ListingData.getChannel() dayDelta: 0 chID=173 fileDate=20100317
11:21:50 T:912 M:839565312  NOTICE:           > bbbLib.fetchURL() isBinary=False encodeURL=True
11:21:50 T:912 M:839565312  NOTICE: [Errno 2] No such file or directory: 'C:\\Program Files\\XBMC\\userdata\\script_data\\myTV\\cache\\173_20100317.html'
11:21:50 T:912 M:839565312  NOTICE: safe_url=http://tv.wp.pl/program.html?T%5Bdate%5D=2010-03-17&T%5Bstation%5D=173&T%5Bcategory%5D=ALL&T%5Btime%5D=0&ticaid=12aea
11:21:50 T:912 M:839565312  NOTICE: file=C:\Program Files\XBMC\userdata\script_data\myTV\cache\173_20100317.html
11:21:50 T:912 M:839565312  NOTICE: params=
11:21:50 T:912 M:839565312  NOTICE: headers={}
11:22:01 T:912 M:853880832  NOTICE: Server: aris

                                            Content-Type: text/html; charset=iso-8859-2

                                            Pragma: no-cache

                                            Set-Cookie: statid=94.246.130.18.5389:1268821329:473680944:v1; path=/; expires=Sat, 16-Mar-13 10:22:09 GMT

                                            Set-Cookie: statid=94.246.130.18.5389:1268821329:473680944:v1; domain=.wp.pl; path=/; expires=Sat, 16-Mar-13 10:22:09 GMT

                                            Content-Length: 56145

                                            Connection: close
11:22:01 T:912 M:853880832  NOTICE: cookie 0 = <Cookie reksticket=1268821201 for .tv.wp.pl/>
11:22:01 T:912 M:853880832  NOTICE: cookie 1 = <Cookie wpsticket=2736211556701299pBzkQf7ix3k6g3sdyykMm%2Bc4KQKGg7no%2FTwdEiYXnWGUcDStKv7utPuBkIoAviqN6yFqgWapK6KV0iLjQxbZi%2B2vqvTM0qos%2BKordlowe4A%3D for .tv.wp.pl/>
11:22:01 T:912 M:853880832  NOTICE: cookie 2 = <Cookie rekticket=1268821203 for .wp.pl/>
11:22:01 T:912 M:853880832  NOTICE: cookie 3 = <Cookie statid=94.246.130.18.8515:1268821201:3924925156:v1 for .wp.pl/>
11:22:01 T:912 M:853880832  NOTICE: cookie 4 = <Cookie wpdticket=6872285480880118LE%2BXeVHK5LePyRgAyUHoi7WWzVdYysuc8Em86X9CvoWSw%2FuJXRK35q9bJUGTe%2FtsOE%2FTX0i4IkPo7g7Su%2FXJnS4tDNnStJrczcw%2FCGxjits%3D for .wp.pl/>
11:22:01 T:912 M:853848064  NOTICE:           < fetchURL success=True
11:22:01 T:912 M:853848064  NOTICE:         regex data  ...
11:22:01 T:912 M:853848064  NOTICE:         findAllRegEx() matches=27
11:22:01 T:912 M:853848064  NOTICE:           > mytvLib.saveChannelToFile()
11:22:01 T:912 M:853848064  NOTICE:           legal filename=C:\Program Files\XBMC\userdata\script_data\myTV\cache\173_20100317.dat
11:22:01 T:912 M:853848064  NOTICE:             > mytvLib.checkProgContinuity()
11:22:01 T:912 M:853848064  NOTICE:             < mytvLib.checkProgContinuity()
11:22:01 T:912 M:853839872  NOTICE:           < mytvLib.saveChannelToFile() saved=True
11:22:01 T:912 M:853839872  NOTICE:           > mytvLib.storeChannel() appendORprefix=True chIDX=12 chID=173
11:22:01 T:912 M:853839872  NOTICE:           TVData.hasChannel() False
11:22:01 T:912 M:853839872  NOTICE:           < mytvLib.storeChannel() changed=False
11:22:01 T:912 M:853839872  NOTICE:         Freemem=814MB  loadChannels end
11:22:01 T:912 M:853839872  NOTICE:         < mytvLib.loadChannels() fetchCount=13
11:22:01 T:912 M:853839872  NOTICE:       < loadChannels() fetchCount=13
11:22:01 T:912 M:853835776  NOTICE:       > clearEPG() clearAll=True
11:22:01 T:912 M:853835776  NOTICE:       < clearEPG()
11:22:01 T:912 M:853835776  NOTICE:       > createEPGBtns() redrawChannelNames=True
11:22:01 T:912 M:853835776  NOTICE:         > updateTimeBarIntervals()
11:22:01 T:912 M:853835776  NOTICE:           > mytvLib.setupTimeBar()  intervals=5 use24Clock=True
11:22:01 T:912 M:853835776  NOTICE:           < mytvLib.setupTimeBar() sz=6
11:22:01 T:912 M:853835776  NOTICE:         < updateTimeBarIntervals()
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=DISPLAY option=font_epg value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=font14
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=DISPLAY option=file_epg_nofocus_odd value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=DarkBlue.png
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=DISPLAY option=file_epg_nofocus_even value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=DarkBlue.png
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=DISPLAY option=file_epg_nofocus_fav value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=DarkYellow.png
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=DISPLAY option=file_epg_focus value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=LightBlue.png
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=DISPLAY option=colour_epg_text_odd value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=0xFFFFFFFF
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=DISPLAY option=colour_epg_text_even value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=0xFFFFFFFF
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=DISPLAY option=colour_epg_text_fav value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=0xFFFFFFFF
11:22:01 T:912 M:853835776  NOTICE:         > mytvLib.ConfigHelper.action() mode=r section=SYSTEM option=show_chid value=
11:22:01 T:912 M:853835776  NOTICE:         < mytvLib.ConfigHelper.action() retValue=1
11:22:01 T:912 M:853835776  NOTICE:       getDayDelta() : 0
11:22:01 T:912 M:853835776  NOTICE:       tvChannels.getChannelsSZ=13 epgMaxChannels=13
11:22:01 T:912 M:853835776  NOTICE:       getChannelInfo() chID=1, chName=TVP 1, chIDAlt=
11:22:01 T:912 M:853835776  NOTICE:         > +++++++++ drawChannel() actualChIDX=0 epgChIDX=0 self.epgBtnIDX=0 dayDelta=0
11:22:01 T:912 M:853835776  NOTICE:         firstTimeBarIntervalSecs=1268820000.0 lastTimeBarIntervalSecs=1268827200.0
11:22:01 T:912 M:853835776  NOTICE:           > mytvLib.getProgAtTime() chIDX=0 intervalSecs=1268820000.0
11:22:01 T:912 M:853835776  NOTICE:           getChannelFirstProgIDX() chIDX=0 btn idx=0
11:22:01 T:912 M:853835776  NOTICE:           checking progIDX range 0 to 42
11:22:01 T:912 M:853835776  NOTICE:           getProgAtTime() FOUND checkedCount=9 start=1268819700.0 end=1268820900.0
11:22:01 T:912 M:853835776  NOTICE:           < mytvLib.getProgAtTime() progIDX=9
11:22:01 T:912 M:853835776  NOTICE:         0) progIDX=9 btnStart=1268819700.0 btnEnd=1268820900.0
11:22:01 T:912 M:853835776  NOTICE:         isTimer() isProgTimer=False
11:22:01 T:912 M:853831680   ERROR: Exception in python script's onAction
11:22:01 T:912 M:853831680  NOTICE: Traceback (most recent call last):
11:22:01 T:912 M:853831680  NOTICE:   File "C:\Program Files\XBMC\scripts\myTV\default.py", line 574, in onAction
11:22:01 T:912 M:853815296  NOTICE: if actionID in EXIT_SCRIPT or buttonID in EXIT_SCRIPT:
11:22:01 T:912 M:853815296  NOTICE:   File "special:\\xbmc\system\python\python24.zlib\warnings.py", line 53, in warn
11:22:01 T:912 M:853815296  NOTICE: AttributeError
11:22:01 T:912 M:853815296  NOTICE: :
11:22:01 T:912 M:853815296  NOTICE: 'module' object has no attribute 'argv'

I`m using myTV_v1.19_beta_20090407 and xbmc-r28256-trunk.exe running on win7.
How to fix it? I don`t have a tv card, I want to use myTV just to browse program guide. Or maybe there is another plugin/stript providing it?


- jastorino99 - 2010-04-19

I am trying to use the myTV script (tried both v1.18 and v1.19 beta) and they both give me the following error when I try to run the script:

09:21:52 T:3552 M:827625472 NOTICE: -->Python Interpreter Initialized<--
09:21:52 T:3552 M:824995840 NOTICE: myTV Version: 1.18.2 Date: 03-03-2009
09:21:53 T:3552 M:823685120 NOTICE: Traceback (most recent call last):
09:21:53 T:3552 M:823685120 NOTICE: File "E:\myTV\default.py", line 54, in ?
09:21:53 T:3552 M:823685120 NOTICE: from bbbLib import *
09:21:53 T:3552 M:823685120 NOTICE: File "/media/removable disk/myTV/resources/lib/bbbLib.py", line 11, in ?
09:21:53 T:3552 M:823685120 NOTICE: File "special:\\xbmc\system\python\python24.zlib\urllib2.py", line 108, in ?
09:21:53 T:3552 M:823685120 NOTICE: File "special:\\xbmc\system\python\python24.zlib\cookielib.py", line 39, in ?
09:21:53 T:3552 M:823685120 NOTICE: AttributeError
09:21:53 T:3552 M:823685120 NOTICE: :
09:21:53 T:3552 M:823685120 NOTICE: 'module' object has no attribute 'HTTP_PORT'
09:21:53 T:3552 M:823685120 ERROR: Scriptresult: Error

I get this same error both in windows and on the Linux Live image...

I haven't been able to find anything regarding this error by searching... does anyone know what the issue may be?

Thanks for your help


- moontan77 - 2010-04-19

oops wrong thread


- skullmonkey - 2011-04-25

How do I download/find this script?

Thanks,
S@