Kodi Community Forum
Python and MythTV (a MythTV Front-End) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Python and MythTV (a MythTV Front-End) (/showthread.php?tid=2349)

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


- madtw - 2005-01-17

yeah, i was going to mention that you are missing some skin image files. they should be added to cvs.

actually, we should come up with a better directory structure to store skin files, language translations, some test modules that i use for checking the syntax of the python code before uploading to the xbox, etc..

i also have a python script that i use to update the xbmc skins to add in a myth tv shortcut to the dialogsubmenu.xml skin files when i upgrade xbmc... i've been thinking it might be worth while turning it into an install script that can check for remnants of the old script files, give the user the option of modifying xbmc skin files or check the xboxmediacenter.xml for a shortcut for myth tv, request initial setup info, etc..


- elminster - 2005-01-17

hiya

thanks for the feedback. i deleted the dir which i hold my scripts;
e:\apps\scripts\mythtv
then shutdown the xbox and restarted, copied the files over but alas the same problem.
still the only thing im getting in my xbmc.log is:
17-01-2005 16:44:51 error texture manager unable to load file: q:\skin\project mayhem ii\media\shade_25.png
17-01-2005 16:44:51 error texture manager unable to load file: q:\skin\project mayhem ii\media\color_green.png
17-01-2005 16:44:51 error texture manager unable to load file: q:\skin\project mayhem ii\media\color_green.png
17-01-2005 16:44:51 error texture manager unable to load file: q:\skin\project mayhem ii\media\color_green.png
17-01-2005 16:44:51 error texture manager unable to load file: q:\skin\project mayhem ii\media\color_green.png
17-01-2005 16:44:51 error texture manager unable to load file: q:\skin\project mayhem ii\media\shade_50.png
17-01-2005 16:44:59 error texture manager unable to load file: q:\skin\project mayhem ii\media\shade_50.png

gonna try getting a new version of xbmc see if it has more media stuff and ill come back with the results. my log level in my xbmc.xml is 2.

point of note i didn't delete my mytv.xml didn't think i needed too. is their any info wrote to the python dir?


- elminster - 2005-01-18

alas no joy. new cvs of both mythtv and xbmcmythtv.

i'll crank up the log levels when i get more time and try deleting the scripts again.

setup:
nova-t receiving dvb-t data using fc3 kernel 2.6.9

got general settings on the right interface in myth too.

don't understand why i managed to get further once, nothing has changed?

must be on the mythtv side if everyone else is okay....

could it be the skins that are missing can any try removing the images and fireing it up?


- madtw - 2005-01-18

no, missing image files don't cause problems. i have been able to switch to the project mayhem ii skin without any additional problems even though the shade*.png files only exist in the project mayhem skin directory.


- madtw - 2005-01-18

fyi for anyone running the latest xbmc builds from cvs... python seems to be a bit unstable at higher resolutions. i traced down where xbmc was hanging for me and it turns out it was hanging in mythtvgui.disconnectfrommythtv. after commenting out all the code in the method, i was able to get to the point where i could watch a recorded show. however, after getting into the show details screen, i was unable to back out to the previous screen. the same thing happened when i went into the program guide screen.

when i changed xbmc to run in ntsc 4:3 instead my default of 720p 16:9, i had no problem going back and forth between the various screens. i've had some visualization lockups in 720p mode (more frequent lockups in 1080i) mode so i'm guessing xbmc is running into memory issues which is trashing python.


- hpx - 2005-01-18

two quick questions,

i don't use smb on my backend, but rather xns. is it possible to use xns rather than smb. i'm also getting prompted for the live prefix, however i haven't been able to find out what that means. what is it?

any help is appreciated.


- madtw - 2005-01-18

1. no, you won't be able to use xns because the code currently builds a smb path, connects to the smb server, and does directory listings and transfers files (tv show still shots) using the smb protocol. all this logic would have to be rewritten to support xns. i may have to start thinking about using a filesystem plugin to encapsulate all filesystem specific operations so that it would be easier to implement something other than smb.

2. the live prefix is the path prefix to your live tv ring buffer file(s). i haven't tested out the live tv stuff yet and didn't implement any of it so that's about all i can tell you right now... rubenonrye may have more info.


