Thread Closed
[OLD/CLOSED] PseudoTV Live - Set-Top box solution
(2013-12-19, 11:32)Lunatixz Wrote:
(2013-12-19, 11:20)danz0l Wrote: OK i cant get this to work. If i use live streams it works perfectly but if i create a TV chanel based on Network from my current library, it starts to configure the channel on load, starts to populate it and then black screens and goes no further. I really dont understand the problem as Psuedo TV works flawlessly and i'm doing nothing different than i would using that plugin.

I've tried deleting all settings files etc and as soon as I create a channel based on Network it does the very same thing. Any ideas ?

I enabled debug but that shows little info on what the problem may be

Heres a snippet from the only log entries that may be causing issue

Code:
19:54:11 T:1820277616  NOTICE: http://www.google-analytics.com/__utm.gif?utmp=PTVL%2F940124634%2FVersion%3A0.2.2%2FSkin%3Adefault&utmac=UA-45979766-1&utmwv=5.2.2d&utmcc=__utma%3D1.940124634.1.1.1.1%3B&utmn=2957500153
19:54:12 T:1820277616  NOTICE: Pragma: no-cache
                                            Expires: Wed, 19 Apr 2000 11:43:00 GMT
                                            Last-Modified: Wed, 21 Jan 2004 19:51:30 GMT
                                            X-Content-Type-Options: nosniff
                                            Content-Type: image/gif
                                            Date: Wed, 18 Dec 2013 13:43:08 GMT
                                            Server: Golfe2
                                            Content-Length: 35
                                            Cache-Control: private, no-cache, no-cache=Set-Cookie, proxy-revalidate
                                            Age: 22262
                                            Alternate-Protocol: 80:quic
                                            Connection: close
19:54:13 T:1820277616   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: VideoParser instance has no attribute 'mountedFS'
                                            Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/Overlay.py", line 207, in onInit
                                                if self.readConfig() == False:
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/Overlay.py", line 349, in readConfig
                                                self.channels = self.channelList.setupList()
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/ChannelList.py", line 149, in setupList
                                                self.setupChannel(i + 1, False, True, False)
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/ChannelList.py", line 438, in setupChannel
                                                if self.makeChannelList(channel, chtype, chsetting1, chsetting2, chsetting3, chsetting4, append) == True:
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/ChannelList.py", line 742, in makeChannelList
                                                fileList = self.buildFileList(fle, channel)
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/ChannelList.py", line 1672, in buildFileList
                                                dur = self.videoParser.getVideoLength(uni(match.group(1)).replace("\\\\", "\\"))
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/VideoParser.py", line 69, in getVideoLength
                                                filename = self.handleSMB(filename)
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/VideoParser.py", line 101, in handleSMB
                                                return self.mountPosixSMB(newfilename)
                                              File "/home/xbmc/.xbmc/addons/script.pseudotv.live-master/resources/lib/VideoParser.py", line 110, in mountPosixSMB
                                                if self.mountedFS == True:
                                            AttributeError: VideoParser instance has no attribute 'mountedFS'
                                            -->End of Python script error report<--

Can I get a full log?



I have a fix for this. There is an uninitialized variable. If you add self.mountedFS to the def __init__ it works.

Code:
diff --git a/resources/lib/VideoParser.py b/resources/lib/VideoParser.py
index ae8d6fc..63fa9a1 100644
--- a/resources/lib/VideoParser.py
+++ b/resources/lib/VideoParser.py
@@ -43,6 +43,7 @@ class VideoParser:
         self.MKVExts = ['.mkv']
         self.FLVExts = ['.flv']
         self.TSExts  = ['.ts', '.m2ts']
+        self.mountedFS = False


     def log(self, msg, level = xbmc.LOGDEBUG):
  Thread Closed
 
Thread Rating:
  • 45 Vote(s) - 4.29 Average


Messages In This Thread
RE: [FORK] - by jcaa6479 - 2013-07-16, 23:25
Re: RE: - by bry - 2013-07-19, 08:42
Audio Muting Consistently ? - by gjwAudio - 2013-08-18, 08:25
PTVL Anomalies... - by gjwAudio - 2013-08-25, 01:15
Help Find The BAD Channel... - by gjwAudio - 2013-08-27, 02:12
RE: - by DLWhittet - 2013-10-13, 02:48
Problems with Pseudo TV Live - by media-mogul - 2013-11-07, 22:45
Setup wifi cam stream - by rebelmaveric19 - 2013-12-12, 00:54
RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - by yolan - 2013-12-19, 17:19
Black Screen - by Antisthenes - 2014-03-03, 02:06