• 1
  • 31
  • 32
  • 33(current)
  • 34
  • 35
  • 52
Release Netflix style next up notification
(2016-03-27, 01:16)hemmer83 Wrote:
(2016-03-26, 15:47)Ayla Wrote: Has anyone else experienced that it can be hit and miss if NextUp works?

I'm using the latest version on 16.1, OS X.

I haven't noticed that but I have noticed that nextup has 100% stopped working on my isengard devices.
Reply
I can see multiple errors in my log file with v1.0.16.
On default Confluence skin, Notification works once then stops until a restart of Kodi.

Code:
11:39:25 T:18446744072505538576   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: 'xbmcgui.ControlTextBox' object has no attribute 'setLabel'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.nextup.notification/resources/lib/NextUpInfo.py", line 42, in onInit
                                                self.getControl(3001).setLabel(overview)
                                            AttributeError: 'xbmcgui.ControlTextBox' object has no attribute 'setLabel'
                                            -->End of Python script error report<--
Code:
11:38:49 T:18446744072505538576  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> Exception in Playback Monitor Service: cannot concatenate 'str' and 'int' objects


complete log: http://pastebin.com/bE7f7e1x
Reply
Skin AeonMq6 have isue with this.....
Image

I just change that line 42 in NextUpInfo.py
Code:
self.getControl(3001).setText(overview)

@im85288 please change this in your code....After changes I have all working ok (take dialog from script with all info and art)

Image
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
Same here, with the latest version I lose the thumb, fanart, season and episode number.

Image
Reply
Thanks for the report guys, it's now fixed on GIT and I'll get a new version sent to the kodi repo soon.
Reply
That's fixed it, thanks. Big Grin
Reply
(2016-03-27, 12:00)quantenmechaniker Wrote: I can see multiple errors in my log file with v1.0.16.
On default Confluence skin, Notification works once then stops until a restart of Kodi.

Code:
11:39:25 T:18446744072505538576   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: 'xbmcgui.ControlTextBox' object has no attribute 'setLabel'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.nextup.notification/resources/lib/NextUpInfo.py", line 42, in onInit
                                                self.getControl(3001).setLabel(overview)
                                            AttributeError: 'xbmcgui.ControlTextBox' object has no attribute 'setLabel'
                                            -->End of Python script error report<--
Code:
11:38:49 T:18446744072505538576  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> Exception in Playback Monitor Service: cannot concatenate 'str' and 'int' objects


complete log: http://pastebin.com/bE7f7e1x

I have the same issues showing up in my log. Jarvis, Aeon Nox skin, nextup v1.0.16

are there any thoughts on this?
Reply
(2016-03-28, 14:04)taimaishu Wrote:
(2016-03-27, 12:00)quantenmechaniker Wrote: I can see multiple errors in my log file with v1.0.16.
On default Confluence skin, Notification works once then stops until a restart of Kodi.

Code:
11:39:25 T:18446744072505538576   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: 'xbmcgui.ControlTextBox' object has no attribute 'setLabel'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.nextup.notification/resources/lib/NextUpInfo.py", line 42, in onInit
                                                self.getControl(3001).setLabel(overview)
                                            AttributeError: 'xbmcgui.ControlTextBox' object has no attribute 'setLabel'
                                            -->End of Python script error report<--
Code:
11:38:49 T:18446744072505538576  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> Exception in Playback Monitor Service: cannot concatenate 'str' and 'int' objects


complete log: http://pastebin.com/bE7f7e1x

I have the same issues showing up in my log. Jarvis, Aeon Nox skin, nextup v1.0.16

are there any thoughts on this?

Yes same fix as mentioned above.
Reply
Hello

I'm currently using Kodi 16.0 stable release on my htpc windows 10 x64 computer.
Thats the skin which i'm using
Aeon Madnox [RC1]
http://forum.kodi.tv/showthread.php?tid=230821

I installed the current release 1.017 of this great Script/Plugin

But i get an error after the episode has finished and the next up plugin wants to start the next episode Confused

