Kodi Community Forum
[RELEASE] MythBox for XBMC - a MythTV Front-end Python Script for XBMC - 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] MythBox for XBMC - a MythTV Front-end Python Script for XBMC (/showthread.php?tid=43115)



- ding - 2009-04-15

ding Wrote:Once I initiate playback on a channel it seems to be playing back the buffer and then it stops playback.

I was looking at it again and it actually seems to be buffering and after buffering finishes mythtv seems to stop livetv recording so when it actually plays the video it only plays back the buffer that is save on the disk (how ever big I set it) and nothing else. It is very weird.Huh


- harbind - 2009-04-21

I just can't get this script to work.
My mythfrontend works fine with the backend but MythBox don't want to start. It gives "Unknown dlopen() error" after "importing mythtv".

My system is running on Arch Linux with MythTv 0.21.

My mythbox.log:
Code:
DEBUG | default.py | Line 95 | Mythbox Logger Initialized
ERROR | default.py | Line 152 | Initializing stage 2
Traceback (most recent call last):
  File "/home/tomi/.xbmc/scripts/My Scripts/MythBox/default.py", line 141, in ?
    import mythtv
  File "/home/tomi/.xbmc/scripts/My Scripts/MythBox/resources/src/mythtv.py", line 22, in ?
    import mythdb
  File "/home/tomi/.xbmc/scripts/My Scripts/MythBox/resources/src/mythdb.py", line 22, in ?
    import MySQLdb
  File "/home/tomi/.xbmc/scripts/My Scripts/MythBox/resources/lib/MySQLdb/MySQLdb/__init__.py", line 19, in ?
    import _mysql
ImportError: unknown dlopen() error

Any idea what the problem might be?


- analogue - 2009-05-07

I just uploaded the latest release to http://mythbox.googlecode.com ...

05/06/2009 - MythBox SVN 1062
=============================
- updated: support for MythTV 0.22 (trunk) procotol 44
- new : recording detail screen - added date/time to header
- new : recording detail screen - mini-video window replaces thumbnail when video is playing
- changed: recording detail screen - improved load time - WindowXML rewrite + async pre/post fetching + mythtv connection & db pooling
- new : recording detail screen - added ability to move a queued comm flag job to the beginning of the queue - MythTV doesn't even have this!
- new : recording detail screen - added number of commercial breaks, position in queue, or percent completed if still in progress
- changed: recording detail screen - enlarged thumbnail and added drop shadow; recording details re-arranged
- changed: recording detail screen - Play+Skip button has default focus if recording is comm flagged
- new : create/edit recording schedule dialog - start and end offsets can now be edited
- updated: Issue 24 - Default buffer size is too low
- fixed : Issue 25 - can't change recording schedule from tv guide
- fixed : Issue 22 - support for ffmpeg 0.5 on ubuntu 9.04 jaunty


- ding - 2009-05-08

This version crashes my xbmc 9.04 completely.

http://www.pastebin.ca/1415846

I am on a ppc. myth:// works great but not mythbox Sad


- ding - 2009-05-08

well I downgraded and it seems like it is a problem with 865 too. It seems to me that if mythsetting throws a warning it seems to crash mythbox. I will see if I can fix the mythfilldatabase warning and try again.

EDIT: it did not do it. now I get...
mythsettings['mythfilldatabaseLastRunStatus', None] = Successful
and mythbox is still crashing. The only thing I have done different is compile the latest xbmc 9.04. I will try to svn up and recompile see if that helps.

EDIT2: Updated to revision 20050 compiling now...

EDIT3: compiled did not fix it. So sad Sad


- analogue - 2009-05-08

ding Wrote:well I downgraded and it seems like it is a problem with 865 too. It seems to me that if mythsetting throws a warning it seems to crash mythbox. I will see if I can fix the mythfilldatabase warning and try again.

EDIT: it did not do it. now I get...
mythsettings['mythfilldatabaseLastRunStatus', None] = Successful
and mythbox is still crashing. The only thing I have done different is compile the latest xbmc 9.04. I will try to svn up and recompile see if that helps.

EDIT2: Updated to revision 20050 compiling now...

EDIT3: compiled did not fix it. So sad Sad

Do you get core files on Mac with hard crashes?


- davilla - 2009-05-08

analogue Wrote:Do you get core files on Mac with hard crashes?

OSX always creates a crashreporter log when any app crashes.


- kasper-pa- - 2009-05-08

Just wanted to say thanks for this plugin! works great on my setup!!

:cheers:

Kasp


- ding - 2009-05-08

Going back to Beta 1 fixed the issue. I tried it at my work with the current ppc download from sourceforge and it also worked. When I get home I will try to get a crash report going but it seems to be something having to do with the current and previous svn build(current 20050) and not with the mythbox script. Or maybe a little of both. Either way I switch the discussion to the mac thread here...

http://forum.xbmc.org/showthread.php?tid=50544

BTW analogue I know I am like one of two people having this problem but I still cannot watch live tv longer than the set buffer on the new build either. My clunky workaround is to use the myth:// protocol for live tv and mythbox for everything else but that is a little bit of a pain. Either way THANKS FOR YOUR HARD WORK!!!


- aaaaaakash - 2009-05-08

Hi, I'm a newbie here, trying to get things to work here. I am running XBMC on my Windows XP machine. I have got my mythTV backend setup on a virtual machine (ubuntu) which is running on the same system. I have managed to get the mythbox script to connect to the backend. Now when I choose a live tv channel, it can't find the stream.

