Code Monkey home page Code Monkey logo

service.nextup.notification's Introduction

This addon has two modes, the default is to show a post play screen or it can be configured to show a popup next up notification automatically to prompt for playing the next unwatched episode.

Configuration:

  • The addon is found in the services section and allows the notification time to be adjusted (default 30 seconds before the end) - only for non postplay mode
  • The default action (ie Play/Do not Play) when nothing is pressed can also be configured
  • The number of episodes played in a row with no intervention to bring up the still watching window can be adjusted.

Skinners (PostPlayMode):

  • There is a script-nextup-notification-PostPlayInfo.xml located in default/1080i/ simply copy this to your skin folder and adjust it how you like it.

    • script-nextup-notification-PostPlayInfo.xml
      • 101 - Previous Episode Button

      • 102 - Next Episode Button

      • 400 - Next Up List

      • 201 - Home Button

      • 202 - Spoilers Button

      • Various Window Propertys are available including

        • Window.Property(background) - tvshow fanart
        • Window.Property(clearlogo) - tvshow clearlogo
        • Window.Property(banner) - tvshow banner
        • Window.Property(characterart) - tvshow characterart
        • Window.Property(next.poster) - next episode tvshow poster
        • Window.Property(next.thumb) - next episode thumb
        • Window.Property(next.clearart) - next episode tvshow clearart
        • Window.Property(next.landscape) - next episode landscape
        • Window.Property(next.plot) - next episode plot
        • Window.Property(next.tvshowtitle) - next episode tvshow title
        • Window.Property(next.title) - next episode title
        • Window.Property(next.season) - next episode season number
        • Window.Property(next.episode) - next episode episode number
        • Window.Property(next.year) - next episode preimiered year
        • Window.Property(next.rating) - next episode rating
        • Window.Property(next.duration) - next episode duration
        • Window.Property(previous.poster) - previous episode tvshow poster
        • Window.Property(previous.thumb) - previous episode thumb
        • Window.Property(previous.clearart) - previous episode tvshow clearart
        • Window.Property(previous.landscape) - previous episode landscape
        • Window.Property(previous.plot) - previous episode plot
        • Window.Property(previous.tvshowtitle) - previous episode tvshow title
        • Window.Property(previous.title) - previous episode title
        • Window.Property(previous.season) - previous episode season number
        • Window.Property(previous.episode) - previous episode episode number
        • Window.Property(previous.year) - previous episode preimiered year
        • Window.Property(previous.rating) - previous episode rating
        • Window.Property(previous.duration) - previous episode duration
        • Window.Property(showplot) - not empy when should show plot
        • Window.Property(stillwatching) - not empty when entered still watching mode

Skinners (Non PostPlayMode):

  • There is a script-nextup-notification-NextUpInfo.xml and script-nextup-notification-StillWatchingInfo.xml file located in default/1080i/ simply copy this to your skin folder and adjust it how you like it.

  • There is now script-nextup-notification-UnwatchedInfo.xml which by default shows a logo of an unwatched episode after 10 minutes for 10 seconds Controls Available:

    • script-nextup-notification-NextUpInfo.xml

      • 3000 - Title
      • 3001 - Plot
      • 3002 - Season/Episode
      • 3003 - Rating
      • 3004 - First Aired
      • 3005 - TV Show Fanart
      • 3006 - TV Show ClearArt
      • 3007 - TV Show Title
      • 3008 - Episode Thumb
      • 3009 - TV Show Poster
      • 3010 - TV Show Landscape
      • 3011 - Video Resolution
      • 3012 - Watch Now Button
      • 3013 - Cancel Button
      • 3015 - Season Number
      • 3016 - Episode Number
      • 3018 - Play Count
    • script-nextup-notification-StillWatchingInfo.xml

      • 4000 - Label
      • 4001 - TV Show Poster
      • 4002 - Episode Thumb
      • 4003 - Rating
      • 4004 - First Aired
      • 4005 - TV Show Landscape
      • 4006 - Plot
      • 4007 - TV Show Fanart
      • 4008 - Season Number
      • 4009 - Episode Number
      • 4010 - Title
      • 4011 - Video Resolution
      • 4012 - Continue Watching Button
      • 4013 - Cancel Button
      • 4014 - TV Show ClearArt
      • 4018 - Play Count
    • script-nextup-notification-UnwatchedInfo.xml

      • 5000 - Label
      • 5001 - Plot
      • 5002 - Season/Episode
      • 5003 - Rating
      • 5004 - Clear Logo

service.nextup.notification's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

service.nextup.notification's Issues

[feature request] Adaptive end time notification

Suprised I haven't found something for this feature request, but nice to have:

Make the end time where the notification pops up adaptive, because different series have different offsets for the closing credits. To get a good notification the user has to change the end time seconds according to the watched series.
Example: one series has closing credits for about 40 seconds, the next series has closing credits for about 3 minutes. So with an end time of 40 seconds from the first series the user has to wait 2 minutes 20 seconds closing credits before he can skip the last 40 seconds.

