NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 … 10 11 12 13 14 … 43 Next »
Why isn't broadcast.firstAired set in the GetEpg function in pvrclient-nextpvr.cpp?

 
  • 0 Vote(s) - 0 Average
Why isn't broadcast.firstAired set in the GetEpg function in pvrclient-nextpvr.cpp?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#11
2019-09-20, 06:12 PM
nogoer Wrote:What do you mean by "original air date and new episode flag and signifcance fields are available in the API to Kodi"? Is there a way a skin can query npvr api and pull the data in? Im new to addon coding in kodi but if this is possible it would be the easiest method to get the data i want into a skin.

Ive been trying all sorts of methods to get the kodi epg updated for first air date but they all end in some sort of brick wall either on the npvr addon side not populating data or the kodi side not having a method to update epg data besides a direct db edit.
NextPVR is sending original air date, first run flag, significance (premiere, finale etc) data to Kodi. The addon doesn't currently use this data though. We hadn't explicitly added this ourselves because Kodi didn't seem to use it, and there was no way for us to test it.

The cPVRClientNextPVR::GetEpg() function in pvrclient-nextpvr.cpp already pulls most of the info out of this response, like name/description/subtitle, start/end time, etc. Someone would just need to add the few lines of code to pull out the additional <firstrun>, <original> and <significance> from the xml, and set them in the Kodi structures.

Quote: The only method i can see to make a work around for myself is to basically gank bits of the npvr addon and build my own addon that replicates the transferEpgEntry functionality but with real data from the npvr API. Your addon though is a serious piece of code and im not familiar with python very well as im a C#/sql developer mostly.
The way it's supposed to work, is you'd create yourself a GitHub account, you'd fork the https://github.com/kodi-pvr/pvr.nextpvr repository, make the changes, then submit a pull request (which is effectively asking someone to merge your changes into the master set of files)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#12
2019-09-20, 07:25 PM
There is no Kodi internal support for first run or significance and first aired has almost no skin support and when it works you need to pop open the description which is not very useful in a guide. Also first aired is not the same as new since often international programs can still be new in countries after they are broadcast in the originating country.

I proposed adding (N) to the title but got no feedback since I believe visible indication is best for at a glance browsing but a better change is in the mainline code ksoo is not interested in doing this because he considers it a big change.

Martin
nogoer
Offline

Junior Member

Posts: 39
Threads: 4
Joined: Sep 2018
#13
2019-09-23, 01:55 PM
sub Wrote:NextPVR is sending original air date, first run flag, significance (premiere, finale etc) data to Kodi. The addon doesn't currently use this data though. We hadn't explicitly added this ourselves because Kodi didn't seem to use it, and there was no way for us to test it.

The cPVRClientNextPVR::GetEpg() function in pvrclient-nextpvr.cpp already pulls most of the info out of this response, like name/description/subtitle, start/end time, etc. Someone would just need to add the few lines of code to pull out the additional <firstrun>, <original> and <significance> from the xml, and set them in the Kodi structures.

The way it's supposed to work, is you'd create yourself a GitHub account, you'd fork the https://github.com/kodi-pvr/pvr.nextpvr repository, make the changes, then submit a pull request (which is effectively asking someone to merge your changes into the master set of files)

I didnt realize i was able to do that. I do have a git account and this is really a minor change to the one file so ill go and see about doing that. thank you

mvallevand Wrote:There is no Kodi internal support for first run or significance and first aired has almost no skin support and when it works you need to pop open the description which is not very useful in a guide. Also first aired is not the same as new since often international programs can still be new in countries after they are broadcast in the originating country.

I proposed adding (N) to the title but got no feedback since I believe visible indication is best for at a glance browsing but a better change is in the mainline code ksoo is not interested in doing this because he considers it a big change.

Martin

Things have to start somewhere and they cant get anywhere until the data is there for the skins to use. Just having the firstaired value populated is the beginning and then skins can take it from there. Any confusing issues due to international airings can be worked out at a later time and is sort of out of scope for what i would expect users to expect from this data. Kodi does have support for first aired and its part of the backend in spite of skins not really using it.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#14
2019-09-23, 02:35 PM
If you create a pr make sure to create a pr against the Kodi Estuary skin to so that it can be tested. That is why I didn't bother last time around.

Martin
nogoer
Offline

Junior Member

Posts: 39
Threads: 4
Joined: Sep 2018
#15
2019-09-23, 04:00 PM
mvallevand Wrote:If you create a pr make sure to create a pr against the Kodi Estuary skin to so that it can be tested. That is why I didn't bother last time around.

Martin

First i need to figure out how to get setup to build my edited version of the addon. Im on windows so im having some issues tryng to make the build but im sure its just because im not famliar with it all. Once i figure this out ill know what to do to fork and edit estuary and get the data actually displayed and tested.

Thanks
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#16
2019-09-28, 04:58 PM
I'm back from a trip and see on the Kodi forum that this is being addressed in the backend for Matrix if you don't submit a PR I will include it in my next builds.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#17
2019-09-28, 06:20 PM
mvallevand Wrote:I'm back from a trip ...
Welcome back! Hope you had a good time.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,907
Threads: 956
Joined: May 2006
#18
2019-09-28, 06:39 PM
It was a wonderful trip tough to comeback to see the leaves changing colours. Nice to see a computer screen and feel a keyboard though, you can only do so much on a small screen.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#19
2019-09-28, 06:46 PM
Great - glad you had a good trip.
mvallevand Wrote:Nice to see a computer screen and feel a keyboard though, you can only do so much on a small screen.
I know that feeling well Big Grin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR and Android 10 charlyms 7 810 2024-11-17, 09:39 PM
Last Post: mvallevand
  NextPVR Client for CoreELEC ChrisI 3 596 2024-09-07, 10:11 PM
Last Post: mvallevand
  Kodi 21.0 Omega/NextPVR 21.1.0 PVR & Live TV Group Manager bouilliabai 28 4,253 2024-08-06, 10:00 PM
Last Post: sub
  Kodi Omega NextPVR Recordings short press context menu (More... item) mmortal03 5 1,094 2024-04-18, 11:19 PM
Last Post: mmortal03
  How to change the recording directory in NextPVR v5 RylanWilkinson 1 784 2024-02-20, 04:29 PM
Last Post: sub
  Kodi NextPVR playback error "Playback Failed" eggburt 6 2,280 2024-02-16, 04:33 AM
Last Post: eggburt
  Nextpvr add-on for Kodi won't sync channels WagMan 3 893 2023-12-23, 01:06 AM
Last Post: mvallevand
  NextPVR not starting or couldn't be loaded Apple TV on Kodi start Ade_AV 19 2,753 2023-08-25, 01:12 AM
Last Post: mvallevand
  NextPVR latest version went missing. Ericktreetops 2 807 2023-08-10, 12:43 PM
Last Post: mvallevand
  Disable Live-TV buffering when using Kodi NextPVR add-on spin35 11 2,306 2023-05-06, 01:48 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode