NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 3 4 5 6 7 … 93 Next »
Media Browser Integration

 
  • 0 Vote(s) - 0 Average
Media Browser Integration
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,117
Threads: 957
Joined: May 2006
#151
2013-12-19, 02:11 AM
UncleJohnsBand Wrote:I'll step through the code and see what happens... to confirm

In manageservice when not request recurring you are still getting recurring?
For a manual recording one-off you do not get anything because there is no EPG and no recurring?

Yes it .produced a recurr+rtn record like before my first patch. The attached patch does it they it should (IMO) ie an EPGEvent+schd+rtn

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#152
2013-12-19, 02:21 AM
mvallevand Wrote:Yes it .produced a recurr+rtn record like before my first patch. The attached patch does it they it should (IMO) ie an EPGEvent+schd+rtn

Martin

Thanks 20131218-2 on the FTP server has this patch applied.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#153
2013-12-19, 02:52 AM
mvallevand Wrote:No it works fine here, even with the Chrome addon UJB suggested. What C# parser are you using? My test is with Newtonsoft.

Martin

That came straight from fiddler. I've barely done anything with next pvr as i don't use it personally. i setup a few manual recordings just so i could see some data, so maybe it's related to that since they're pretty uncommon. Anyway it's fine. I can filter out the bad records if i have to, just reporting what i'm seeing.
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#154
2013-12-19, 02:53 AM
UncleJohnsBand Wrote:20131218-1 on server now uses channelId qyerstrng to take in the OID of the channel

Thank you.
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#155
2013-12-19, 04:50 PM
Just one more minor point of feedback, although sometimes it can be a little more than minor. It would be nice if all of these Get calls that require a json body could use the query string instead (or accept either). I think a typical practice that developers are going to do when debugging issues is look at their application logs to see what url's were requested, and then put that url into a browser just to get a quick look at the response.

And that's what I keep running into. When i see a discrepancy that I want to research, my first instinct is to look at my log and grab the url, but unfortunately it's not always something I can use to debug with.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,117
Threads: 957
Joined: May 2006
#156
2013-12-19, 06:44 PM
lukemb3 Wrote:Just one more minor point of feedback, although sometimes it can be a little more than minor. It would be nice if all of these Get calls that require a json body could use the query string instead (or accept either).

Do you mean POST

Martin
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#157
2013-12-19, 07:38 PM
Well for right now i"m just talking about ManageService/Get/SortedFilteredList, which technically is a POST but to the consumer it is conceptually a Get.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#158
2013-12-20, 02:05 AM
lukemb3 Wrote:Just one more minor point of feedback, although sometimes it can be a little more than minor. It would be nice if all of these Get calls that require a json body could use the query string instead (or accept either). I think a typical practice that developers are going to do when debugging issues is look at their application logs to see what url's were requested, and then put that url into a browser just to get a quick look at the response.

And that's what I keep running into. When i see a discrepancy that I want to research, my first instinct is to look at my log and grab the url, but unfortunately it's not always something I can use to debug with.

Lots of discussions on this topic... general consensus (at least on the .Net side of the house) is that query strings are acceptable with RESTful services. But best practices is to use direct url's when the function is for a single purpose with a single value (i.e. delete key =, add key=, get key =) and use querystrings as refiners and objects when it makes sense.

I thought that I was following that practice.

The posts (the ones with the JSON body) make the most sense (at least to me) since you are bringing in a lot of configuration pieces all at once.... and on the server side these objects are passed around through the layers used to produce the results.

If I built querystrings I think it would be a lot of extra management work on the server side to read, validate and construct into a usable object.... when that can be done from the client and passing of objects is part of the REST architecture.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#159
2013-12-20, 02:06 AM
lukemb3 Wrote:Well for right now i"m just talking about ManageService/Get/SortedFilteredList, which technically is a POST but to the consumer it is conceptually a Get.

yea... I am sure that is what was meant as they are the only ones that use the objects.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#160
2013-12-20, 03:07 AM
I don't really pay attention to .net flavors of Rest. To be honest I really have no idea what that means. I know that a major principle is that each interesting resource is available using a unique identifier, which in an http-based api means the Uri. Whether that's /Movies/Unwatched, or /Movies?IsWatched=false is largely a matter of taste. Either way you're pulling down a resource which is unwatched movies.

In any event, it's fine, I can work around it. But my own advice is that it sounds like you're exposing your domain implementation beyond your interface (the api). At least I get that impression based on you're saying that you built it so that clients construct the same objects as you do in your own domain. It just means you're going to feel some pain if you ever have to change anything.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (56): « Previous 1 … 14 15 16 17 18 … 56 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Looking for C# UPnP Media Server code bgowland 5 7,736 2016-12-16, 08:25 PM
Last Post: mvallevand
  Media\Show Directory mvallevand 12 6,101 2014-07-02, 10:58 AM
Last Post: sub
  Media\Shows Metadata mvallevand 2 1,921 2013-05-22, 04:09 AM
Last Post: mvallevand
  Streaming media imilne 44 13,115 2012-12-14, 04:05 AM
Last Post: mvallevand
  SkyDrive Eplorer Integration Released.....also available for Mac and iPad UncleJohnsBand 0 1,477 2012-04-24, 01:06 AM
Last Post: UncleJohnsBand
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,938 2012-02-05, 10:29 AM
Last Post: bgowland
  Windows Media Connect - Storing stuff on a Home Server psycik 3 2,745 2009-09-29, 03:47 AM
Last Post: mvallevand
  Plugin notification of stopped media mvallevand 7 2,390 2009-08-19, 11:16 PM
Last Post: mvallevand
  GBPVR Media Events KingArgyle 1 1,607 2005-03-27, 07:12 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode