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
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
2013-12-16, 04:45 PM
Ok. I didn't realize there were two different swagger url's. Which is preferred?
2013-12-16, 05:19 PM
In SortedFilteredList, what are the different values for Status ?
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
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.
2013-12-16, 05:45 PM
lukemb3 Wrote:Now I would like to get a list of upcoming recordings, so I did this: 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
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
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
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 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
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 |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Looking for C# UPnP Media Server code | bgowland | 5 | 7,288 |
2016-12-16, 08:25 PM Last Post: mvallevand |
|
Media\Show Directory | mvallevand | 12 | 5,676 |
2014-07-02, 10:58 AM Last Post: sub |
|
Media\Shows Metadata | mvallevand | 2 | 1,705 |
2013-05-22, 04:09 AM Last Post: mvallevand |
|
Streaming media | imilne | 44 | 11,998 |
2012-12-14, 04:05 AM Last Post: mvallevand |
|
SkyDrive Eplorer Integration Released.....also available for Mac and iPad | UncleJohnsBand | 0 | 1,351 |
2012-04-24, 01:06 AM Last Post: UncleJohnsBand |
|
Building a list of files in media folders (npvr Music and Videos) | bgowland | 2 | 1,700 |
2012-02-05, 10:29 AM Last Post: bgowland |
|
Windows Media Connect - Storing stuff on a Home Server | psycik | 3 | 2,505 |
2009-09-29, 03:47 AM Last Post: mvallevand |
|
Plugin notification of stopped media | mvallevand | 7 | 2,057 |
2009-08-19, 11:16 PM Last Post: mvallevand |
|
GBPVR Media Events | KingArgyle | 1 | 1,440 |
2005-03-27, 07:12 PM Last Post: sub |