- lintweaker - 2005-01-18

ok after sorting out the smb problems i've got the script running properly now! i also managed to add an extra entry to the xmbc main main but i can not use it. i am not really at home configuring xmbc. what did i miss?

the new "myth tv" entry is displayed on the screen but i cannot select it. do i need some extra .xml file?


- elminster - 2005-01-18

well bravo chaps!

you have brought it to the masses. i managed to get live tv going today which must surely mean that your on the way to most being able to do it.

i updated to the latest cvs, the cvs with the "live tv" button but i was getting some access denied stuff but that was just my settings. word of note for others i had to change my livetv prefix too:
smb://foundation;username:passwd@ip/path/to/livetv/
from:
smb://path/to/livetv/
perhaps obvious to most but i assumed that the hostname would be entered into the path.

the recording dumps out after a few seconds of playback but sometimes it maintains its connection. was very excited at this point but girlfriend just looked at me like i had lost my mind :nuts: think i read something abut changing cache size ill have a look

some other issues with recorded progs still getting a blank error box. and did i read that someone had coded recording into the program guide? couldn't see any options

if theres any help i can offer any of you logs etc, more testing let me know.

so pleased to even get this far


- nianhbg - 2005-01-19

this is looking very intresting. i think i will try to install it to night Smile


- rubenonrye - 2005-01-19

elminster:

could you set loglevel=1 in your xboxmediacenter.xml file and sen me what's in your xbmc.log file? i might be better able to tell you what's going on.

i'll make a scripts and a skins folder in cvs tonight if no one objects (like it was before, minus the lib folder). that should fix the missing textures.

the recordings interface is currently broken in cvs, i'm planning on fixing it tonight.


- smurf2 - 2005-01-20

hello

thanx for continuing the script development

i finally worked out where i was going wrong (many thanx andrew) .i have 2 dvb cards so is there a way of mod'ing the script to figure out which ringbuffer to play as livetv

but angain thanx for everythign so far

latz mary


- rubenonrye - 2005-01-20