Possibillities to archieve this:

  • Maybe there's a database online where the closing credits offset is already stored which can be used or created from user input. Problem here can be different versions where the closing credits have different lenghts. Edit: Found this post, seems promising.
  • Scan around the end for mostly black screen with some pixels white (If Kodi can scan the video). Problem here are fancy closing credits or a video after them. Also dark videos can be problematic.
  • More?

Considering the amount of work this feature request will problably never get into this. Please tell me otherwise.

Some Kodi controls do not work while in dialog

Hello,
Using Kodi 17.6, NextUp v1.0.37.
While NextUp dialog (NextUpInfo) is open during the last seconds of an episode, some controls do not function correctly.
So far I've tested:
Stop (x) - starts playing the next episode immediately
Back (backspace) - no effect
Home (esc) - no effect
Pause/Play (space) works as normal

It's mainly Stop I'm thinking needs fixing, as currently pressing stop counter-intuitively plays the next episode, and the only way to stop therefore is to press stop twice. Not a huge deal, but would be nice to fix.

Question: dev

Have you any plans to continue work on dev-branch ? I will do some work on my skipdb and would be know if you are interested to keep it in your code (cause it would be the better way to safe resources) or releasing a standalone-solution.

Play next when episode is completely done

If you set the addon to play the next episode as default. It seems like it will skip before the end of the episode at - 1 sec from the end instead of skipping when the episode is completely done.

service.py has left several classes in memory that we couldn't clean up

Anything I can do to address a kodi.log entry I've been seeing forever? --

NOTICE: NEXTUP SERVICE NOTIFICATION Service -> KODI Version: 17.3 Git:20170525-nogitfound
NEXTUP SERVICE NOTIFICATION Version: 1.0.35
...
NOTICE: NEXTUP SERVICE NOTIFICATION Service -> ======== STOP NEXTUP SERVICE NOTIFICATION ========
WARNING: CPythonInvoker(21, /home/nspectre/.kodi/addons/service.nextup.notification/service.py): the python script "/home/nspectre/.kodi/addons/service.nextup.notification/service.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon4xbmc6PlayerE

Can't exit

This is happening on PC (windows, linux) but not on android
I can't exit by pressing on the home button or backspace.

I'm kodi 17 in all cases.

[Request/Question] Start scraping before post-play?

I'm not sure how the code is set up now, but it seems like it could start scraping for links (for content added to the library from a streaming add-on) as soon as the preview pops up... That way the post-play screen could potentially go directly into the next episode, without having to scrape AFTER the time out. I don't know Python, but if you could point me to where in the code this might like, I could fiddle with it and try to make a PR if it helps.

Is this possible?

Unwatched bug?

I think there is a new bug with unwatched?

