NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 2 3 4 5 6 … 56 Next »
Plex Plugin - first release

 
  • 0 Vote(s) - 0 Average
Plex Plugin - first release
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#81
2012-11-22, 12:55 AM
RE: the name resolution stuff. With multiple (pc based I'm assumiung) clients, the plex plugin config should be set up for the machine name of the plex server.

And from your clients you should be able to try http://server:32400/library/sections and see some data. If you don't then it could be firewall on the plex host blocking the network access of port 32400. There's no reason it shouldn't be working from a plugin point of view, when i develop, I'm a different nextpvr client accessing my plex install. The only difference is my plex server is not my next pvr - well actually I have two plex installs, but that's for different reasons, and I don't access the 2nd one from the plugin.
smacrae
Offline

Senior Member

Posts: 255
Threads: 11
Joined: Aug 2012
#82
2012-11-22, 01:04 AM
Yep, Windows based NextPVR clients:

When I use the URL http://mediaserver:32400/library/sections I get the following output:

<?xml version="1.0" encoding="UTF-8" ?>
- <MediaContainer size="3" allowSync="0" identifier="com.plexapp.plugins.library" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1343603723" title1="Plex Library">
- <Directory art="/:/resources/movie-fanart.jpg" refreshing="0" key="2" type="movie" title="Movies" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" uuid="057d69a9-a605-4127-9e1c-a8bc0d279a0b" updatedAt="1353544513" createdAt="1337050065">
<Location path="//MEDIASERVER/Media/Videos/Movies" />
</Directory>
- <Directory art="/:/resources/artist-fanart.jpg" refreshing="0" key="3" type="artist" title="Music" agent="com.plexapp.agents.lastfm" scanner="Plex Music Scanner" language="en" uuid="ec9076b5-a1ea-4bc6-a795-9de861ada653" updatedAt="1353545412" createdAt="1337054254">
<Location path="M:/Music" />
</Directory>
- <Directory art="/:/resources/show-fanart.jpg" refreshing="0" key="1" type="show" title="TV Series" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" uuid="c47c462b-1ccd-41da-86e8-96ed3c767b71" updatedAt="1353544514" createdAt="1337047833">
<Location path="M:/Videos/TV" />
</Directory>
</MediaContainer>

However I get the following error in the log from your plugin:

22/11/2012 11:58:44 AM PlexPlugin.PlexConnect: Connect called, getting settings from "C:\Users\Public\NPVR\Plugins\PlexPlugin\Plex.xml"
22/11/2012 11:58:44 AM PlexPlugin.PlexConnect: Settings Retrieved
22/11/2012 11:58:44 AM PlexPlugin.PlexConnect: Getting Server "mediaserver"
22/11/2012 11:58:44 AM PlexPlugin.PlexConnect: Server set: "http://mediaserver:32400/"
22/11/2012 11:58:44 AM PlexPlugin.PlexConnect: Retrieving Sections for server
22/11/2012 11:58:44 AM Server.GetSection: Start, test IsOnline
22/11/2012 11:58:44 AM Server.IsOnline: Testing server is online at location "http://mediaserver:32400/"
22/11/2012 11:58:45 AM Server.IsOnline: Result returned from server, is online
22/11/2012 11:58:45 AM Server.GetSection: Server is online, setting location
22/11/2012 11:58:45 AM Server.GetSection: Location set to: "http://mediaserver:32400/library/sections/" deserialising....
22/11/2012 11:58:45 AM Server.Deserialise: Error deserialising "http://mediaserver:32400/library/sections/"
22/11/2012 11:58:45 AM Server.Deserialise: Error StackTrace: at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
at System.Reflection.CustomAttribute.GetCustomAttributes(Assembly assembly, RuntimeType caType)
at System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Xml.Serialization.TempAssembly.IsSerializerVersionMatch(Assembly serializer, Type type, String defaultNamespace, String location)
at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(Type type, String defaultNamespace, XmlSerializerImplementation& contract)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at dcSoftware.Plex.Navigation.Server.DeSerialise(Uri location)
22/11/2012 11:58:45 AM Server.GetSection: Could not return section information
22/11/2012 11:58:45 AM PlexPlugin.PlexConnect: Other Error message : Object reference not set to an instance of an object.
22/11/2012 11:58:45 AM PlexPlugin.PopulateList: Start

Sorry...really not sure what to do...
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#83
2012-11-22, 01:04 AM
smacrae Wrote:Great little plugin btw...


Thanks I use it everyday for all my movie and tv show viewing (of stuff that isn't recorded). On both Next PVR and a Popcorn Hour (with next pvr plugin). Pretty much does all I need it to.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#84
2012-11-22, 01:05 AM
smacrae Wrote:Sorry...really not sure what to do...

Have you tried going to
http://mediaserver:32400/library/sections/

in ie from one of the clients?

EDIT ignore this, - saw you posted the sections.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#85
2012-11-22, 01:16 AM
Hmm wild shot in the dark..it's finding the server, but seems to be complaining about parsing he sections. The only thing I can think of - is the music section you have.

You could try removing it....unless it's heavily used/customised etc then don't and I'll try and add a music section to mine for testing.
smacrae
Offline

Senior Member

Posts: 255
Threads: 11
Joined: Aug 2012
#86
2012-11-22, 02:09 AM
Unfortunately no go....I removed my Music section.

I can http with the following result:
<?xml version="1.0" encoding="UTF-8"?>
-<MediaContainer title1="Plex Library" mediaTagVersion="1343603723" mediaTagPrefix="/system/bundle/media/flags/" identifier="com.plexapp.plugins.library" allowSync="0" size="2"> -<Directory title="Movies" language="en" createdAt="1337050065" updatedAt="1353549737" uuid="057d69a9-a605-4127-9e1c-a8bc0d279a0b" scanner="Plex Movie Scanner" agent="com.plexapp.agents.imdb" type="movie" key="2" refreshing="0" art="/:/resources/movie-fanart.jpg"> <Location path="//MEDIASERVER/Media/Videos/Movies"/> </Directory> -<Directory title="TV Series" language="en" createdAt="1337047833" updatedAt="1353549734" uuid="c47c462b-1ccd-41da-86e8-96ed3c767b71" scanner="Plex Series Scanner" agent="com.plexapp.agents.thetvdb" type="show" key="1" refreshing="0" art="/:/resources/show-fanart.jpg"> <Location path="M:/Videos/TV"/> </Directory> </MediaContainer>

Plex.log is as follows:
22/11/2012 1:03:13 PM PlexPlugin.PlexConnect: Connect called, getting settings from "C:\Users\Public\NPVR\Plugins\PlexPlugin\Plex.xml"
22/11/2012 1:03:13 PM PlexPlugin.PlexConnect: Settings Retrieved
22/11/2012 1:03:13 PM PlexPlugin.PlexConnect: Getting Server "192.168.137.46"
22/11/2012 1:03:13 PM PlexPlugin.PlexConnect: Server set: "http://192.168.137.46:32400/"
22/11/2012 1:03:13 PM PlexPlugin.PlexConnect: Retrieving Sections for server
22/11/2012 1:03:13 PM Server.GetSection: Start, test IsOnline
22/11/2012 1:03:13 PM Server.IsOnline: Testing server is online at location "http://192.168.137.46:32400/"
22/11/2012 1:03:13 PM Server.IsOnline: Result returned from server, is online
22/11/2012 1:03:13 PM Server.GetSection: Server is online, setting location
22/11/2012 1:03:13 PM Server.GetSection: Location set to: "http://192.168.137.46:32400/library/sections/" deserialising....
22/11/2012 1:03:13 PM Server.Deserialise: Error deserialising "http://192.168.137.46:32400/library/sections/"
22/11/2012 1:03:13 PM Server.Deserialise: Error StackTrace: at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
at System.Reflection.CustomAttribute.GetCustomAttributes(Assembly assembly, RuntimeType caType)
at System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Xml.Serialization.TempAssembly.IsSerializerVersionMatch(Assembly serializer, Type type, String defaultNamespace, String location)
at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(Type type, String defaultNamespace, XmlSerializerImplementation& contract)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at dcSoftware.Plex.Navigation.Server.DeSerialise(Uri location)
22/11/2012 1:03:13 PM Server.GetSection: Could not return section information
22/11/2012 1:03:13 PM PlexPlugin.PlexConnect: Other Error message : Object reference not set to an instance of an object.
22/11/2012 1:03:13 PM PlexPlugin.PopulateList: Start

I have tried with the name of the server (mediaserver - hard coded hosts file resolving to the IP address of the PMS box) and also tried with the IP address. No firewall is turned on, as a matter of fact from these boxes I can run Plex Media Client and connect to the server with no issues...just rather use one client interface on a device than 2 and evenghost etc. for more WAF and simplicity for the kids.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#87
2012-11-22, 02:36 AM
Yeah it's not, not connecting to it, that's happening.
Code:
22/11/2012 1:03:13 PM Server.IsOnline: Testing server is online at location "http://192.168.137.46:32400/"
22/11/2012 1:03:13 PM Server.IsOnline: Result returned from server, is online
22/11/2012 1:03:13 PM Server.GetSection: Server is online, setting location

There's something it doesn't like in the sections xml it's getting back.

I'm just hacking something together to take a string (rather than a url) so I can input your sections xml and see if i can figure out what's wrong.
smacrae
Offline

Senior Member

Posts: 255
Threads: 11
Joined: Aug 2012
#88
2012-11-22, 02:43 AM
Thanks...sorry for the inconvenience
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#89
2012-11-22, 02:47 AM
smacrae Wrote:Thanks...sorry for the inconvenience

So I just tried a gui version I use for writing the plex code, and it accepted your xml file no problems.....this confuses me.

You don't have authentication turned on at all?

And remind me again, does the plugin work on the plex server just not the clients?
smacrae
Offline

Senior Member

Posts: 255
Threads: 11
Joined: Aug 2012
#90
2012-11-22, 02:57 AM (This post was last modified: 2012-11-22, 03:07 AM by smacrae.)
You got it, works from the Plex Server, not the Clients....no firewall or authentication turned on...

I do have myPlex but for local LAN that shouldn't be an issue.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (15): « Previous 1 … 7 8 9 10 11 … 15 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextEnd V2 Pre-Release Announcement mvallevand 94 38,691 2018-02-20, 06:52 PM
Last Post: mvallevand
  Plex Channel for NextPVR psycik 289 173,861 2018-01-14, 04:17 AM
Last Post: psycik
  New plugin - MovieTrailers imilne 11 6,019 2014-09-25, 08:16 AM
Last Post: imilne
  HD Logos for the NPVR WebRadio Plugin Lao Pan 3 3,294 2014-02-09, 01:32 PM
Last Post: Lao Pan
  Files plugin tmrt 13 7,268 2014-01-09, 11:16 PM
Last Post: mvallevand
  NEWA Release Build 2.10 Released 2013-12-30 UncleJohnsBand 0 2,118 2013-12-31, 02:53 AM
Last Post: UncleJohnsBand
  NEWA Release Build 1.30 Released 2012-11-27 UncleJohnsBand 0 2,195 2012-11-28, 04:11 AM
Last Post: UncleJohnsBand
  Web Cams plugin for NextPVR McBainUK 37 15,225 2012-10-19, 07:35 AM
Last Post: McBainUK
  NEWA Release Build 1.26 Released 2012-08-24 UncleJohnsBand 0 5,380 2012-08-25, 04:56 AM
Last Post: UncleJohnsBand
  PhotoFilter: New Photos/Videos plugin to browse using metadata cncb 1 1,920 2012-08-10, 04:06 PM
Last Post: cncb

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

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

Linear Mode
Threaded Mode