Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No notification pop-up appears with Venom #134

Open
ShaVerZ opened this issue Dec 10, 2019 · 71 comments
Open

No notification pop-up appears with Venom #134

ShaVerZ opened this issue Dec 10, 2019 · 71 comments
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@ShaVerZ
Copy link

ShaVerZ commented Dec 10, 2019

FireTV Box (gen.2) 4k
Kodi 18.5
Up Next 1.0.7 (Latest)

No notification popup and it seems to have stopped going on to the next episode. The playlist seems to be created within the addon, when viewing the playlist manager.

I couldnt find the exact information you required but the .log link is;

https://pastebin.com/GPvBYptu

I hope this helps and that I've provided what you need.

@dagwieers
Copy link
Collaborator

Ok, so it appears we did not get any information from the add-on. I would have expected something like this in the logs:

2019-12-10 13:42:44.090 T:1655604096  NOTICE: [service.upnext] Api -> addon_data_received called with data {u'play_info': {u'video_id': u'vid-e16b0168-5ab7-455d-a00f-18985bb3d4a7'}, u'next_episode': {u'rating': None, u'tvshowid': u'622902452527', u'episode': 2, u'title': u'Haar klasgenoten nemen Caro niet serieus', u'season': 1, u'plot': u'[COLOR blue][B]8 more months[/B] available[/COLOR]\n\nEen aantal weken zijn verstreken en Caro heeft langzaam maar zeker de weg op haar nieuwe school gevonden. Yemi en Kyona zijn twee goeie vrienden geworden maar er is iets dat ze desondanks nog steeds voor iedereen achterhoudt.\n\xa0\nAan de hand van haar po\xebzieopdracht voor de les Nederlands probeert ze haar klas op de hoogte te brengen van de situatie thuis. Helaas wordt haar gedicht niet door iedereen serieus genomen en zet Caro het op een lopen.\n\n[COLOR yellow]vrtnu.be/p.6wAOQBler[/COLOR]', u'episodeid': u'622899164527', u'firstaired': u'2019-08-01', u'art': {u'tvshow.fanart': u'https://images.vrt.be/orig/2019/01/07/cd9c3144-12a5-11e9-abcc-02b7b76bf47f.jpg', u'thumb': u'https://images.vrt.be/orig/2019/01/15/2ea66322-18a4-11e9-abcc-02b7b76bf47f.jpg', u'tvshow.clearart': None, u'tvshow.landscape': u'https://images.vrt.be/orig/2019/01/15/2ea66322-18a4-11e9-abcc-02b7b76bf47f.jpg', u'tvshow.poster': u'https://images.vrt.be/orig/2019/01/15/2ea66322-18a4-11e9-abcc-02b7b76bf47f.jpg', u'tvshow.clearlogo': None}, u'playcount': None, u'runtime': 1560, u'showtitle': u'#LikeMe'}, 'id': u'plugin.video.vrt.nu_play_action', u'current_episode': {u'rating': 0.0, u'tvshowid': u'622902452527', u'episode': 1, u'title': u'Caroline moet naar een nieuwe school', u'season': 1, u'plot': u"[COLOR blue][B]8 more months[/B] available[/COLOR]\n\n1 september, de aanvang van een nieuw schooljaar. En dat is het zeker voor nieuweling Caroline Timmers die haar eerste dag start op een, voor haar, compleet onbekende school. \n\xa0\nDoor de ziekte van Caro's moeder Kristel moest haar gezin noodgedwongen verhuizen van hun woonplaats in de Ardennen naar Antwerpen. Een serieuze verandering voor de jonge meid die letterlijk alles heeft moeten achterlaten. \n\xa0\nDat het de overgang niet van een leien dakje zal lopen, wordt al gauw duidelijk.\n\n[COLOR yellow]vrtnu.be/p.9q1okYWGJ[/COLOR]", u'episodeid': u'622899157527', u'firstaired': u'2019-08-01', u'art': {u'tvshow.fanart': u'https://images.vrt.be/orig/2019/01/07/cd9c3144-12a5-11e9-abcc-02b7b76bf47f.jpg', u'thumb': u'https://images.vrt.be/orig/2019/01/07/fbc7b11b-12a6-11e9-abcc-02b7b76bf47f.jpg', u'tvshow.clearart': None, u'tvshow.landscape': u'https://images.vrt.be/orig/2019/01/07/fbc7b11b-12a6-11e9-abcc-02b7b76bf47f.jpg', u'tvshow.poster': u'https://images.vrt.be/orig/2019/01/07/fbc7b11b-12a6-11e9-abcc-02b7b76bf47f.jpg', u'tvshow.clearlogo': None}, u'playcount': 9, u'runtime': 1560.0001220703125, u'showtitle': u'#LikeMe'}}

If UpNext doesn't get any information from the add-on, it will not show a pop-up.

This issue has been reported now a few times, and it was reported it worked with v1.0.1, but not with v1.0.2 or newer. Given that the only changes to v1.0.2 are related to:

  • JSONRPC abstraction (low impact)
  • Playlist handling (high impact)
  • Add endtime property (low impact)

So I would need to know what the add-on is sending, and why we aren't receiving it.
cc @venom123

PS Mind you that a few times now it was suggested this was related to UpNext no longer using Addon Signals, but that is incorrect. Even v1.0.1 is not using Addon Signals, it was removed earlier (39d3661) in v.0.0.9. The issue related to Addon Signals switching from hex to base64 encoding has been dealt with in the v1.0.7 release. (older versions of UpNext should work fine with older versions of Addon Signals though)

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 10, 2019

I've tried other versions and just gone back to 1.0.1 and still no popup and not moving to next episode.

v1.0.1 log;

https://pastebin.com/AZ1uxBm7

@dagwieers
Copy link
Collaborator

So what ought to work

  • Up Next v1.0.6 and older with Addon Signals v0.0.3 and older
  • Up Next v1.0.7 (any Addon Signals version)

But what will definitely not work is Up Next v1.0.6 or older together with Addon Signals v0.0.4 (latest).

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 10, 2019

Not quite sure what you mean but 1.0.7 doesn't work with any version of Addon Signals (latest).

I'm probably not understanding what you mean.

@dagwieers
Copy link
Collaborator

dagwieers commented Dec 10, 2019

Addon Signals v0.0.3 uses hex encoding.
Addon Signals v0.0.4 uses base64 encoding.

Up Next v1.06 and older uses hex encoding.
Up Next v1.0.7 and newer supports both base64 and hex encoding.

So if you test anything but v1.0.7, you have to use Addon Signals v.0.0.3 otherwise it is guaranteed to not work and we haven't established anything but that.

In other words, the tests you did before using older versions of Up Next don't prove anything unless you also used an older version of Addon Signals.

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 10, 2019