(smurf2 @ jan. 19 2005,22:28 Wrote:i have 2 dvb cards so is there a way of mod'ing the script to figure out which ringbuffer to play as livetv
this is fixed in the most recent cvs, you can either grab that or wait until stuff is stable enough for a release


- EuphoricaL - 2005-01-21

hi guys,
i've just commited to cvs a new option in the main menu called "upcoming shows". this allows you to record upcoming shows in various catagories. this is useful for viewing upcoming movies etc.

the first page allows you to choose a category. if you select one you are then presented with another page with a list of programs in that category. scroll to one you want then select it, you'll then get the option to record or not.

i've been testing it for a day and it hasn't missed any of my recordings so far.

have a look and see if you like it, have any suggestions, bugs etc...

i'm aware of the issue of mythtv not noticing the recordings straight away, this is because the backend only looks at the database every few minutes...will fix when i have time.


- boota - 2005-01-22

sorry to pile on this thread, but i am having problems getting this to work. i am using a very recent version of the xbmcmythtv scripts (maybe a week old?) from cvs. my backend is mythcvs from around the same time.

a few issues (might be all related):
1- i can see my previously recorded shows, including the png's, sizes..etc, but when i select "play", i get some crazy techno sounding stuff from the speakers, and no video (doesnt change screens...just stays on the same screen)

2- when i use the program guilde, i can see the program listings but i can't do anything past that (clicking does nothing).

3- when i try livetv i get an sql error (logs below)
i am using a wintv-go card (read: software) and have tried various transcoding settings after recording (as well as no transcodings).

anyone have similar things going on? i have looked

thanks

19-01-2005 14:09:52 debug loadlibrarya('zlib.pyd')
19-01-2005 14:09:52 debug initializing fs_seg..
19-01-2005 14:09:52 debug fs segment @ 0x80cf00
19-01-2005 14:09:52 debug executing entrypoint at: 0x9184ff - dll: zlib.pyd
19-01-2005 14:09:52 debug loadlibrary('zlib.pyd') returning: 0x80f6b0
19-01-2005 14:09:52 debug kernel32!getprocaddress(0x80f6b0, 'initzlib') => 0x912210
19-01-2005 14:09:53 info -->python initialized<--
19-01-2005 14:09:53 info
19-01-2005 14:09:53 debug loadlibrarya('_sre.pyd')
19-01-2005 14:09:53 debug executing entrypoint at: 0xb2a3cb - dll: _sre.pyd
19-01-2005 14:09:53 debug loadlibrary('_sre.pyd') returning: 0x89e830
19-01-2005 14:09:53 debug kernel32!getprocaddress(0x89e830, 'init_sre') => 0xb2a120
19-01-2005 14:09:53 debug loadlibrarya('_ssl.pyd')
19-01-2005 14:09:53 debug executing entrypoint at: 0xb7e951 - dll: _ssl.pyd
19-01-2005 14:09:53 debug loadlibrary('_ssl.pyd') returning: 0x9c0490
19-01-2005 14:09:53 debug kernel32!getprocaddress(0x9c0490, 'init_ssl') => 0xb31aa0
19-01-2005 14:09:55 info traceback (most recent call last):
19-01-2005 14:09:55 info file "e:\apps\xbmc-1-17-05\scripts\xbmcmythtv\mytv.py", line 33, in oncontrol
19-01-2005 14:09:55 info win = mythtvlivetv.livetvwin()
19-01-2005 14:09:55 info file "e:\apps\xbmc-1-17-05\scripts\xbmcmythtv\mythtvlivetv.py", line 51, in
19-01-2005 14:09:55 info self.loadprogramschedules()
19-01-2005 14:09:55 info file "e:\apps\xbmc-1-17-05\scripts\xbmcmythtv\mythtvlivetv.py", line 89, in loadprogramschedules
19-01-2005 14:09:55 info self.schedules[channel["chanid"]]=self.mythdatabase.getscheduledprograms( self.schedulestarttime, self.scheduleendtime, channel["chanid"] )
19-01-2005 14:09:55 info file "e:\apps\xbmc-1-17-05\scripts\xbmcmythtv\mythtv.py", line 676, in getscheduledprograms
19-01-2005 14:09:55 info raise serverexception, \
19-01-2005 14:09:55 info serverexception: error retrieving recording schedule: you have an error in your sql syntax. check the manual that corresponds to your mysql server version for the right syntax to use near '
programrating.system as system,
19-01-2005 14:09:59 error texture manager unable to load file: q:\skin\project mayhem\media\panel-settings.png
19-01-2005 14:09:59 error texture manager unable to load file: q:\skin\project mayhem\media\shade_25.png
19-01-2005 14:10:00 error texture manager unable to load file: q:\skin\project mayhem\media\panel-settings.png
19-01-2005 14:10:00 error texture manager unable to load file: q:\skin\project mayhem\media\shade_25.png
19-01-2005 14:10:20 info traceback (most recent call last):
19-01-2005 14:10:20 info file "e:\apps\xbmc-1-17-05\scripts\xbmcmythtv\mytv.py", line 33, in oncontrol
19-01-2005 14:10:20 info win = mythtvlivetv.livetvwin()
19-01-2005 14:10:20 info file "e:\apps\xbmc-1-17-05\scripts\xbmcmythtv\mythtvlivetv.py", line 51, in
19-01-2005 14:10:20 info self.loadprogramschedules()
19-01-2005 14:10:20 info file "e:\apps\xbmc-1-17-05\scripts\xbmcmythtv\mythtvlivetv.py", line 89, in loadprogramschedules
19-01-2005 14:10:20 info self.schedules[channel["chanid"]]=self.mythdatabase.getscheduledprograms( self.schedulestarttime, self.scheduleendtime, channel["chanid"] )
19-01-2005 14:10:20 info file "e:\apps\xbmc-1-17-05\scripts\xbmcmythtv\mythtv.py", line 676, in getscheduledprograms
19-01-2005 14:10:20 info raise serverexception, \
19-01-2005 14:10:20 info serverexception: error retrieving recording schedule: you have an error in your sql syntax. check the manual that corresponds to your mysql server version for the right syntax to use near '
programrating.system as system,