Work in Progress - LazyTV - an unwatched TV Show playlist generator

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Karnagious Offline
Posting Freak
Posts: 787
Joined: Nov 2012
Reputation: 31
Post: #391
(2015-02-24 00:12)dibsmjf Wrote:  Sorry forgot to paste the log in! Here it is:

Code:
22:10:52 T:4812  NOTICE: Thread LanguageInvoker start, auto delete: false
22:10:52 T:4812  NOTICE: -->Python Interpreter Initialized<--
22:10:52 T:4812 WARNING: CPythonInvoker(7): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
22:10:52 T:6868  NOTICE: script.lazytv : 122347.061000 :: 8.766000 :::  - randos = []
22:10:52 T:6868  NOTICE: script.lazytv : 122347.069000 :: 0.008000 :::  - settings grabbed
22:10:52 T:9480  NOTICE: Thread BackgroundLoader start, auto delete: false
22:10:56 T:4812  NOTICE: LazyTV episode_exporter : 4.092000 :: 4.092000 :::  - export location: C:\Test\
22:10:57 T:4812  NOTICE: LazyTV episode_exporter : 4.446000 :: 0.354000 :::  - get_TVshows_querycomplete
22:10:57 T:4812  NOTICE: LazyTV episode_exporter : 4.450000 :: 0.004000 :::  - get_TVshows_End
22:10:57 T:4812  NOTICE: LazyTV episode_exporter : 4.453000 :: 0.003000 :::  - process_stored_End
22:10:57 T:4812  NOTICE: LazyTV episode_exporter : 4.459000 :: 0.006000 :::  - ['smb://Mother/Media 1/American TV Shows/Archer (2009)/Season 6/Archer (2009) S06E07 Nellis.mkv', "smb://Mother/Media 1/American TV Shows/Bob's Burgers/Season 5/Bob's Burgers S05E06 Father of the Bob.mkv", 'smb://Mother/Media 1/American TV Shows/Arrow/Season 3/Arrow S03E05 The Secret Origin of Felicity Smoak.mkv']
22:10:57 T:4812   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ZeroDivisionError'>
                                            Error Contents: float division by zero
                                            Traceback (most recent call last):
                                              File "C:\Users\Charlie\AppData\Roaming\Kodi\addons\script.lazytv/resources/episode_exporter.py", line 295, in <module>
                                                Main()
                                              File "C:\Users\Charlie\AppData\Roaming\Kodi\addons\script.lazytv/resources/episode_exporter.py", line 248, in Main
                                                prog = running_size / float(sum(sizes))
                                            ZeroDivisionError: float division by zero
                                            -->End of Python script error report<--

(2015-02-18 01:00)Karnagious Wrote:  
(2015-02-17 20:51)dibsmjf Wrote:  Brilliant that's fixed the crash on startup, really appreciate you getting back to me on that one! I'd prefer to have the list of episodes ordered by title so that is perfect for me. I am still getting an error when I run the script to export the media files to another folder, however I am aware that this is probably because I am using a MySQL setup accessing SMB shares - I tried setting up a test local library using local paths and that worked fine. I've posted my log file below, if it is an easy fix that you are willing to look at then that would be great, but no problem if it is a big job, now that I can update LazyTV (and create the playlist) I should be able to use the filenames in the playlist to find and copy the files outside of XBMC.

Thanks, Charlie

Yeah, I suspect the paths are getting screwed up in some way. I cant see the link for the log, but that should indicate how big a fix would be.

For some reason the file sizes arent coming through. Thats not critical, they are only used to move the progress bar.

Change this:

Code:
prog = running_size / float(sum(sizes))

To this:

Code:
prog = 0.5

On line 248 in this file: "C:\Users\Charlie\AppData\Roaming\Kodi\addons\script.lazytv/resources/episode_exporter.py"

That will lock the progress bar at 50%, but will work-around the error
find quote
leejk Offline
Junior Member
Posts: 21
Joined: Feb 2015
Reputation: 0
Post: #392
Hi,

Great addon!! Was exactly what I was searching for. However I am seeing the following error when Kodi starts up. As far as I can tell tho, the addon is working as expected. The error looks a little strange in that Awesome Antartica was a video played with the Earth Touch addon, so not sure why LazyTV would be concerned about that. Is this error cause for concern?

14:56:18 T:3884 NOTICE: script.lazytv : 65.310000 :: 9.357000 ::: - Playbackstarted
14:56:18 T:3884 NOTICE: script.lazytv : 0.027000 :: 0.027000 ::: - this is playing = {u'item': {u'tvshowid': -1, u'episode': 1, u'resume': {u'position': 0, u'total': 0}, u'season': 1, u'label': u'Awesome Antarctica! | Antarctica Ep4', u'playcount': 0, u'type': u'unknown', u'showtitle': u''}}
14:56:18 T:1896 NOTICE: DXVA::CDecoder::Close - closing decoder
14:56:18 T:3884 NOTICE: script.lazytv : 0.034000 :: 0.007000 ::: - fixing istream, data follows...
14:56:18 T:1896 NOTICE: fps: 25.000000, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
14:56:18 T:3884 NOTICE: script.lazytv : 0.042000 :: 0.008000 ::: - show_npid = -1
14:56:18 T:1896 NOTICE: Display resolution DESKTOP : 1920x1080@ 59.94 - Full Screen (16)
14:56:18 T:3884 NOTICE: script.lazytv : 0.051000 :: 0.009000 ::: - showtitle =
14:56:18 T:1896 NOTICE: D3D: rendering method forced to DXVA processor
14:56:18 T:3884 NOTICE: script.lazytv : 0.061000 :: 0.010000 ::: - episode_np = 01
14:56:18 T:3884 NOTICE: script.lazytv : 0.070000 :: 0.009000 ::: - season_np = 01
14:56:18 T:3884 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnboundLocalError'>
Error Contents: local variable 'ep_npid' referenced before assignment
Traceback (most recent call last):
File "C:\Users\leejk\AppData\Roaming\Kodi\addons\script.lazytv\service.py", line 281, in onPlayBackStarted
prevcheck, show_npid, ep_npid = iStream_fix(show_npid,showtitle,episode_np,season_np)
File "C:\Users\leejk\AppData\Roaming\Kodi\addons\script.lazytv\service.py", line 209, in iStream_fix
return False, show_npid, ep_npid
UnboundLocalError: local variable 'ep_npid' referenced before assignment
-->End of Python script error report<--
(This post was last modified: 2015-02-26 23:04 by leejk.)
find quote
Karnagious Offline
Posting Freak
Posts: 787
Joined: Nov 2012
Reputation: 31
Post: #393
Thanks,

LazyTV is looking for the episode in the library; the error is because it cant find it.

I dont think it breaks the program, it just posts that Script Error notification.
find quote
Post Reply