I was using 1.0.7 when I reported this.....

Thanks for your help though, much appreciated. Probably best I leave it.....

@dagwieers
Copy link
Collaborator

Not quite sure what you mean but 1.0.7 doesn't work with any version of Addon Signals (latest).

Up Next v1.0.7 works with e.g. the Netflix add-on which is using Addon Signals v0.0.4, so it does work fine (and I am using it daily). We also have integration tests testing Addon Signals v0.0.4 with Up Next to ensure they are compatible. So no issues there. The reported problem here seems to be specific to the implementation of Venom and Seren.

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 10, 2019

Ah right, I understand. I thought you meant I should try 1.0.7 ensuring Addon Signals 0.0.4, that's where the confusion lay. I thought you meant it should work with that combination whilst using Seren/Venom.

It does seem to work with old versions of Kodi though.....

Thanks again.

@dagwieers
Copy link
Collaborator

dagwieers commented Dec 10, 2019

@ShaVerZ Well, it should work for Venom and Seren, but it clearly doesn't. We haven't established the reason for this. I was told it stopped working even with v1.0.2 up to v1.0.6, which would indicate an issue with any of these changes: https://github.com/im85288/service.upnext/compare/1.0.1..1.0.2

But I am not sure if the tests were executed with the correct Addon Signals v0.0.3, so not clear if we can make that conclusion.

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 10, 2019

If theres anything you want me to try, let me know, I have a few spare FireTV boxes which are not in use. I'm happy to test certain setups if you wish.....

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 11, 2019

Well, it's working now. I had to drop back to Kodi 18.2 though, no idea why it seems fine with 18.2 but nothing higher..... thought it was worth mentioning.

@dagwieers
Copy link
Collaborator

So using Kodi 18.2 and what version of UpNext and AddonSignals?

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 11, 2019

I'm not currently home but I could only get 0.1.8 working. v1.0.1 and up didnt. Im assuming it is addon Signals v0.0.3 but I'll need to check when I'm home.

@dagwieers
Copy link
Collaborator

Looking at the Venom code I see various reasons why it would fail:
https://github.com/123Venom/plugin.video.venom/blob/84edfdb37ecd785b5f0dac472f859c45d0c94fa2/resources/lib/modules/player.py#L347-L370

Apart from the fact that control.playlist.getposition() and self.mediatype may interfere with normal operation, the broad try-blocks may cause things not completing as expected.

Proper python code should not be using broad excepts, and I would suggest that Venom uses tox and pylint for testing for common python issues. Something that worked before could suddenly fail because of changes in behaviour that was not accounted for. Especially Python is susceptible for this. cc @123Venom

That said, I don't know if this is the reason for Up Next not working. Adding more log-statements that would give information on what is going on would be helpful as well. Now I don't see any logging from Venom in the logs. Did it ever send out the notification? I wouldn't know.

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 11, 2019

I got back earlier and noticed it wasnt working, I've tried a combination of installs and none seem to work, I can only assume that Venom has received an update at some point and it has stopped up next working. It doesnt matter which combination you use re: Add on Signals.

I could go back and try older versions of Venom but tbh, I cant be assed today ;)

@dagwieers
Copy link
Collaborator

IMO it is better to wait for the developer @123Venom to troubleshoot Venom.

@123Venom
Copy link

