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
Online

Posting Freak

Ontario Canada
Posts: 53,164
Threads: 958
Joined: May 2006
#111
2013-12-16, 05:31 AM
lukemb3 Wrote:thanks, this worked, although it's stime and etime, and not in swagger.

They are documented in /api for me.

Martin
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#112
2013-12-16, 04:45 PM
Ok. I didn't realize there were two different swagger url's. Which is preferred?
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#113
2013-12-16, 05:19 PM
In SortedFilteredList, what are the different values for Status ?
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#114
2013-12-16, 05:26 PM
Also, there are some things I'm a little unclear on. I realize GetSortedFilteredList is the most powerful way to get recordings given all of the params, but sometimes it's nice to spoon-feed developers with overloads for the most common use cases.

For example, I want to get a list of recordings - whether completed or in progress. I did this

var filterOptions = new
{
resultLimit = -1,
All = false,
None = false,
Pending = false,
InProgress = true,
Completed = true,
Failed = true,
Conflict = false,
Recurring = false,
Deleted = false
};

I got back the correct results, but included in them was a single recurring parent. I am not sure why and it's hard to tell if this is a bug or the wrong params, so I filtered it client-side to remove results where schd == null
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#115
2013-12-16, 05:30 PM
Now I would like to get a list of upcoming recordings, so I did this:
{
"resultLimit": -1,
"All": false,
"None": false,
"Pending": true,
"InProgress": false,
"Completed": false,
"Failed": false,
"Conflict": true,
"Recurring": false,
"Deleted": false
}

All recordings in the future, whether pending or conflicted. This appears to be working, but as with the last example it looks like i have to filter out recurring parents client-side.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,164
Threads: 958
Joined: May 2006
#116
2013-12-16, 05:45 PM
lukemb3 Wrote:Now I would like to get a list of upcoming recordings, so I did this:
{
"resultLimit": -1,
"All": false,
"None": false,
"Pending": true,
"InProgress": false,
"Completed": false,
"Failed": false,
"Conflict": true,
"Recurring": false,
"Deleted": false
}

All recordings in the future, whether pending or conflicted. This appears to be working, but as with the last example it looks like i have to filter out recurring parents client-side.

Conflicts aren't supported in NextPVR so it probably isn't worth coding for them until it is defined.

The EPGEvents class is tricky to work with you can get many combinations the 4 epgEventJSONObject classes that it returned depending on what is in the recording list. I always ignore rtn too.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,164
Threads: 958
Joined: May 2006
#117
2013-12-16, 10:35 PM
lukemb3 Wrote:In SortedFilteredList, what are the different values for Status ?

"Pending";
"In-Progress";
"Completed";
"Failed";
"Conflict";
"PlaceHolder";
"Deleted";

These map to the NUtilty.RecordingStatus enum from the NextPVR API.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,164
Threads: 958
Joined: May 2006
#118
2013-12-16, 11:33 PM
lukemb3 Wrote:I got back the correct results, but included in them was a single recurring parent. I am not sure why and it's hard to tell if this is a bug or the wrong params, so I filtered it client-side to remove results where schd == null

Could you upload your db3 file somewhere and I can try to see what is up. If you empty the db3 file it is small enough to compress and post without the epg data. I don't recall this and my database starts with npvr.db3 from the first betas without being rebuilt.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#119
2013-12-16, 11:56 PM
lukemb3 Wrote:what's an example of sortFilter for SortedFilteredList?

mvallevand Wrote: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

I have included endpoints to get a default sort filter object.... check the swagger doc at http://localhost/API under manage service....

/public/ManageService/Get/RecordingsSortFilterObj
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
#120
2013-12-16, 11:59 PM
lukemb3 Wrote:what's an example of sortFilter for SortedFilteredList?

lukemb3 Wrote:thanks, this worked, although it's stime and etime, and not in swagger.

Look at http://locahost:8866/API (you may need to clear your browser cache if you are not seeing the methods).

I have now removed the self-generating swagger doc as it didn't provide enough info.... what is at the API location is hand rolled swagger docs using the swagger-core app to present the info.

Let me know if that helps.
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
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

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


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