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 - CrankyCraig - 2018-03-11

I'm wondering if there's a better way around the slight issue I'm having.

From time to time something will go slightly wrong with Kodi, and I'll need to re-scan the database to correct an anomaly - no big deal. However, when this happens, after the libraries have once again been scanned, I then need to re-select the TV shows in LazyTV, and because I use multiple instances of LazyTV (one for each family member, etc) on multiple clients, this amounts to quite a bit of duplicated work.

Nothing else in the setup is changing, so, is there an easier way to effectively copy the TV shows for LazyTV and it's clones? Or, if it's technically possible, would a new save/upload feature be a useful addition to anyone other than me, perhaps? Just an idea.

Kind regards, Craig.


RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2018-03-13

(2018-03-11, 18:52)CrankyCraig Wrote: is there an easier way to effectively copy the TV shows for LazyTV and it's clones?

Try this: Find the settings.xml file under UserData/AddonData/(?) and copy that file. Once the library is rescanned, copy it back and overwrite the existing one.


RE: LazyTV - an unwatched TV Show playlist generator - Matkins70 - 2018-03-17

Hi, not sure if others have experienced this issue, i havent found any mentions of it. I’m using LazyTV to generate a smart playlist that i then use in my customised skin.
I’ve set LazyTV to sort by Last Watched, which it does in the widget, but the Smart Playlist it generates is sorted by Random 😞

Is there any way to get the Smart Playlist to respect the order i’m after? I guess it might not be a variable you can pass for the sort order, but what if the episodes were written to the playlist in the order specified from LazyTV settings, and then no sort was applied, presumably that would then display in the right order?

Any help appreciated, and also kudos on a great script, has some really handy options!


RE: LazyTV - an unwatched TV Show playlist generator - CrankyCraig - 2018-03-18

(2018-03-13, 23:49)Karnagious Wrote:
(2018-03-11, 18:52)CrankyCraig Wrote: is there an easier way to effectively copy the TV shows for LazyTV and it's clones?

Try this: Find the settings.xml file under UserData/AddonData/(?) and copy that file. Once the library is rescanned, copy it back and overwrite the existing one. 
I appreciate the suggestion Karnagious, but unfortunately this doesn't appear to work. It's almost as if LazyTV records the relative position of the TV shows in the list, as opposed to, for example, the show name. The trouble comes when this list is regenerated. The order of the shows in the list is, in my experience, always different, which results in entirely different shows being selected. For the same reason it doesn't work when copying the settings to other clients. 

Anything else I might try?


RE: LazyTV - an unwatched TV Show playlist generator - AlexVallat - 2018-04-02

LazyTV seems to have stopped working properly for me, and after restarting I get an error prompt to look in the log. The log says:

Code:
13:01:30.619 T:2800538368   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.SyntaxError'>
                                            Error Contents: ('unexpected EOF while parsing', ('<unknown>', 0, 0, ''))
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/script.lazytv/service.py", line 1304, in <module>
                                                Main()
                                              File "/home/osmc/.kodi/addons/script.lazytv/service.py", line 587, in __init__
                                                self._daemon()            #_daemon keeps the monitor alive
                                              File "/home/osmc/.kodi/addons/script.lazytv/service.py", line 617, in _daemon
                                                self._daemon_check()
                                              File "/home/osmc/.kodi/addons/script.lazytv/service.py", line 647, in _daemon_check
                                                offd     = ast.literal_eval(retoff)
                                              File "/usr/lib/python2.7/ast.py", line 49, in literal_eval
                                                node_or_string = parse(node_or_string, mode='eval')
                                              File "/usr/lib/python2.7/ast.py", line 37, in parse
                                                return compile(source, filename, mode, PyCF_ONLY_AST)
                                            SyntaxError: ('unexpected EOF while parsing', ('<unknown>', 0, 0, ''))
                                            -->End of Python script error report<--

Any ideas as to what might be going wrong there?


RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2018-04-03

Do you have any unwatched episodes?


RE: LazyTV - an unwatched TV Show playlist generator - AlexVallat - 2018-04-03

Yes, there should be several unwatched episodes in different shows.


RE: LazyTV - an unwatched TV Show playlist generator - BrianFantana - 2018-06-02

How do I get Lazy TV to generate and maintain a playlist that looks the same as the addon uses? 
When I run the add-on, I see one poster per show (10 shows max), and when clicked, it plays the next episode, perfect!
When I choose the Lazy TV playlist, it shows the next episode from every TV show, but it doesn't sort or limit in the same way as the addon.