Sometimes it is working once, and after the first episode the next up notification isn't coming/showing up, or kodi is crashing again Sad


Code
21:02:29 T:5796 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got active player {"id":1,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
21:02:29 T:5796 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Getting details of now playing media
21:02:29 T:5796 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got details of now playing media{"id":1,"jsonrpc":"2.0","result":{"item":{"episode":3,"genre":["Comedy"],"id":2662,"label":"Shopping-Krieg","playcount":0,"season":1,"showtitle":"2 Broke Girls","tvshowid":19,"type":"episode"}}}
21:02:29 T:5796 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got active player {"id":1,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
21:02:29 T:5796 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Getting details of now playing media
21:02:29 T:5796 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got details of now playing media{"id":1,"jsonrpc":"2.0","result":{"item":{"episode":3,"genre":["Comedy"],"id":2662,"label":"Shopping-Krieg","playcount":0,"season":1,"showtitle":"2 Broke Girls","tvshowid":19,"type":"episode"}}}
21:02:29 T:5464 NOTICE: script.tv.show.next.aired: ### TV Show - Next Aired starting GUI proc (6.0.15)
21:02:30 T:4808 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
21:02:37 T:3908 WARNING: Previous line repeats 2 times.
21:02:37 T:3908 ERROR: CPythonInvoker(2, C:\Users\HTPC\AppData\Roaming\Kodi\addons\service.nextup.notification-master\service.py): script didn't stop in 5 seconds - let's kill it
21:02:37 T:5796 WARNING: CPythonInvoker(2, C:\Users\HTPC\AppData\Roaming\Kodi\addons\service.nextup.notification-master\service.py): the python script "C:\Users\HTPC\AppData\Roaming\Kodi\addons\service.nextup.notification-master\service.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmc:Tonguelayer,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon,class PythonBindings::XBMCAddon_xbmcgui_WindowXMLDialog_Director,class PythonBindings::XBMCAddon_xbmcgui_WindowXMLDialog_Director


This is my log file from kodi:
http://pastebin.com/bT3qx4Uw

I reinstalled kodi with 16.1 RC2 Jarvis, skin and plugin and still this crash Sad


Thanks for your help

Greetings
Reply
I'm using version 1.0.17 with artic zephyr which as far as I can tell has the fixed line 42 in Nextupinfo.py and the notification shows once and then fails log below:

Code:
20:13:37 7119.213867 T:1851782208   ERROR: EXCEPTION: Non-Existent Control 3001
20:13:37 7119.216797 T:1851782208   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.RuntimeError'>
                                            Error Contents: Non-Existent Control 3001
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/service.nextup.notification/resources/lib/NextUpInfo.py", line 42, in onInit
                                                self.getControl(3001).setText(overview)
                                            RuntimeError: Non-Existent Control 3001
                                            -->End of Python script error report<--
Reply
also noticed this in the log also:

15:26:12 9185.924805 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : randomunwatchedtime is 600
15:26:12 9185.928711 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : Exception in Playback Monitor Service: cannot concatenate 'str' and 'int' objects
15:26:17 9190.938477 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : playtime is 2803
15:26:17 9190.943359 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : randomunwatchedtime is 600
15:26:17 9190.947266 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : Exception in Playback Monitor Service: cannot concatenate 'str' and 'int' objects
15:26:22 9195.957031 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : playtime is 2803
Reply
(2016-04-02, 23:36)matthewcky2k Wrote: I'm using version 1.0.17 with artic zephyr which as far as I can tell has the fixed line 42 in Nextupinfo.py and the notification shows once and then fails log below:

Can confirm that the current git version will only show the notification/play the next episode once, though I don't believe it has anything to do with the log error quoted. From my own tests, it seems that the scripts gets stuck in a loop in Player.py line 373:

Code:
while xbmc.Player().isPlaying() and not self.nextUpPage.isCancel() and not self.nextUpPage.isWatchNow() and not self.stillWatchingPage.isStillWatching() and not self.stillWatchingPage.isCancel():

When letting the dialog time out and the next episode auto-play, it appears that the script doesn't (always - it occasionally work) catch that brief moment when xbmc.Player().isPlaying() is False. As a workaround, I've edited the onPlaybackEnded function to set the nextUpPage/isStillWatching cancel value to True on lines 438 and 443 respectively - as both have done there job by then it seems like an easy way to break the loop - but look forward to the proper solution Smile

(2016-04-02, 23:59)matthewcky2k Wrote: also noticed this in the log also:

15:26:12 9185.924805 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : randomunwatchedtime is 600
15:26:12 9185.928711 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : Exception in Playback Monitor Service: cannot concatenate 'str' and 'int' objects
15:26:17 9190.938477 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : playtime is 2803
15:26:17 9190.943359 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : randomunwatchedtime is 600
15:26:17 9190.947266 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : Exception in Playback Monitor Service: cannot concatenate 'str' and 'int' objects
15:26:22 9195.957031 T:1767896128 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : playtime is 2803

Can also confirm this issue. It appears to come from line 68 of service.py, specifically

Code:
int(randomunwatchedtime+100))

which should probably be something like

Code:
(int(randomunwatchedtime) + 100)

Thanks for the add-on. I've only recently got round to trying it out (and I'm currently in the middle of skinning it), but it's fast becoming a regularly-used part of our Kodi experience.
Reply
(2016-04-05, 20:49)BobCratchett Wrote:
(2016-04-02, 23:36)matthewcky2k Wrote: I'm using version 1.0.17 with artic zephyr which as far as I can tell has the fixed line 42 in Nextupinfo.py and the notification shows once and then fails log below:

