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
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#101
2013-12-16, 03:16 AM
lukemb3 Wrote:I've installed the latest, however I still have only have two methods under ManageService.

mvallevand Wrote:Odd, I found the opposite, with newa json it includes shows that start at the end time.

Martin

mvallevand Wrote:Yes I had to modify Routes.cs with the following to get the Post event working too, it doesn't work from /api though. I emailed UJB on this earlier today.

Code:
RouteTable.Routes.MapHttpRoute(
                "GetList",
                "public/ManageService/Get/List",
                new { Controller = "ManageService", Action = "GetList" },
                new { httpMethod = new HttpMethodConstraint("Post") }
                );

Martin

Yea... my bad on the swagger documentation.... I had a bad endpoint.... it should be: /public/ManageService/Get/SortedFilteredList

I'll post an update tonight on the FTP server.... sorry about that.
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
#102
2013-12-16, 03:16 AM
lukemb3 Wrote:i posted some web client previews in our forum:

http://mediabrowser3.com/community/index...v/?p=49733

once we finish the last bit of management features we'll move onto playback

Looking good!
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
#103
2013-12-16, 03:18 AM
lukemb3 Wrote:I've attempted to switch to the json endpoint for listings, however unlike the web service it only returns a few hours worth of data. is there a way i can get everything like the web service method?

Have you tried putting in a sdate endate set with an unix date for 1/1/2000 and 1/1/3000 I would think that would return all listings

Let me know.
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
#104
2013-12-16, 03:25 AM
UncleJohnsBand Wrote:Yea... my bad on the swagger documentation.... I had a bad endpoint.... it should be: /public/ManageService/Get/SortedFilteredList

I'll post an update tonight on the FTP server.... sorry about that.

Just put a new update on the FTP server... should correct the manageservice issue.... the swagger doc was wrong as was the method name in the manageservicecontroller class.... swagger doc, routes class and manageservicecontroller class all line up now.
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
#105
2013-12-16, 03:56 AM
lukemb3, Svekke - looking for your opinions on this....

mvallevand and I are discussing the return objects from the ManageService and the Search Service..... Currently I return a container object named to align to the service the results are coming from - ManageResults & SearchResults - the Array name and objects within the array are the same.

Is it preferable to have the containing object named the same for these (i.e. something like NEWA_REST_Return) or have them separately named as they are currently?

The original thought was independent containing objects allowed for independent updates to those objects (outside of the EPGEvents array containing the epgEventJSONObject (s) without impact to the other Objects.

Your thoughts/opinions on this would be appreciated.

Thanks.
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
#106
2013-12-16, 04:26 AM
what's an example of sortFilter for SortedFilteredList?
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#107
2013-12-16, 04:40 AM
UncleJohnsBand Wrote:lukemb3, Svekke - looking for your opinions on this....

mvallevand and I are discussing the return objects from the ManageService and the Search Service..... Currently I return a container object named to align to the service the results are coming from - ManageResults & SearchResults - the Array name and objects within the array are the same.

Is it preferable to have the containing object named the same for these (i.e. something like NEWA_REST_Return) or have them separately named as they are currently?

The original thought was independent containing objects allowed for independent updates to those objects (outside of the EPGEvents array containing the epgEventJSONObject (s) without impact to the other Objects.

Your thoughts/opinions on this would be appreciated.

Thanks.


truthfully, from the client perspective i think that's pretty trivial and doesn't really matter. A lot of our list endpoints return objects that use this:

public class QueryResult<T>
{
/// <summary>
/// Gets or sets the items.
/// </summary>
/// <value>The items.</value>
public T[] Items { get; set; }

/// <summary>
/// The total number of records available
/// </summary>
/// <value>The total record count.</value>
public int TotalRecordCount { get; set; }

/// <summary>
/// Initializes a new instance of the <see cref="ItemsResult" /> class.
/// </summary>
public QueryResult()
{
Items = new T[] { };
}
}

Some services subclass it to add additional info. But whether you call the result set Items, Results, or something particular to the method, i don't think it really matters.

The only thing I would suggest on the topic of return data is to use natural http response codes as much as you possibly can. In other words, remove the error properties and just have the server throw an error. As it is now clients have to both handle errors and check the error property.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#108
2013-12-16, 04:44 AM
lukemb3 Wrote:what's an example of sortFilter for SortedFilteredList?
Here's what I use for good recordings. I get results from c# and python but not swagger

Code:
{
  "resultLimit": -1,
  "datetimeSortSeq": 0,
  "channelSortSeq": 2,
  "titleSortSeq": 1,
  "statusSortSeq": 3,
  "datetimeDecending": false,
  "channelDecending": false,
  "titleDecending": false,
  "statusDecending": false,
  "All": true,
  "None": false,
  "Pending": false,
  "InProgress": true,
  "Completed": true,
  "Failed": false,
  "Conflict": false,
  "Recurring": false,
  "Deleted": false,
  "FilterByName": false,
  "NameFilter": null,
  "NameFilterCaseSensative": false
}

Martin
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#109
2013-12-16, 04:59 AM
ok, thanks. it looks like i'll have to play with all those query filters to get what i need. i need three lists - completed recordings, upcoming recordings (the instances, not the recurring parents), then the recurring parent recordings.
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#110
2013-12-16, 05:00 AM
UncleJohnsBand Wrote:Have you tried putting in a sdate endate set with an unix date for 1/1/2000 and 1/1/3000 I would think that would return all listings

Let me know.

thanks, this worked, although it's stime and etime, and not in swagger.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (56): « Previous 1 … 9 10 11 12 13 … 56 Next »
Jump to page 


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