If I create a new smart playlist, type TV Shows, with criteria (where playlist is LazyTV) , the output looks like the addon BUT when I click the show, it doesn't play the next episode, it goes to the full episode view.
If I create a new smart playlist, type Episodes, with criteria (where playlist is LazyTV) , the output doesn't look like the addon.

Help


RE: LazyTV - an unwatched TV Show playlist generator - sahara - 2018-07-08

Hi,

I will post this here as well, maybe this is the right topic for it:

https://forum.kodi.tv/showthread.php?tid=254502&pid=2749752#pid2749752

Thanks!


RE: LazyTV - an unwatched TV Show playlist generator - annomatik - 2018-08-07

Hi! I'm trying your plugin today... One quick question. I have 5 Kodi installations with (the same) 4 profiles each. Do I have to change configurations on each of the 5 Kodi installations everytime or is there a way of keeping the Lazy-TV configurations of the 5 Kodis in sync some how?

They are all using one central NAS with one central MySQL DB.

Thanks!


RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2018-08-07

Not in LazyTV itself. That would be a feature of Kodi, not individual addons.


RE: LazyTV - an unwatched TV Show playlist generator - annomatik - 2018-08-07

Thanks. How would I do that in Kodi?


RE: LazyTV - an unwatched TV Show playlist generator - km99 - 2018-11-13

Occasionally, when playing a video, kodi falls back to the menu. This happened this evening and this was in the log:

Code:
18:07:35.200 T:18446744073504561456  NOTICE: CVideoPlayer::CloseFile()
18:07:35.200 T:18446744073504561456  NOTICE: VideoPlayer: waiting for threads to exit
18:07:35.205 T:18446744073058384176  NOTICE: CVideoPlayer::OnExit()
18:07:35.206 T:18446744073058384176  NOTICE: Closing stream player 1
18:07:35.206 T:18446744073058384176  NOTICE: Waiting for audio thread to exit
18:07:35.207 T:18446744072905890096   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
18:07:35.208 T:18446744072905890096  NOTICE: thread end: CVideoPlayerAudio::OnExit()
18:07:35.208 T:18446744073058384176  NOTICE: Closing audio device
18:07:35.209 T:18446744073159362864  NOTICE: Trying to open: 44100 samplerate 12 channelMask 4 encoding
18:07:35.211 T:18446744073058384176  NOTICE: Deleting audio codec
18:07:35.213 T:18446744073058384176  NOTICE: Closing stream player 2
18:07:35.220 T:18446744073002289456   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
18:07:35.221 T:18446744073058384176  NOTICE: waiting for video thread to exit
18:07:35.221 T:18446744073002289456  NOTICE: thread end: video_thread
18:07:35.224 T:18446744073058384176  NOTICE: deleting video codec
18:07:35.231 T:18446744073159362864  NOTICE: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 45312 m_frames: 2832 m_frameSize: 8 channels: 2
18:07:35.366 T:18446744073504561456  NOTICE: VideoPlayer: finished waiting
18:07:35.684 T:18446744073072290096   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('tvshowid',)
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.lazytv/service.py", line 357, in onPlayBackStopped
                                                pre_showid  = Main.nextprompt_info['tvshowid']
                                            KeyError: ('tvshowid',)
                                            -->End of Python script error report<--
18:07:35.715 T:18446744073504561456  NOTICE: CVideoPlayer::CloseFile()
18:07:35.723 T:18446744073504561456  NOTICE: VideoPlayer: waiting for threads to exit
18:07:35.723 T:18446744073504561456  NOTICE: VideoPlayer: finished waiting
18:07:35.724 T:18446744073504561456  NOTICE: CVideoPlayer::CloseFile()
18:07:35.724 T:18446744073504561456  NOTICE: VideoPlayer: waiting for threads to exit
18:07:35.724 T:18446744073504561456  NOTICE: VideoPlayer: finished waiting

Am I right in thinking that it might be a lazytv problem?


RE: LazyTV - an unwatched TV Show playlist generator - Karnagious - 2018-11-14

That shouldn't be affecting playback.


RE: LazyTV - an unwatched TV Show playlist generator - km99 - 2018-11-14

Thanks. I've disabled it for the moment to see if the problem goes away.

Edit: You're right, problem still exists.


This forum uses Lukasz Tkacz MyBB addons.