Can confirm that the current git version will only show the notification/play the next episode once, though I don't believe it has anything to do with the log error quoted. From my own tests, it seems that the scripts gets stuck in a loop in Player.py line 373:

Code:
while xbmc.Player().isPlaying() and not self.nextUpPage.isCancel() and not self.nextUpPage.isWatchNow() and not self.stillWatchingPage.isStillWatching() and not self.stillWatchingPage.isCancel():

When letting the dialog time out and the next episode auto-play, it appears that the script doesn't (always - it occasionally work) catch that brief moment when xbmc.Player().isPlaying() is False. As a workaround, I've edited the onPlaybackEnded function to set the nextUpPage/isStillWatching cancel value to True on lines 438 and 443 respectively - as both have done there job by then it seems like an easy way to break the loop - but look forward to the proper solution Smile

what exactly did you alter in those lines? you'll have to forgive me im new to python coding...
Reply
(2016-04-06, 01:19)matthewcky2k Wrote:
BobCratchett Wrote:When letting the dialog time out and the next episode auto-play, it appears that the script doesn't (always - it occasionally work) catch that brief moment when xbmc.Player().isPlaying() is False. As a workaround, I've edited the onPlaybackEnded function to set the nextUpPage/isStillWatching cancel value to True on lines 438 and 443 respectively - as both have done there job by then it seems like an easy way to break the loop - but look forward to the proper solution Smile

what exactly did you alter in those lines? you'll have to forgive me im new to python coding...

I called the setCancel function of the two windows, so the code block starting on line 434 looks as follows:

Code:
if int(self.playedinarow) <= int(playedinarownumber):
    self.nextUpPage.close()
    shouldPlayDefault = not self.nextUpPage.isCancel()
    shouldPlayNonDefault = self.nextUpPage.isWatchNow()
    self.nextUpPage.setCancel( True )
else:
    self.stillWatchingPage.close()
    shouldPlayDefault = self.stillWatchingPage.isStillWatching()
    shouldPlayNonDefault = self.stillWatchingPage.isStillWatching()
    self.stillWatchingPage.setCancel( True )

(If you're new to Python and wanting to try this yourself, remember that indents are important in Python, and the additional lines must have the same indenting (use spaces not tabs, and the same number of spaces) as the lines above them.)
Reply
Thanks that was most helpful I understand now what you ment.
Reply
  • 1
  • 31
  • 32
  • 33(current)
  • 34
  • 35
  • 52

Logout Mark Read Team Forum Stats Members Help
Netflix style next up notification7