I am guessing it is because I haven't set up the "recording directories" path properly in the mythbox settings. I don't know what path I am supposed to use. Is it possible to use a path on my actual XP machine, or does is have to be within the Ubuntu Virtual Machine? I appreciate any help, and a really appreciate all the work that has gone into this! Thanks in advance.


- jimjam - 2009-05-08

I'm using XBMC 9.04 on Windows XP with mythbox-svn-1062.tar.gz.
I get the following error on startup.

Quote:-->Python Interpreter Initialized<--
12:14:47 T:4576 M:811753472 NOTICE:
12:14:47 T:4576 M:811679744 NOTICE: MythBox: platform = win32
12:14:47 T:4576 M:811679744 NOTICE:
12:14:47 T:4576 M:811679744 NOTICE: MythBox: syspath += C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\resources\src
12:14:47 T:4576 M:811679744 NOTICE:
12:14:47 T:4576 M:811679744 NOTICE: MythBox: syspath += C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\resources\lib\pysmb
12:14:47 T:4576 M:811679744 NOTICE:
12:14:47 T:4576 M:811679744 NOTICE: MythBox: syspath += C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\resources\lib\pyxcoder
12:14:47 T:4576 M:811679744 NOTICE:
12:14:47 T:4576 M:811679744 NOTICE: MythBox: syspath += C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\resources\lib\decorator
12:14:47 T:4576 M:811679744 NOTICE:
12:14:47 T:4576 M:811679744 NOTICE: MythBox: syspath += C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\resources\lib\pyfiglet
12:14:47 T:4576 M:811679744 NOTICE:
12:14:47 T:4576 M:811679744 NOTICE: MythBox: syspath += C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\resources\lib\odict
12:14:47 T:4576 M:811679744 NOTICE:
12:14:47 T:4576 M:811675648 NOTICE: MythBox: syspath += C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\resources\lib\MySQLdb
12:14:47 T:4576 M:811675648 NOTICE:
12:14:47 T:4576 M:811675648 NOTICE: MythBox: syspath += C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\resources\lib\MySQLdb\win32
12:14:47 T:4576 M:811675648 NOTICE:
12:14:47 T:4576 M:808927232 NOTICE: MythBox: loggerIniFile = C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\mythbox_log.ini
12:14:47 T:4576 M:808906752 NOTICE: MythBox: Exception trying to initialize logger: No section: 'formatter_logfileformatter\r\x00\n\x00[handlers]'
12:14:47 T:4576 M:808906752 NOTICE: Traceback (most recent call last):
12:14:47 T:4576 M:808906752 NOTICE: File "C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\default.py", line 93, in ?
12:14:47 T:4576 M:808886272 NOTICE: logging.config.fileConfig(loggerIniFile)
12:14:47 T:4576 M:808886272 NOTICE: File "special:\\xbmc\system\python\python24.zlib\logging\config.py", line 76, in fileConfig
12:14:47 T:4576 M:808910848 NOTICE: File "special:\\xbmc\system\python\python24.zlib\ConfigParser.py", line 241, in options
12:14:47 T:4576 M:808747008 NOTICE: NoSectionError: No section: 'formatter_logfileformatter\r\x00\n\x00[handlers]'
12:14:47 T:4576 M:808747008 NOTICE: None
12:14:47 T:4576 M:808747008 NOTICE:
12:14:51 T:4576 M:805691392 NOTICE: Traceback (most recent call last):
12:14:51 T:4576 M:805687296 NOTICE: File "C:\Documents and Settings\koj\Application Data\XBMC\scripts\MythBox\default.py", line 335, in ?
12:14:51 T:4576 M:806412288 NOTICE:
12:14:51 T:4576 M:806412288 NOTICE: log.exception('Initializing stage 3')
12:14:51 T:4576 M:806412288 NOTICE: AttributeError
12:14:51 T:4576 M:806412288 NOTICE: :
12:14:51 T:4576 M:806412288 NOTICE: 'NoneType' object has no attribute 'exception'
12:14:51 T:4576 M:806412288 NOTICE:
12:14:51 T:4576 M:806412288 ERROR: Scriptresult: Error



- jimjam - 2009-05-08

I fixed the NoSectionError: No section: 'formatter_logfileformatter\r\x00\n\x00[handlers]' by changing the mythbox_log.ini file to unix file format so that line ends use a single <NL> instead of <CR><NL>.


- callen92 - 2009-05-11

Hello,

I just installed mythbox-svn-1062 for XBMC on Windows and I'm happy to say that it finally works for me! There are a few bugs though:

-The channel lineup seems to be off. The channel that I select and the channel I get are different.

-Would it be possible to change channels without having to select from the "Watch TV" screen? In the regular mythfrontend you could do so using the up/down arrows then hitting enter to select.

Otherwise this frontend has made tremendous strides in the past few months. Please let me know what I can do to help out!


- apanloco - 2009-05-11

callen92 Wrote:-The channel lineup seems to be off. The channel that I select and the channel I get are different.

I filed an issue for this a few weeks ago, and as others has reported (in the comments) it's probably an issue with having multiple tuners.

http://code.google.com/p/mythbox/issues/detail?id=23

BR/A


- wallbunny - 2009-05-22

Hi - Can't wait to get this working - unfortunatly it does not support current protocol in svn(45)
Hope you will add support for it soon