Jump to content


Photo

New plugin for NextPVR


  • Please log in to reply
114 replies to this topic

#1 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 09 May 2019 - 01:41 PM

I am in the process of starting the port for v5 of NextPVR and I was wondering how can I create a second LiveTV plugin (not instance) for NextPVR rather than trying to put conditions of every single call. This would also allow for users to use both setups during testing and initial implementations. Martin
  • candyman and Silverking like this

#2 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 14 May 2019 - 02:51 PM

I originally posted this question in the LiveTV NextPVR sub-forum.

 

I am in the process of starting the port for v5 of NextPVR and I was wondering how can I create a second LiveTV plugin (not instance) for NextPVR rather than trying to put conditions of every single call. This would also allow for users to use both setups during testing and initial implementations.

 

 

Perhaps it is better here.  Can anyone help me?

 

Martin



#3 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 47472 posts
  • Local time: 08:18 PM

Posted 14 May 2019 - 05:40 PM

You'd just need to give it a different dll name and GUID.



#4 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 14 May 2019 - 07:16 PM

Thanks. After that how do I get it added to Emby as a PVR choice for any premium user?  

 

Martin


Edited by emveepee, 06 June 2019 - 05:52 PM.


#5 Silverking OFFLINE  

Silverking

    Newbie

  • Members
  • 1 posts
  • Local time: 02:18 AM

Posted 15 May 2019 - 05:57 AM

Looking forward to testing this. However the Emby team don't seem to be interested as no one has bothered to reply!



#6 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 47472 posts
  • Local time: 08:18 PM

Posted 15 May 2019 - 10:19 AM

For beta testing just provide the dll in a forum topic.  Once everything is completely fleshed out, we can investigate putting it in the catalog.  Thanks.



#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139848 posts
  • Local time: 08:18 PM

Posted 15 May 2019 - 02:22 PM

Thanks. After that how do I get it added to Emby as a PVR choice for any premium user? Martin

 

Apologies for being slow to respond. Once you setup the next pvr plugin settings, then you just have to run the refresh guide scheduled task in Emby. Once that finishes, there's nothing else that needs to be done.



#8 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 15 May 2019 - 11:28 PM

Apologies for being slow to respond. Once you setup the next pvr plugin settings, then you just have to run the refresh guide scheduled task in Emby. Once that finishes, there's nothing else that needs to be done.

 

Ok thanks. I assume you mean that is the setup for any beta testing since I do want it in the catalog later on.

 

Martin



#9 pĆ¼nktchen OFFLINE  

pĆ¼nktchen

    Advanced Member

  • Members
  • 2226 posts
  • Local time: 02:18 AM

Posted 16 May 2019 - 06:51 AM

Ok thanks. I assume you mean that is the setup for any beta testing since I do want it in the catalog later on.

Martin

I think Luke didn't really read your question, but used one of his standard answers.
  • Spaceboy likes this

#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139848 posts
  • Local time: 08:18 PM

Posted 16 May 2019 - 02:41 PM

Sorry, I misunderstood. I thought you were asking how to test the plugin in Emby Server. When you get to the stage of adding it to the catalog, we can help you with that.



#11 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 02 June 2019 - 11:02 PM

Looking at the port code does anyone know how LiveTvServiceStatusInfo() is used and where/if I can get that to display in Emby?

 

Martin


Edited by emveepee, 02 June 2019 - 11:10 PM.


#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139848 posts
  • Local time: 08:18 PM

Posted 03 June 2019 - 01:25 AM

It's not currently used.



#13 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 06 June 2019 - 01:25 PM

You'd just need to give it a different dll name and GUID.

 

Ok I renamed the dll and GUID  and I see this in the log

 

2019-06-06 13:10:25.214 Info App: Loading MediaBrowser.Plugins.NextPvr, Version=3.3.3.0, Culture=neutral, PublicKeyToken=null from D:\Emby\programdata\plugins\MediaBrowser.Plugins.NextPvr5.dll

 

But it doesn't show up as a plugin and there are no further errors in the log.

 

Martin



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139848 posts
  • Local time: 08:18 PM

Posted 06 June 2019 - 01:34 PM

What version of the server and what version of the nuget package did you build against?



#15 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 06 June 2019 - 01:59 PM

I just built against whatever I pulled from github

 

It shows 4.2.0.9 beta

 

Martin



#16 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 06 June 2019 - 05:50 PM

After reverting your recent beta change it shows up and I can configure and start testing.  I now need to figure out how to empty the DVR database from the old server data

 

 

Martin


Edited by emveepee, 06 June 2019 - 05:52 PM.


#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139848 posts
  • Local time: 08:18 PM

Posted 06 June 2019 - 06:03 PM

I just built against whatever I pulled from github

 

It shows 4.2.0.9 beta

 

Martin

 

Ok, yes, make sure to use the latest nuget package that has a version number equal to or less than your server version.



#18 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 07 June 2019 - 11:21 AM

A few questions on moving forward, I got this working in the debugger now (Emby is not running as a service)

 

1) Is the dll reloaded when it is changed or do I need restart the server?

 

2) Can Emby be stopped from a link or command line curl instead of the tray?  I found a message to use

 

/system/shutdown but I tried http://localhost:8096/system/shutdown and http://localhost:809...system/shutdown without success

 

3) Is there any documentation on what fields need to be completed and not left as null in the classes that are returned.  I am working on timers and recordings to start and I get the lists but no contents just a lot spinning circle.  The calls happen a lot so I am thinking that Emby is expecting more.

 

Martin


Edited by emveepee, 07 June 2019 - 11:33 AM.


#19 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139848 posts
  • Local time: 08:18 PM

Posted 07 June 2019 - 10:39 PM

You have to restart the server. Your first url should work though, what happened when you tried that?

#20 emveepee OFFLINE  

emveepee

    Advanced Member

  • Members
  • 299 posts
  • Local time: 08:18 PM

Posted 08 June 2019 - 12:27 AM

I get a text response with "Unable to find the specified file"  perhaps that is for service instances only?

 

Martin


Edited by emveepee, 08 June 2019 - 12:31 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users