When watching the last episode of a show (didn't test the other case) I get an popup with an random episode at about 10mins watching. Doesen't happen if I skip to minute ten, so it seems like it's counting somewhere.
And it seems like the lenght of the episode is doesn't change it happening at minute 10.

Animated Series

Hello, this addon only works with live action series? (GoT, Gotham). Because.... this perfect works with this type of series, but don't work with series like that "The Simpsons" or "Rick and Morty" anybody help in my question.
Thanks

Language typo's

Hey there,
just found some typo's in the german language strings.xml and tried to fix that and changed some other things to a better german. here's the strings.xml

strings.zip

regards

window position

Hello,
It would be great to be able to choose the position of the window, or to define the opacity. Indeed, the window is especially annoying for example when watching animes, which often have story sequences after the end credits. When it happens, it covers part of the subtitles.
Thanks.

Kodi Crash when Postplay Screen is deactivated

Hi, my Kodi is Crashing when Nextup Postplay Screen is deactivated and the next video file should be played.

This is what the crashlog says:

15:20:45.580 T:140469513692928 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : playing media episode id 1104
15:20:45.763 T:140470410622656 NOTICE: CVideoPlayer::CloseFile()
15:20:45.764 T:140470410622656 NOTICE: VideoPlayer: waiting for threads to exit
15:20:45.764 T:140468747106048 NOTICE: CVideoPlayer::OnExit()
15:20:45.764 T:140468747106048 NOTICE: Closing stream player 1
15:20:45.764 T:140468747106048 NOTICE: Waiting for audio thread to exit
15:20:45.769 T:140468738713344 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
15:20:45.769 T:140468738713344 NOTICE: thread end: CVideoPlayerAudio::OnExit()
15:20:45.769 T:140468747106048 NOTICE: Closing audio device
15:20:45.809 T:140468747106048 NOTICE: Deleting audio codec
15:20:45.809 T:140468747106048 NOTICE: Closing stream player 2
15:20:45.809 T:140468747106048 NOTICE: waiting for video thread to exit
15:20:45.824 T:140468730320640 NOTICE: thread end: video_thread
15:20:45.824 T:140468747106048 NOTICE: deleting video codec
15:20:45.827 T:140470410622656 NOTICE: VideoPlayer: finished waiting
15:20:45.828 T:140470410622656 NOTICE: VideoPlayer: Opening: smb://192.168.0.201/TV/Malcolm In The Middle/Season 02/Malcolm in the Middle - 2x04 - Dinner Out.avi
15:20:45.828 T:140468747106048 NOTICE: Creating InputStream
15:20:45.886 T:140468747106048 NOTICE: Creating Demuxer
15:20:46.345 T:140470410622656 ERROR: Error trying to retrieve an item that's out of range

Full crashlog: https://pastebin.com/nRF5n5Vi
Seems like the plugin retreives a huge json list of episodes. Looks even like it gets all episodes of that show.

Everything works better with Postplay Screen enabled. But even then the new episode is playing in the background and starts over when the plugin is finished counting down.

Is there something I can do or is this a Bug?

No audio on auto next video

This seems new. This was fine a few weeks ago. Now, it appears that after allowing the video to load the after screen, the video that plays has no audio.

I can't recall changing anything to my system.
Chromebox. Krypton. Madnox Skin.

Disable if running playlist?

Is there anyway the service can detect if a playlist is queued and have an option to not do anything if it is?
The current problem is NextUp will break the playlist by auto-playing the next episode of a show.
If I cancel every prompt the playlist will progress as intended, however it is both tiresome after a couple episodes and prone to failure since it's rather easy to miss the timer.

Info

Cause i missed it i'm now working on a commit which brings skip intro to users :-)
First tests are working but now i'm thinking about the way to release the skips for shows where intro is not located at the beginning.
Possible ways are a skip when playtime is < 5
min and user hits pause but needs user interaction cause not in all show intros are located at same start time in every episode/season. The best way would be a public database but i think the intro location is not avsilable by the big providers like tvdb etc - only streaming services are providing it - right?

Not working for me

Cant get it to work..
Next Episode wont Start and Also no messages or pictures.
I m using Streams, which are ported into the library. I need some more addons installed? Or settings? I m using the aura skin, but the developer said for him its working with this skin.
I hope you can help me to fix and use this.
Thank you

The log:

18:36:49.468 T:138841887824 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got active player {"id":1,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
18:36:49.470 T:138841887824 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Getting details of now playing media
18:36:49.515 T:138841887824 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got details of now playing media{"id":1,"jsonrpc":"2.0","result":{"item":{"episode":1,"genre":[],"label":"Bube, Dame, König, Shawn und Burtons Feuerkelch","playcount":0,"season":8,"showtitle":"","tvshowid":-1,"type":"unknown"}}}
18:36:49.774 T:138841887824 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Fetched missing tvshowid -1
18:36:49.776 T:138841887824 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Error: cannot determine if episode
18:36:49.777 T:138841887824 NOTICE: NEXTUP SERVICE NOTIFICATION Service -> logMsg : Netflix style autoplay succeeded

tvshowid not recognized with netflix strm files

Hi,

last time some parts in the netflix addon from asciidisco has changed by me related to strm files and metadata. The strm files now provide a minimum information as m3u header which contains title season and episode. When Episodes was displayed in listing inside the addon some more metadata is cache and provided. But in both cases nextup service can't identify the tvshowid. While looking inside your source code i noticed you included some checks for strm files (checkStrms).
Can you possible extend these checks ?

Following results are possible with latest strm files generated by the netflix addon:

Minimum Metadata:

07:47:30.364 T:228 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got active player { "id": 1, "jsonrpc": "2.0", "result": [ { "playerid": 1, "type": "video" } ] } 07:47:30.366 T:228 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Getting details of now playing media 07:47:30.390 T:228 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got details of now playing media{ "id": 1, "jsonrpc": "2.0", "result": { "item": { "episode": -1, "genre": [], "label": "Arrow - S03E01", "playcount": 0, "season": -1, "showtitle": "", "tvshowid": -1, "type": "unknown" } } }

With cached metadata:

07:58:32.072 T:228 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got active player { "id": 1, "jsonrpc": "2.0", "result": [ { "playerid": 1, "type": "video" } ] } 07:58:32.075 T:228 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Getting details of playing media 07:58:32.106 T:228 NOTICE: NEXTUP SERVICE NOTIFICATION Player -> logMsg : Got details of playing media{ "id": 1, "jsonrpc": "2.0", "result": { "item": { "episode": 1, "label": "Die Rückkehr", "playcount": 0, "season": 1, "showtitle": "Arrow", "tvshowid": -1, "type": "episode" } } }

NextUP for liveTV

Hi
Could you extended your addon for show in LiveTV what will next - based on EPG even ?
I think that is possible - it will great ! for LiveTV see this

For replace ClearART, you can use thumb from EPG event (some EPG provider or scraper delivery this)
and some skin using this showing info about program or channel icon or animated word "NEXT" and under this epg event with timer count

Fullscreen

Under Kodi 18 nightly next Video won't´t play in Fullscreen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.