ok I've been looking at this and I'm stumped how I can run v1.0.1 of UpNext without a single issue but both Seren and Venom suffer the same exact problem beyond v1.0.1 with no UpNext notification showing up. I just tried v1.0.7 and logged this 2019-12-12 03:22:30.045 T:7332 NOTICE: [service.upnext] Api -> addon_data_received called with data {u'play_info': {u'item_id': 2244839}, u'next_episode': {u'rating': u'7.5', u'tvshowid': u'80379', u'art': {u'tvshow.fanart': u'https://thetvdb.com/banners/fanart/original/80379-34.jpg', u'thumb': u'https://thetvdb.com/banners/episodes/80379/5714255.jpg', u'tvshow.clearart': u'https://assets.fanart.tv/fanart/tv/80379/hdclearart/the-big-bang-theory-519818ab2d8a9.png', u'tvshow.landscape': u'https://thetvdb.com/banners/fanart/original/80379-34.jpg', u'tvshow.poster': u'https://thetvdb.com/banners/posters/80379-18.jpg', u'tvshow.clearlogo': u'https://assets.fanart.tv/fanart/tv/80379/hdtvlogo/the-big-bang-theory-50477a642f672.png'}, u'plot': u'The Air Force shows interest in the guidance system and Penny lets it slip at work that Bernadette is expecting.', u'season': u'10', u'title': u'The Military Miniaturization', u'episodeid': 2267810, u'tvshowimdb': u'tt0898266', u'firstaired': u'2007', u'year': u'2016', u'episode': u'2', u'playcount': 0, u'showtitle': u'The Big Bang Theory'}, u'notification_time': 60, 'id': u'plugin.video.venom_play_action', u'current_episode': {u'rating': u'7.6', u'tvshowid': u'80379', u'art': {u'tvshow.fanart': u'https://thetvdb.com/banners/fanart/original/80379-34.jpg', u'thumb': u'https://thetvdb.com/banners/episodes/80379/5654968.jpg', u'tvshow.clearart': u'https://assets.fanart.tv/fanart/tv/80379/hdclearart/the-big-bang-theory-519818ab2d8a9.png', u'tvshow.landscape': u'https://thetvdb.com/banners/fanart/original/80379-34.jpg', u'tvshow.poster': u'https://thetvdb.com/banners/posters/80379-18.jpg', u'tvshow.clearlogo': u'https://assets.fanart.tv/fanart/tv/80379/hdtvlogo/the-big-bang-theory-50477a642f672.png'}, u'plot': u"After Leonard's father, Alfred and Sheldon's mother, Mary share an evening together, everyone deals with an awkward morning the following day. Also, Penny's family arrives for the ceremony, including her anxiety-ridden mother, Susan, and her drug dealing brother, Randall.", u'season': u'10', u'title': u'The Conjugal Conjecture', u'episodeid': 2244839, u'firstaired': u'2007', u'episode': u'1', u'playcount': 0, u'showtitle': u'The Big Bang Theory'}} 2019-12-12 03:22:35.055 T:10360 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer 2019-12-12 03:23:35.179 T:7332 WARNING: Previous line repeats 1 times. 2019-12-12 03:23:35.179 T:7332 NOTICE: [service.upnext] Monitor -> Calling autoplayback totaltime - playtime is 48.3489990234 2019-12-12 03:23:35.195 T:7332 NOTICE: [service.upnext] Api -> Got details of next playlist item {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'items': [{u'plot': u'The Air Force shows interest in the guidance system and Penny lets it slip at work that Bernadette is expecting.', u'tvshowid': -1, u'dateadded': u'', u'episode': 2, u'rating': 7.5, u'season': 10, u'lastplayed': u'', u'resume': {u'position': 0.0, u'total': 0.0}, u'label': u'10x02 . The Military Miniaturization', u'writer': [u'Chuck Lorre', u'Eric Kaplan', u'Jim Reynolds', u'Maria Ferrari', u'Steve Holland', u'Steven Molaro'], u'firstaired': u'', u'title': u'The Military Miniaturization', u'file': u'plugin://plugin.video.venom/?action=play&title=The+Military+Miniaturization&year=2007&imdb=tt0898266&tvdb=80379&season=10&episode=2&tvshowtitle=The+Big+Bang+Theory&premiered=2016-09-26&meta=%7B%22rating%22%3A+%227.5%22%2C+%22poster2%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Ftvposter%2Fthe-big-bang-theory-5214251a5b671.jpg%22%2C+%22imdb%22%3A+%22tt0898266%22%2C+%22year%22%3A+%222016%22%2C+%22duration%22%3A+%221500%22%2C+%22landscape%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Ftvthumb%2FT_80379+%280%29.jpg%22%2C+%22plot%22%3A+%22The+Air+Force+shows+interest+in+the+guidance+system+and+Penny+lets+it+slip+at+work+that+Bernadette+is+expecting.%22%2C+%22votes%22%3A+%2241886%22%2C+%22castandart%22%3A+%5B%7B%22role%22%3A+%22Sheldon+Cooper%22%2C+%22name%22%3A+%22Jim+Parsons%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325467.jpg%22%7D%2C+%7B%22role%22%3A+%22Leonard+Hofstadter%22%2C+%22name%22%3A+%22Johnny+Galecki%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325466.jpg%22%7D%2C+%7B%22role%22%3A+%22Penny%22%2C+%22name%22%3A+%22Kaley+Cuoco%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325465.jpg%22%7D%2C+%7B%22role%22%3A+%22Rajesh+Koothrappali%22%2C+%22name%22%3A+%22Kunal+Nayyar%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325463.jpg%22%7D%2C+%7B%22role%22%3A+%22Howard+Wolowitz%22%2C+%22name%22%3A+%22Simon+Helberg%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325464.jpg%22%7D%2C+%7B%22role%22%3A+%22Bernadette+Rostenkowski%22%2C+%22name%22%3A+%22Melissa+Rauch%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325462.jpg%22%7D%2C+%7B%22role%22%3A+%22Amy+Farrah+Fowler%22%2C+%22name%22%3A+%22Mayim+Bialik%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325461.jpg%22%7D%2C+%7B%22role%22%3A+%22Emily+Sweeney%22%2C+%22name%22%3A+%22Laura+Spencer%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F358188.jpg%22%7D%2C+%7B%22role%22%3A+%22Leslie+Winkle%22%2C+%22name%22%3A+%22Sara+Gilbert%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F378343.jpg%22%7D%2C+%7B%22role%22%3A+%22Stuart+Bloom%22%2C+%22name%22%3A+%22Kevin+Sussman%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F378344.jpg%22%7D%2C+%7B%22role%22%3A+%22Barry+Kripke%22%2C+%22name%22%3A+%22John+Ross+Bowie%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F382566.jpg%22%7D%2C+%7B%22role%22%3A+%22Debbie+Wolowitz%22%2C+%22name%22%3A+%22Carol+Ann+Susi%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F403186.jpg%22%7D%5D%2C+%22title%22%3A+%22The+Military+Miniaturization%22%2C+%22tvdb%22%3A+%2280379%22%2C+%22mpaa%22%3A+%22TV-14%22%2C+%22writer%22%3A+%22Chuck+Lorre+%2F+Eric+Kaplan+%2F+Jim+Reynolds+%2F+Maria+Ferrari+%2F+Steve+Holland+%2F+Steven+Molaro%22%2C+%22label%22%3A+%22The+Military+Miniaturization%22%2C+%22episodeIDS%22%3A+%7B%22tvdb%22%3A+5714255%2C+%22tmdb%22%3A+1221932%2C+%22imdb%22%3A+%22tt5973910%22%2C+%22tvrage%22%3A+0%2C+%22trakt%22%3A+2267810%7D%2C+%22season%22%3A+%2210%22%2C+%22banner2%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Ftvbanner%2Fthe-big-bang-theory-52db1f74e2bee.jpg%22%2C+%22tvshowyear%22%3A+%222007%22%2C+%22fanart2%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Fshowbackground%2Fthe-big-bang-theory-561e3c3dbc1ea.jpg%22%2C+%22status%22%3A+%22Ended%22%2C+%22extended%22%3A+true%2C+%22poster%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Fposters%2F80379-18.jpg%22%2C+%22tvshowtitle%22%3A+%22The+Big+Bang+Theory%22%2C+%22mediatype%22%3A+%22episode%22%2C+%22studio%22%3A+%22CBS%22%2C+%22genre%22%3A+%22Comedy%22%2C+%22banner%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Fgraphical%2F80379-g13.jpg%22%2C+%22clearart%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Fhdclearart%2Fthe-big-bang-theory-519818ab2d8a9.png%22%2C+%22thumb%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Fepisodes%2F80379%2F5714255.jpg%22%2C+%22episode%22%3A+%222%22%2C+%22metacache%22%3A+true%2C+%22overlay%22%3A+6%2C+%22premiered%22%3A+%222016-09-26%22%2C+%22clearlogo%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Fhdtvlogo%2Fthe-big-bang-theory-50477a642f672.png%22%2C+%22fanart%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Ffanart%2Foriginal%2F80379-34.jpg%22%2C+%22season_poster%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Fposters%2F80379-18.jpg%22%2C+%22playcount%22%3A+0%2C+%22seasoncount%22%3A+24%2C+%22trailer%22%3A+%22plugin%3A%2F%2Fplugin.video.venom%2F%3Faction%3Dtrailer%26name%3DThe%2BBig%2BBang%2BTheory%26imdb%3Dtt0898266%22%7D&t=20191212032118292000', u'art': {u'season.poster': u'image://https%3a%2f%2fthetvdb.com%2fbanners%2fposters%2f80379-18.jpg/', u'fanart': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2fshowbackground%2fthe-big-bang-theory-561e3c3dbc1ea.jpg/', u'poster': u'image://https%3a%2f%2fthetvdb.com%2fbanners%2fposters%2f80379-18.jpg/', u'clearlogo': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2fhdtvlogo%2fthe-big-bang-theory-50477a642f672.png/', u'clearart': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2fhdclearart%2fthe-big-bang-theory-519818ab2d8a9.png/', u'tvshow.poster': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2ftvposter%2fthe-big-bang-theory-5214251a5b671.jpg/', u'banner': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2ftvbanner%2fthe-big-bang-theory-52db1f74e2bee.jpg/', u'landscape': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2ftvthumb%2fT_80379%20(0).jpg/', u'thumb': u'image://https%3a%2f%2fthetvdb.com%2fbanners%2fepisodes%2f80379%2f5714255.jpg/'}, u'playcount': 0, u'runtime': 1500, u'type': u'episode', u'showtitle': u'The Big Bang Theory', u'streamdetails': {u'video': [{u'language': u'', u'stereomode': u'', u'width': 0, u'codec': u'h264', u'aspect': 0.0, u'duration': 0, u'height': 0}], u'audio': [], u'subtitle': []}}], u'limits': {u'start': 1, u'total': 24, u'end': 2}}} 2019-12-12 03:23:35.195 T:7332 NOTICE: [service.upnext] PlaybackManager -> episode details {u'plot': u'The Air Force shows interest in the guidance system and Penny lets it slip at work that Bernadette is expecting.', u'tvshowid': -1, u'dateadded': u'', u'episode': 2, u'rating': 7.5, u'season': 10, u'lastplayed': u'', u'episodeid': None, u'resume': {u'position': 0.0, u'total': 0.0}, u'label': u'10x02 . The Military Miniaturization', u'writer': [u'Chuck Lorre', u'Eric Kaplan', u'Jim Reynolds', u'Maria Ferrari', u'Steve Holland', u'Steven Molaro'], u'firstaired': u'', u'title': u'The Military Miniaturization', u'file': u'plugin://plugin.video.venom/?action=play&title=The+Military+Miniaturization&year=2007&imdb=tt0898266&tvdb=80379&season=10&episode=2&tvshowtitle=The+Big+Bang+Theory&premiered=2016-09-26&meta=%7B%22rating%22%3A+%227.5%22%2C+%22poster2%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Ftvposter%2Fthe-big-bang-theory-5214251a5b671.jpg%22%2C+%22imdb%22%3A+%22tt0898266%22%2C+%22year%22%3A+%222016%22%2C+%22duration%22%3A+%221500%22%2C+%22landscape%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Ftvthumb%2FT_80379+%280%29.jpg%22%2C+%22plot%22%3A+%22The+Air+Force+shows+interest+in+the+guidance+system+and+Penny+lets+it+slip+at+work+that+Bernadette+is+expecting.%22%2C+%22votes%22%3A+%2241886%22%2C+%22castandart%22%3A+%5B%7B%22role%22%3A+%22Sheldon+Cooper%22%2C+%22name%22%3A+%22Jim+Parsons%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325467.jpg%22%7D%2C+%7B%22role%22%3A+%22Leonard+Hofstadter%22%2C+%22name%22%3A+%22Johnny+Galecki%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325466.jpg%22%7D%2C+%7B%22role%22%3A+%22Penny%22%2C+%22name%22%3A+%22Kaley+Cuoco%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325465.jpg%22%7D%2C+%7B%22role%22%3A+%22Rajesh+Koothrappali%22%2C+%22name%22%3A+%22Kunal+Nayyar%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325463.jpg%22%7D%2C+%7B%22role%22%3A+%22Howard+Wolowitz%22%2C+%22name%22%3A+%22Simon+Helberg%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325464.jpg%22%7D%2C+%7B%22role%22%3A+%22Bernadette+Rostenkowski%22%2C+%22name%22%3A+%22Melissa+Rauch%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325462.jpg%22%7D%2C+%7B%22role%22%3A+%22Amy+Farrah+Fowler%22%2C+%22name%22%3A+%22Mayim+Bialik%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F325461.jpg%22%7D%2C+%7B%22role%22%3A+%22Emily+Sweeney%22%2C+%22name%22%3A+%22Laura+Spencer%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F358188.jpg%22%7D%2C+%7B%22role%22%3A+%22Leslie+Winkle%22%2C+%22name%22%3A+%22Sara+Gilbert%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F378343.jpg%22%7D%2C+%7B%22role%22%3A+%22Stuart+Bloom%22%2C+%22name%22%3A+%22Kevin+Sussman%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F378344.jpg%22%7D%2C+%7B%22role%22%3A+%22Barry+Kripke%22%2C+%22name%22%3A+%22John+Ross+Bowie%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F382566.jpg%22%7D%2C+%7B%22role%22%3A+%22Debbie+Wolowitz%22%2C+%22name%22%3A+%22Carol+Ann+Susi%22%2C+%22thumbnail%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Factors%2F403186.jpg%22%7D%5D%2C+%22title%22%3A+%22The+Military+Miniaturization%22%2C+%22tvdb%22%3A+%2280379%22%2C+%22mpaa%22%3A+%22TV-14%22%2C+%22writer%22%3A+%22Chuck+Lorre+%2F+Eric+Kaplan+%2F+Jim+Reynolds+%2F+Maria+Ferrari+%2F+Steve+Holland+%2F+Steven+Molaro%22%2C+%22label%22%3A+%22The+Military+Miniaturization%22%2C+%22episodeIDS%22%3A+%7B%22tvdb%22%3A+5714255%2C+%22tmdb%22%3A+1221932%2C+%22imdb%22%3A+%22tt5973910%22%2C+%22tvrage%22%3A+0%2C+%22trakt%22%3A+2267810%7D%2C+%22season%22%3A+%2210%22%2C+%22banner2%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Ftvbanner%2Fthe-big-bang-theory-52db1f74e2bee.jpg%22%2C+%22tvshowyear%22%3A+%222007%22%2C+%22fanart2%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Fshowbackground%2Fthe-big-bang-theory-561e3c3dbc1ea.jpg%22%2C+%22status%22%3A+%22Ended%22%2C+%22extended%22%3A+true%2C+%22poster%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Fposters%2F80379-18.jpg%22%2C+%22tvshowtitle%22%3A+%22The+Big+Bang+Theory%22%2C+%22mediatype%22%3A+%22episode%22%2C+%22studio%22%3A+%22CBS%22%2C+%22genre%22%3A+%22Comedy%22%2C+%22banner%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Fgraphical%2F80379-g13.jpg%22%2C+%22clearart%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Fhdclearart%2Fthe-big-bang-theory-519818ab2d8a9.png%22%2C+%22thumb%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Fepisodes%2F80379%2F5714255.jpg%22%2C+%22episode%22%3A+%222%22%2C+%22metacache%22%3A+true%2C+%22overlay%22%3A+6%2C+%22premiered%22%3A+%222016-09-26%22%2C+%22clearlogo%22%3A+%22https%3A%2F%2Fassets.fanart.tv%2Ffanart%2Ftv%2F80379%2Fhdtvlogo%2Fthe-big-bang-theory-50477a642f672.png%22%2C+%22fanart%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Ffanart%2Foriginal%2F80379-34.jpg%22%2C+%22season_poster%22%3A+%22https%3A%2F%2Fthetvdb.com%2Fbanners%2Fposters%2F80379-18.jpg%22%2C+%22playcount%22%3A+0%2C+%22seasoncount%22%3A+24%2C+%22trailer%22%3A+%22plugin%3A%2F%2Fplugin.video.venom%2F%3Faction%3Dtrailer%26name%3DThe%2BBig%2BBang%2BTheory%26imdb%3Dtt0898266%22%7D&t=20191212032118292000', u'art': {u'season.poster': u'image://https%3a%2f%2fthetvdb.com%2fbanners%2fposters%2f80379-18.jpg/', u'fanart': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2fshowbackground%2fthe-big-bang-theory-561e3c3dbc1ea.jpg/', u'poster': u'image://https%3a%2f%2fthetvdb.com%2fbanners%2fposters%2f80379-18.jpg/', u'clearlogo': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2fhdtvlogo%2fthe-big-bang-theory-50477a642f672.png/', u'clearart': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2fhdclearart%2fthe-big-bang-theory-519818ab2d8a9.png/', u'tvshow.poster': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2ftvposter%2fthe-big-bang-theory-5214251a5b671.jpg/', u'banner': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2ftvbanner%2fthe-big-bang-theory-52db1f74e2bee.jpg/', u'landscape': u'image://https%3a%2f%2fassets.fanart.tv%2ffanart%2ftv%2f80379%2ftvthumb%2fT_80379%20(0).jpg/', u'thumb': u'image://https%3a%2f%2fthetvdb.com%2fbanners%2fepisodes%2f80379%2f5714255.jpg/'}, u'playcount': 0, u'runtime': 1500, u'type': u'episode', u'showtitle': u'The Big Bang Theory', u'streamdetails': {u'video': [{u'language': u'', u'stereomode': u'', u'width': 0, u'codec': u'h264', u'aspect': 0.0, u'duration': 0, u'height': 0}], u'audio': [], u'subtitle': []}} 2019-12-12 03:23:35.195 T:7332 NOTICE: [service.upnext] Monitor -> Up Next style autoplay succeeded. but not notification. I'm seeing jasonrpc so I have to wonder if UpNext receives the proper data why it's looking in the local library? It never did that before unless tvshowid was not received but it is. I've made zero changes to the data sent and received to UpNext since implementing support with v1.0.1 yet anything beyond 1.0.1 and it no longer works in Seren or Venom. I'm going to revert back to working v1.0.1 and compare logged data

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 12, 2019

Which version of Kodi have you tested @123Venom and which version of Addon Signals?

I cant get any version to work on FireTV Box (gen2).....

@123Venom
Copy link

v1.0.1 log...works perfectly! I see what's not transmitted but why idk 2019-12-12 04:09:35.438 T:9520 NOTICE: UP NEXT Monitor -> log : Calling autoplayback totaltime - playtime is 59.3669433594 2019-12-12 04:09:35.441 T:9520 NOTICE: UP NEXT Api -> log : handle_addon_lookup_of_next_episode episode returning data {"rating": "7.7", "tvshowid": "80379", "art": {"tvshow.fanart": "https://thetvdb.com/banners/fanart/original/80379-34.jpg", "thumb": "https://thetvdb.com/banners/episodes/80379/4413988.jpg", "tvshow.clearart": "https://assets.fanart.tv/fanart/tv/80379/hdclearart/the-big-bang-theory-519818ab2d8a9.png", "tvshow.landscape": "https://thetvdb.com/banners/fanart/original/80379-34.jpg", "tvshow.poster": "https://thetvdb.com/banners/posters/80379-18.jpg", "tvshow.clearlogo": "https://assets.fanart.tv/fanart/tv/80379/hdtvlogo/the-big-bang-theory-50477a642f672.png"}, "plot": "A game threatens Sheldon's relationship with Stephen Hawking; Penny secretly signs up for a college class.", "season": "6", "title": "The Extract Obliteration", "episodeid": 75485, "tvshowimdb": "tt0898266", "firstaired": "2007", "year": "2012", "episode": "6", "playcount": 0, "showtitle": "The Big Bang Theory"} 2019-12-12 04:09:35.443 T:9520 NOTICE: UP NEXT Api -> log : handle_addon_lookup_of_current episode returning data {"rating": "7.7", "tvshowid": "80379", "art": {"tvshow.fanart": "https://thetvdb.com/banners/fanart/original/80379-34.jpg", "thumb": "https://thetvdb.com/banners/episodes/80379/4408722.jpg", "tvshow.clearart": "https://assets.fanart.tv/fanart/tv/80379/hdclearart/the-big-bang-theory-519818ab2d8a9.png", "tvshow.landscape": "https://thetvdb.com/banners/fanart/original/80379-34.jpg", "tvshow.poster": "https://thetvdb.com/banners/posters/80379-18.jpg", "tvshow.clearlogo": "https://assets.fanart.tv/fanart/tv/80379/hdtvlogo/the-big-bang-theory-50477a642f672.png"}, "plot": "The gang heads to Stuart's comic book store to celebrate Halloween; Leonard uses science to seduce Penny.", "season": "6", "title": "The Holographic Excitation", "episodeid": 75484, "firstaired": "2007", "episode": "5", "playcount": 0, "showtitle": "The Big Bang Theory"} 2019-12-12 04:09:35.446 T:9520 NOTICE: UP NEXT PlaybackManager -> log : episode details {"rating": "7.7", "tvshowid": "80379", "art": {"tvshow.fanart": "https://thetvdb.com/banners/fanart/original/80379-34.jpg", "thumb": "https://thetvdb.com/banners/episodes/80379/4413988.jpg", "tvshow.clearart": "https://assets.fanart.tv/fanart/tv/80379/hdclearart/the-big-bang-theory-519818ab2d8a9.png", "tvshow.landscape": "https://thetvdb.com/banners/fanart/original/80379-34.jpg", "tvshow.poster": "https://thetvdb.com/banners/posters/80379-18.jpg", "tvshow.clearlogo": "https://assets.fanart.tv/fanart/tv/80379/hdtvlogo/the-big-bang-theory-50477a642f672.png"}, "plot": "A game threatens Sheldon's relationship with Stephen Hawking; Penny secretly signs up for a college class.", "season": "6", "title": "The Extract Obliteration", "episodeid": 75485, "tvshowimdb": "tt0898266", "firstaired": "2007", "year": "2012", "episode": "6", "playcount": 0, "showtitle": "The Big Bang Theory"} 2019-12-12 04:09:35.454 T:9520 NOTICE: UP NEXT PlaybackManager -> log : played in a row settings "3" 2019-12-12 04:09:35.457 T:9520 NOTICE: UP NEXT PlaybackManager -> log : played in a row 1 2019-12-12 04:09:35.459 T:9520 NOTICE: UP NEXT PlaybackManager -> log : showing next up page as played in a row is 1 2019-12-12 04:10:26.147 T:14156 WARNING: CGUIWindowManager - CGUIWindowManager::HandleAction - ignoring action 107, because topmost modal dialog closing animation is running 2019-12-12 04:10:26.166 T:9520 WARNING: Previous line repeats 1 times. 2019-12-12 04:10:26.166 T:9520 NOTICE: UP NEXT PlaybackManager -> log : playing media episode 2019-12-12 04:10:26.168 T:9520 NOTICE: UP NEXT Api -> log : sending data to addon to play: {"item_id": 75484} 2019-12-12 04:10:26.181 T:14156 WARNING: CGUIWindowManager - CGUIWindowManager::HandleAction - ignoring action 107, because topmost modal dialog closing animation is running 2019-12-12 04:10:26.183 T:9520 NOTICE: UP NEXT Monitor -> log : Up Next style autoplay succeeded.

https://postimg.cc/rDnpsQ5W

@123Venom
Copy link

Which version of Kodi have you tested @123Venom and which version of Addon Signals?

I cant get any version to work on FireTV Box (gen2).....

When I implemented UpNext support I was on 18.1...currently on 18.5 and just tested on win pc and Shield and both behave the same way. Anything after v1.0.1 and no notification. 1.0.1 works flawlessly and I've changed no code since nor had reason to till perhaps now. I'd love to get to the bottom of this. And Addon Signals I'm still on 0.0.3 with auto updates off because when that updated to 0.0.4 it also broke but going back to 0.0.3 and all was fine.

@dagwieers
Copy link
Collaborator

@123Venom So you confirm with 100% certainty that v1.0.1 works fine, and v1.0.2 does not?

Can you please post full Kodi debug logs rather than fragments?

Also previous reports did not include the addon_data_received called with data section, which indicated there was no information send. So it is absolutely essential that we can interpret the information we get correctly, and if you only provide us with fragments, we may be looking at the wrong data and draw wrong conclusions.

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 13, 2019

SEREN has had an update and Up Next Works, I still can't get it to work with Venom.

However, I'm using v1.0.1 with 0.0.0.3 Addon Signals.

@dagwieers
Copy link
Collaborator

@ShaVerZ Sigh, so you are now confirming that Venom does not work with Up Next v1.0.1 using Venom with Addon Signals v0.0.3 ? This would go against all previous reports...

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 13, 2019

When forwarding to the end of a programme, to see if Up Next works, should you allow a minute or two to the end or longer.

I used Seren last night and watched a programme completely and it worked. Perhaps I'm not leaving enough time at the end.....

@dagwieers
Copy link
Collaborator

According to the Seren changelog, Seren v1.6.0 removed Up Next support

  • Removed support for UpNext addon

@dagwieers
Copy link
Collaborator

dagwieers commented Dec 13, 2019

@ShaVerZ Up Next by default is configured to show the pop-up 30 seconds before the end. The master branch now has some heuristics that make this time depend on the length of the video. from 15 seconds before the end to 50 seconds (but configurable to anything you prefer).

Update: Some add-ons provide Up Next with their own notification time, I noticed Seren has its own configuration option which also defaults to 30 seconds (but is a slider from 10 to 60).

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 13, 2019

Well, its 100% working with Seren and I have some settings which resemble Up Next settings.

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 13, 2019

20191213_123159
20191213_123218

@ShaVerZ
Copy link
Author

ShaVerZ commented Dec 13, 2019

I just tested Venom and I can't get it working with v1.0.1 and 0.0.3.

Perhaps Seren is using it's own notifications instead of Up Next.

@dagwieers
Copy link
Collaborator

Well, the Seren code at https://github.com/nixgates/plugin.video.seren is incomplete. The code refers to files that do not exist in the tree. But it is clear they moved to their own implementation rather than use Up Next.

@ecastel6
Copy link

ecastel6 commented Jan 6, 2020

Same problem here,
Tested on
Kodi 18.4 and 18.5
UpNext 1.07
no Addon Signals installed
Now testing older versions before 1.0x

This is an excerpt from the log with the relevant lines

2020-01-06 20:54:06.279 T:140210973230848 NOTICE: [service.upnext] Monitor -> Calling autoplayback totaltime - playtime is 59.3798828125
2020-01-06 20:54:06.279 T:140210973230848 NOTICE: [service.upnext] Api -> Got active player {u'jsonrpc': u'2.0', u'id': 1, u'result': [{u'playerid': 1, u'type': u'video', u'playertype': u'internal'}]}
2020-01-06 20:54:06.280 T:140210973230848 NOTICE: [service.upnext] Api -> Getting details of now playing media
2020-01-06 20:54:06.287 T:140210973230848 NOTICE: [service.upnext] Api -> Got details of now playing media {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'item': {u'plotoutline': u'', u'episode': 7, u'season': 8, u'tvshowid': -1, u'label': u'La \xfaltima fotograf\xeda', u'genre': [u'Comedia, Drama, Misterio'], u'playcount': 0, u'type': u'episode', u'showtitle': u'Embrujadas'}}}
2020-01-06 20:54:06.293 T:140210973230848 NOTICE: [service.upnext] PlayItem -> Fetched missing tvshowid -1
2020-01-06 20:54:06.294 T:140210973230848 NOTICE: [service.upnext] PlaybackManager -> Error: no episode could be found to play next...exiting
2020-01-06 20:54:06.294 T:140210973230848 NOTICE: [service.upnext] Monitor -> Up Next style autoplay succeeded.

Kind Regards,
Emilio

@ShaVerZ
Copy link
Author

ShaVerZ commented Jan 6, 2020

Download the following versions and install via zip within Kodi, make sure you turn auto update off for these addons.....

https://drive.google.com/folderview?id=1ShAejmjxJVsiua8gRL3-84pLBmPVb9vb

@ecastel6
Copy link

ecastel6 commented Jan 6, 2020

Download the following versions and install via zip within Kodi, make sure you turn auto update off for these addons.....

https://drive.google.com/folderview?id=1ShAejmjxJVsiua8gRL3-84pLBmPVb9vb

Tested on kodi 18.5
downloaded version,
Log lines
2020-01-06 23:06:23.812 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Exception in Playback Monitor Service: RuntimeError('XBMC is not playing any media file',)
2020-01-06 23:06:23.813 T:140607456528128 NOTICE: UP NEXT Monitor -> log : No file is playing - stop up next tracking.
2020-01-06 23:07:50.388 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Calling autoplayback totaltime - playtime is 59.2839355469
2020-01-06 23:07:50.390 T:140607456528128 NOTICE: UP NEXT Api -> log : Got active player "{"id":1,"jsonrpc":"2.0","result":[{"playerid":1,"playertype":"internal","type":"video"}]}"
2020-01-06 23:07:50.392 T:140607456528128 NOTICE: UP NEXT Api -> log : Getting details of now playing media
2020-01-06 23:07:50.401 T:140607456528128 NOTICE: UP NEXT Api -> log : Got details of now playing media "{"id":1,"jsonrpc":"2.0","result":{"item":{"episode":1,"genre":["Comedia, Drama, Misterio"],"label":"A\u00fan embrujadas e incordiando","playcount":0,"plotoutline":"","season":8,"showtitle":"Embrujadas","tvshowid":-1,"type":"episode"}}}"
2020-01-06 23:07:50.407 T:140607456528128 NOTICE: UP NEXT PlayItem -> log : Fetched missing tvshowid "-1"
2020-01-06 23:07:50.408 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Exception in Playback Monitor Service: TypeError('%d format: a number is required, not str',)
2020-01-06 23:08:49.575 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Exception in Playback Monitor Service: RuntimeError('XBMC is not playing any media file',)
2020-01-06 23:08:49.577 T:140607456528128 NOTICE: UP NEXT Monitor -> log : No file is playing - stop up next tracking.

Will test other Tv shows

Thanks for your help

@ecastel6
Copy link

ecastel6 commented Jan 6, 2020

Download the following versions and install via zip within Kodi, make sure you turn auto update off for these addons.....
https://drive.google.com/folderview?id=1ShAejmjxJVsiua8gRL3-84pLBmPVb9vb

Tested on kodi 18.5
downloaded version,
Log lines
2020-01-06 23:06:23.812 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Exception in Playback Monitor Service: RuntimeError('XBMC is not playing any media file',)
2020-01-06 23:06:23.813 T:140607456528128 NOTICE: UP NEXT Monitor -> log : No file is playing - stop up next tracking.
2020-01-06 23:07:50.388 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Calling autoplayback totaltime - playtime is 59.2839355469
2020-01-06 23:07:50.390 T:140607456528128 NOTICE: UP NEXT Api -> log : Got active player "{"id":1,"jsonrpc":"2.0","result":[{"playerid":1,"playertype":"internal","type":"video"}]}"
2020-01-06 23:07:50.392 T:140607456528128 NOTICE: UP NEXT Api -> log : Getting details of now playing media
2020-01-06 23:07:50.401 T:140607456528128 NOTICE: UP NEXT Api -> log : Got details of now playing media "{"id":1,"jsonrpc":"2.0","result":{"item":{"episode":1,"genre":["Comedia, Drama, Misterio"],"label":"A\u00fan embrujadas e incordiando","playcount":0,"plotoutline":"","season":8,"showtitle":"Embrujadas","tvshowid":-1,"type":"episode"}}}"
2020-01-06 23:07:50.407 T:140607456528128 NOTICE: UP NEXT PlayItem -> log : Fetched missing tvshowid "-1"
2020-01-06 23:07:50.408 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Exception in Playback Monitor Service: TypeError('%d format: a number is required, not str',)
2020-01-06 23:08:49.575 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Exception in Playback Monitor Service: RuntimeError('XBMC is not playing any media file',)
2020-01-06 23:08:49.577 T:140607456528128 NOTICE: UP NEXT Monitor -> log : No file is playing - stop up next tracking.

Will test other Tv shows

Thanks for your help

Tested on other Tv and worked ok, although it seems strange that it does not work in the first TV show I tested, in which it previously worked fine.
Below the relevant log lines-
If you need further test just let me know.
Thanks

2020-01-06 23:21:54.009 T:140607456528128 NOTICE: UP NEXT Api -> log : Got details of next up episode {"jsonrpc": "2.0", "id": 1, "result": {"episodes": [{"plot": "Primer cap\u00edtulo de la
2020-01-06 23:21:54.119 T:140607456528128 NOTICE: UP NEXT PlaybackManager -> log : played in a row settings "3"
2020-01-06 23:21:54.121 T:140607456528128 NOTICE: UP NEXT PlaybackManager -> log : played in a row 1
2020-01-06 23:21:54.122 T:140607456528128 NOTICE: UP NEXT PlaybackManager -> log : showing next up page as played in a row is 1
2020-01-06 23:22:52.806 T:140607456528128 NOTICE: UP NEXT PlaybackManager -> log : playing media episode
2020-01-06 23:22:53.124 T:140607456528128 NOTICE: UP NEXT Monitor -> log : Up Next style autoplay succeeded.

Repository owner deleted a comment from ecastel6 Jan 8, 2020
Repository owner deleted a comment from ecastel6 Jan 8, 2020
@dagwieers
Copy link
Collaborator

dagwieers commented Jan 14, 2020

Hopefully a resolution will be found.

As far as I know, nobody from the Up Next project is looking into this as we have no developers using Venom. We also believe the issue to be in Venom (possibly triggered by changes in v1.0.2). Up Next is working fine for other add-ons.

A resolution will have to come from the Venom developers looking into what is going on under the hood. We can help analysing data, but it seems the default logging does not expose the problem.

@dagwieers
Copy link
Collaborator

The reason why it fails from your logs with v1.0.2 is because of this error:

2019-12-15 12:50:53.156 T:11210  NOTICE: UP NEXT Monitor -> log : Exception in Playback Monitor Service: KeyError('id',)

The only code where this could happen is:

if "result" in result and result["result"].get("items"):
item = result["result"]["items"][0]
if item["type"] == "episode":
item["episodeid"] = item["id"]
item["tvshowid"] = item.get("tvshowid", item["id"])
return item

This code was indeed added to v1.0.2 and we fixed this in v1.0.4 (#68) by using more defensive code:

item = result.get('result', {}).get('items', [])[0]
if item.get('type') != 'episode':
return None
item['episodeid'] = item.get('id')
item['tvshowid'] = item.get('tvshowid', item.get('id'))
return item

But that is not the reason why things are failing in v1.0.4+ (it might still be because of changes in v1.0.2). In fact it apparently needs this id entry from your data anyway in any version since v1.0.1.

@dagwieers dagwieers added the help wanted Extra attention is needed label Jan 22, 2020
@dagwieers dagwieers changed the title Up Next Notification Pop-up No notification pop-up appears Feb 13, 2020
@dagwieers dagwieers changed the title No notification pop-up appears No notification pop-up appears with Venom Feb 13, 2020
@dagwieers
Copy link
Collaborator

@123Venom We have updated the documentation at: https://github.com/im85288/service.upnext/wiki/Integration

It includes example source code and details on how to integrate with Up Next without needing AddonSignals. Maybe you have more luck with this more elegant implementation. It is easier to integrate since it only requires to send the signal using standard JSONRPC calls, and no longer needs to wait for receiving the signal. Up Next will call out to the add-on directly.

@dagwieers
Copy link
Collaborator

Is this still an issue? And if so, who is able and willing to troubleshoot this?
If there is no interest, I would rather close this ticket.

@123Venom
Copy link

hi @dagwieers,
Ya still an issue here. Last time I test was with UpNext v1.1 and AddonSignals 0.5. If playing content from library the pop up does come up...just seems to not want to with 3rd party and I thought maybe for a reason. Debugging seemed to show all data exchanged as required, and like it did when it worked in 1.0.1 and AddonSignals 0.3. I can try to get you over the log data tomorrow...sorry away at the moment.

@dagwieers
Copy link
Collaborator

Please test the upcoming v1.1.3 release by testing PR #217 and reporting back.

@123Venom
Copy link

Unfortunately same results using Addonon-Signals v0.0.6 with UpNext v1.1.3 and while continual playback works fine there's no UpNext pop-up. The only combo I've been able to receive the UpNext pop-up to date has been Addon-Signals v0.0.3 with UpNext v1.01. I just reverted to those former versions and it's back to working again.

Here's the [service.upnext] log capture using those latest versions mentioned and the data exchange looks correct.
https://ufile.io/vv5awd8z

@MoojMidge
Copy link
Collaborator

The reason why it doesn't show a popup is because UpNext is assuming that any playlist item is an item from the Kodi library, with an associated episodeid and tvshowid.

Even though the video addon is sending the episode details to UpNext, it is being ignored and the playlist item video info details are being used instead. Unfortunately the playlist item does not contain any useful video details for UpNext to use and so UpNext silently exits and just lets the playlist keep playing.

The reason why it works in UpNext v1.0.1 is because that version did not handle playlist items, and so it will correctly use the addon data that was sent to UpNext.

As a general issue, it was a little tricky to fix, as simply using the addon data would mean that the playlist would be lost, which may or may not be significant to the way the addon works. In order to fix this, I elected to use the addon data for info, but use the playlist for actually playing the stream, based on the reasoning that there was probably a purpose as to why an addon or user went to the trouble of creating/playing a playlist of video streams from an addon in the first place, and that UpNext should respect that action without destroying the playlist by directly playing the next stream.

However, for this specific case, as it works in UpNext v1.0.1, we can assume that losing the playlist is not an issue (this is probably not an issue for most addons, as the combination of the addon data and the functionality of UpNext effectively acts to recreate the playlist on the fly, but only with the current/next episode). As such the following small change should fix the problem:

Replace playitem.py#L43-L44

    def get_next(self):
        playlist = PlayList(PLAYLIST_VIDEO)

with

    def get_next(self):
        if self.api.has_addon_data():
            return False
        playlist = PlayList(PLAYLIST_VIDEO)

@123Venom
Copy link

123Venom commented Jan 9, 2021

@MoojMidge sorry bud idk how I missed a message of this post but I did till I chose to peak on my own. Anyway I tested your code change and it now works brilliantly as it did the older version I mentioned. Any chance of getting this incorporated into a future release? I could do my own mod of it but for a couple lines of code seems pointless and confusing for users if I can convince the UpNext boys to be my new best friend...lol..thoughts?

@MoojMidge
Copy link
Collaborator

Any chance of getting this incorporated into a future release?

I think more may need to be fixed here. The suggested change resolves the issue you identified by essentially disabling playlist handling if addon data has been sent to UpNext.

I don't think this should cause any issues, but playlist handling was implemented in this manner, and presumably for a good reason, in PR #46 almost a year and a half ago. I don't know if there are any addons that actually rely on the current behaviour i.e. UpNext using the addon data if there only one item playing, but ignoring it if there is a playlist of addon urls that the addon has created.

@MoojMidge
Copy link
Collaborator

Have been testing a simple fix for this, for a while now, that appears to satisfy the pre-v1.0.2 use cases while not breaking for any addon relying on functionality from PR #46 (hypothetically - haven't actually seen anything that is reliant on this behaviour)

The proposed logic is:

  • if addon data is available, use it for episode information so that UpNext will activate and show correct details in the popup, regardless of whether a playlist exists or not (change from PR Add priority to existing playlist & endtime prop #46, which is think was just an oversight)
  • if plugin paths are in a playlist, do not use play_url or play_info, use playlist instead (change from v1.0.1, but I haven't seen any instances of addons that would break specifically because of this, noting that they would be broken anyway because of PR Add priority to existing playlist & endtime prop #46)
  • if no playlist already exists, queue next episode/play_url or send play_info back to addon
  • otherwise use playlist instead

If the above makes sense, can create a PR to try and fix this in the current code.

@im85288
Copy link
Owner

im85288 commented Feb 10, 2021

@MoojMidge make sense to me, would appreciate if you can make a PR to try and resolve the tangle we have gotten into.

@MoojMidge
Copy link
Collaborator

Done: #247

Only caveat is the code comes from a different branch, and needs some testing.

@ambulancePilot
Copy link

I'm not able to get this add-on working with Fen. I think I am having the same issue as described here in this thread. No popup nor does the next episode play. I tried making the changes MoojMidge recommended but it looks like the code has changed a bit since then. Is this addon supposed to work out of the box with video addons such as Fen and Venom? Am I doing something wrong?

@123Venom
Copy link

123Venom commented Jul 21, 2021

I'm not able to get this add-on working with Fen. I think I am having the same issue as described here in this thread. No popup nor does the next episode play. I tried making the changes MoojMidge recommended but it looks like the code has changed a bit since then. Is this addon supposed to work out of the box with video addons such as Fen and Venom? Am I doing something wrong?

I'd venture a guess your issue is more than likely this one, it surely was mine per log data when it broke and it's still an issue.
#238

I managed to tweak things so .getTotalTime() was not always returning 0 and it fixed this issue so the pop up occurred but I was not about to offer a custom mod and chose to remove UpNext and code my own xml. Good luck to you in your endeavors with this.

@MoojMidge
Copy link
Collaborator

I managed to tweak things so .getTotalTime() was not always returning 0

@123Venom What did you end up doing for that? Using OnAVStart is an easy fix that should work for most cases and I can create a PR to fix #238. Were there other problems you were having with UpNext?

@ambulancePilot I don't use Fen or Venom so I don't know if it was intended that they work with UpNext, but in general support for UpNext needs to be implemented by the addons you are using, unless they use playlists, which is what this issue and the aforementioned changes were about. The changes were already implemented so if there is still a problem then logs need to be provided, otherwise it's just about impossible to know what is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants