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
#311
2014-02-12, 12:44 AM
mvallevand Wrote:I can easily duplicate this error scenario choosing a multi-rec channel, but I am not sure if it is NEWA or the API at fault.

Martin

So do you mean schedule 2 shows that run on the same physical channel? i.e. channel 71 has 5 channel streams running in it... if I schedule 2 programs that live in channel 71 it will fail like this?
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
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,170
Threads: 958
Joined: May 2006
#312
2014-02-12, 12:51 AM
Yes that definitely fails here, with only one tuner, through NextPVR both get scheduled. Of course Svekke has an analogue tuner so it's a different situation, but it could be the same cause.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,170
Threads: 958
Joined: May 2006
#313
2014-02-12, 03:06 AM (This post was last modified: 2014-02-12, 03:31 AM by mvallevand.)
It looks like the new beta API code called by NEWA scheduleHelper.GetConflicts(channel, start, end) may not be aware of multiple tuners. UJB, if you changed the logic to schedule first and then run GetConflicts on error it might work.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#314
2014-02-12, 03:37 AM
mvallevand Wrote:It looks like the new beta API code called by NEWA scheduleHelper.GetConflicts(channel, start, end) may not be aware of multiple tuners. UJB, if you changed the logic to schedule first and then run GetConflicts on error it might work.

Martin

Thanks Martin... I just got done stepping through the scenario.. The fix is really for sub to change the GetConflicts method to verify that the identified conflict is in-fact a conflict.

I shouldn't need to submit a recording, check for it to fail, then check if it failed because of conflict.

sub.... can you enhance this method to take into consideration if the event falls in the same channel stream as something else recording that it is not a conflict?
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
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,170
Threads: 958
Joined: May 2006
#315
2014-02-12, 05:59 AM
To me it would make more sense to check on error only, most recordings will not be conflicts, but I leave it to sub to see what he wants to do with the api.

@Svekke if you wanted to test with multiple recordings I'd edit web\App_Code\Classes\webServiceSchedule.cs and in CheckConflicts() I'd immediately return false

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#316
2014-02-12, 11:40 AM
ScheduleHelper.GetConflicts() should only be called if ScheduleHelper.ScheduleRecording() fails. It's not supposed to be used to check for conflicts prior to scheduling. It's only intended to get a list of overlapping recordings associated with each tuner, to display the list conflicts associated with each tuner that caused their recording request to fail.
lukemb3
Offline

Member

Posts: 109
Threads: 1
Joined: Jul 2013
#317
2014-02-12, 04:58 PM
Now that all of our ui developers are working on adding live tv, we'll start floating some teasers every so often. So here's a windows phone shot:

[Image: 52fba7f77161f_SeriesRecordings.png]
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#318
2014-02-12, 11:52 PM
sub Wrote:ScheduleHelper.GetConflicts() should only be called if ScheduleHelper.ScheduleRecording() fails. It's not supposed to be used to check for conflicts prior to scheduling. It's only intended to get a list of overlapping recordings associated with each tuner, to display the list conflicts associated with each tuner that caused their recording request to fail.

sub... this goes back to our e-mail conversation a month or so ago when I indicated I was scheduling and when failed I was looking for a status of Conflict on the recording. You indicated that you hadn't been setting the Conflict setting for some time (I believe since NPVR) but were considering introducing it back in and said instead I should verify there are no conflicts before scheduling....or at least that is thought that was your direction on it....

So I should schedule an event and if the returned schedule object is null then check for conflicts using the method..... or does the recording now get created and will have a status of conflict?
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#319
2014-02-13, 12:39 AM
UncleJohnsBand Wrote:sub... this goes back to our e-mail conversation a month or so ago when I indicated I was scheduling and when failed I was looking for a status of Conflict on the recording. You indicated that you hadn't been setting the Conflict setting for some time (I believe since NPVR) but were considering Sorry, no that's definitely the wrong way around. You've got to try scheduling the recording, and if fails, then ask for the list of conflicts.

So I should schedule an event and if the returned schedule object is null then check for conflicts using the method..... or does the recording now get created and will have a status of conflict?
Yeah, you definitely need to schedule the recording, and if it fails (returns null), then call GetConflicts().

You'll only get a scheduled recording marked as 'conflict' in the database as part of a recurring recording, i.e. typically during the overnight processing when it find it can't satisfy all the recording rules. This type of conflict would then show in the Recordings->Conflicts screen to let the user know. This conflict behaviour is the same way GBPVR operated in the ancient history.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#320
2014-02-13, 01:13 AM
sub Wrote:Yeah, you definitely need to schedule the recording, and if it fails (returns null), then call GetConflicts().

You'll only get a scheduled recording marked as 'conflict' in the database as part of a recurring recording, i.e. typically during the overnight processing when it find it can't satisfy all the recording rules. This type of conflict would then show in the Recordings->Conflicts screen to let the user know. This conflict behaviour is the same way GBPVR operated in the ancient history.

Great... thanks... will do....

I'll get an update onto the FTP server hopefully tonight.
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: 7 Guest(s)

Pages (56): « Previous 1 … 30 31 32 33 34 … 56 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Looking for C# UPnP Media Server code bgowland 5 7,753 2016-12-16, 08:25 PM
Last Post: mvallevand
  Media\Show Directory mvallevand 12 6,127 2014-07-02, 10:58 AM
Last Post: sub
  Media\Shows Metadata mvallevand 2 1,943 2013-05-22, 04:09 AM
Last Post: mvallevand
  Streaming media imilne 44 13,218 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,954 2012-02-05, 10:29 AM
Last Post: bgowland
  Windows Media Connect - Storing stuff on a Home Server psycik 3 2,761 2009-09-29, 03:47 AM
Last Post: mvallevand
  Plugin notification of stopped media mvallevand 7 2,411 2009-08-19, 11:16 PM
Last Post: mvallevand
  GBPVR Media Events KingArgyle 1 1,622 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