Kodi Community Forum
Release LazyTV - an unwatched TV Show playlist generator - 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 LazyTV - an unwatched TV Show playlist generator (/showthread.php?tid=170975)



RE: LazyTV - an unwatched TV Show playlist generator - onlyyou - 2015-02-20

(2015-02-17, 01:50)Karnagious Wrote:
(2015-02-16, 16:04)onlyyou Wrote: I have a question. Can this addon manage returning (already watched previous episodes) and new (as totally new) TV show.
I would love a list composed with both (it can be orderer with the last watched date and new with imported date)
many thanks
great addon

Cant at the moment, but the plan was always to eventually allow this.There is a way to get what you want, but not through LazyTV gui or random player.

LazyTV can create a smart playlist of the next-to-watch unwatched shows (check the settings to turn on this option). You could then combine that playlist with a different one that plays repeats from other seasons and then randomise the order.

many thx for this, let's try this this week end !


RE: LazyTV - an unwatched TV Show playlist generator - dibsmjf - 2015-02-24

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.



RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2015-02-24

(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


RE: LazyTV - an unwatched TV Show playlist generator - leejk - 2015-02-26

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 : [email protected] 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<--


RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2015-02-27

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.


RE: LazyTV - an unwatched TV Show playlist generator - leejk - 2015-03-03

Ok, sounds good. One more item i can't seem to figure out... how do you skip to the next show in the random list? I can't seem to find the right keyboard shortcut.


RE: LazyTV - an unwatched TV Show playlist generator - leejk - 2015-03-08

Hi,

I'm seeing some pretty verbose errors in the logs at around line 301: http://goo.gl/MJxntJ

Any thoughts on what's wrong?

thx


RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2015-03-09

For some reason your library is not accessible. It is affecting service.skin.widgets\default.py as well.


RE: LazyTV - an unwatched TV Show playlist generator - leejk - 2015-03-09

Ok, I think I know what it possibly could be. The libraries are on a server, and the server may be going to sleep. I'll try setting up the server to not put disks to sleep and see if that helps.

thx


RE: LazyTV - an unwatched TV Show playlist generator - leejk - 2015-03-10

I changed the sleep setting on the server, but I still have some problems with LazyTV. On several occasions it appears to have caused Kodi to crash on startup: http://goo.gl/V5MmOa

Now recently I had to change my TV library, so that all of the videos now have different names than before. Could that be an issue?

thx


RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2015-03-10

I dont believe it is to do with anything LazyTV is doing. LazyTV is simply trying to access the library via a json request. This is a very commonly performed task.

http://forum.kodi.tv/showthread.php?tid=204647&page=17

I think you should follow up this error in a different part of the forum as it seems related to your database set up more than anything else.


RE: LazyTV - an unwatched TV Show playlist generator - mjbxx - 2015-03-12

New to LazyTV and really liking it. I notice when an episode is watched that it does not advance to the next show in the interface. I have to either exit/enter the addon or select the "Refresh List" in the context menu to get to the next unwatched show. Am I missing something or possibly this is something LazyTV can not do at this time?


RE: LazyTV - an unwatched TV Show playlist generator - IDontExist - 2015-03-17

(2015-03-12, 20:12)mjbxx Wrote: New to LazyTV and really liking it. I notice when an episode is watched that it does not advance to the next show in the interface. I have to either exit/enter the addon or select the "Refresh List" in the context menu to get to the next unwatched show. Am I missing something or possibly this is something LazyTV can not do at this time?

I've had this same problem with v14 running on both an AppleTV2 and an Amazon Fire TV, but the add-on is so amazing that I've just gotten used to it Smile


RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2015-03-17

(2015-03-17, 02:19)IDontExist Wrote:
(2015-03-12, 20:12)mjbxx Wrote: New to LazyTV and really liking it. I notice when an episode is watched that it does not advance to the next show in the interface. I have to either exit/enter the addon or select the "Refresh List" in the context menu to get to the next unwatched show. Am I missing something or possibly this is something LazyTV can not do at this time?

I've had this same problem with v14 running on both an AppleTV2 and an Amazon Fire TV, but the add-on is so amazing that I've just gotten used to it Smile

It isnt able to do it now. But the next version (which is a long time coming) will handle refreshing better.


RE: LazyTV - an unwatched TV Show playlist generator - IDontExist - 2015-03-17

(2015-03-17, 02:44)Karnagious Wrote:
(2015-03-17, 02:19)IDontExist Wrote:
(2015-03-12, 20:12)mjbxx Wrote: New to LazyTV and really liking it. I notice when an episode is watched that it does not advance to the next show in the interface. I have to either exit/enter the addon or select the "Refresh List" in the context menu to get to the next unwatched show. Am I missing something or possibly this is something LazyTV can not do at this time?

I've had this same problem with v14 running on both an AppleTV2 and an Amazon Fire TV, but the add-on is so amazing that I've just gotten used to it Smile

It isnt able to do it now. But the next version (which is a long time coming) will handle refreshing better.

Sounds great, can't wait!

Also, I just tried to clone LazyTV on my AFTV, and got the following error message:

"An error occurred while creating the clone. Operation cancelled"

I never tried this on my ATV, so I'm not sure if this is something AFTV-related or not...


This forum uses Lukasz Tkacz MyBB addons.