NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 12 13 14 15 16 … 47 Next »
Weird duplicate recording of same show on ONE tuner?

 
  • 0 Vote(s) - 0 Average
Weird duplicate recording of same show on ONE tuner?
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#21
2011-11-13, 11:04 PM
[quote=UncleJohnsBand]I am not sure how you are getting the red lines at the top in NPVR......snip ... is there some config setting you set to get the red bars at the top?]/QUOTE]

Nope, not that I know of? I was hoping sub could say it was normal or not.

k
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,909
Threads: 956
Joined: May 2006
#22
2011-11-13, 11:06 PM
UncleJohnsBand Wrote:AutoRecord does not modify anything.....it simply submits a found event as a recording to the NPVR API....there is no consideration for it already being scheduled. It uses the same methods that NEWA uses when someone selects an event from the guide to record.

I guess without the web.log from the 6th we won't know what happened with The Pacific, but the second copy was added and not skipped by AutoSearch.exe, of course it could be certainly be the API causing the second record to be added.

Martin
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#23
2011-11-13, 11:08 PM
sub Wrote:Actually, thats not what I said. All I said was I dont know what NEWA saved searches do. ie, if you can reproduce it with recordings scheduled from built in screens, it'd make it a lot simpler for me to look into.

I dont know how these saved searches work, but I guess it could be searching for shows that match some criteria, then scheduling recordings. I dont know how it works in any detail though, so dont know how it'd avoid scheduling duplicate recordings if there is changes to the schedule etc. I could see that it'd be very easy for it to schedule duplicates. The NextPVR API will just be adding the scheduled recordings it's been told to.

Apologies, that is true, I misinterpreted that.

[HTML]if you can reproduce it with recordings scheduled from built in screens, it'd make it a lot simpler for me to look into.[/HTML]

What is it you need, the NEWA screens?

If it it is the PostEPGUpdate causing it, via NEWA_AutoSearch.exe, I could rem it out, but I put it in to make sure I didn't miss it running, otherwise I believe it only runs once a day.

Code:
REM  ====================================================
REM  PostUpdateEPG.bat addition for imageGrabLite
"C:\Program Files\NPVR\imageGrabLite.exe" --updateepg

REM  ====================================================
REM  PostUpdateEPG.bat addition for NEWA_AutoSearch
"C:\Program Files\NPVR\NEWA_AutoSearch.exe"

REM  ====================================================
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#24
2011-11-14, 12:50 AM
I am still confused as to what is being interpreted as the issue.....the db that jksmurf provided that has the issue.....the below shows the scheduled recordings in that timeperiod.....and there is only two and the timeframes seem to be correct....

What is the hypothesis that is wrong with how the recordings are being made when the data in the recordings table is correct?

[Image: recordingdb.jpg]
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
Offline

Posting Freak

Ontario Canada
Posts: 52,909
Threads: 956
Joined: May 2006
#25
2011-11-14, 01:22 AM
There are two problems,

1 The scheduled_recordings table time fields (the thin red coloured bar on top) don't always match the epg_event time fields.
2.On Nov. 6th (I posted some log entries earlier) AutoSearch created a second entry when the end time for The Pacific changed by 5 minutes.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#26
2011-11-14, 01:49 AM (This post was last modified: 2011-11-14, 02:42 AM by UncleJohnsBand.)
mvallevand Wrote:There are two problems,

1 The scheduled_recordings table time fields (the thin red coloured bar on top) don't always match the epg_event time fields.

I don't have any control over the NPVR display....that would be sub.....and NEWA appears to be showing correctly.

mvallevand Wrote:2.On Nov. 6th (I posted some log entries earlier) AutoSearch created a second entry when the end time for The Pacific changed by 5 minutes.

Martin

That would be what I expect to happen.....NEWA does the autosearch for search matches....it weeds out things that are already scheduled to record......but 5 minutes would be outside of the boundaries of the time check (for matching a found event to an already scheduled event) and it would think it should be a new recording and thus would submit.

Edit: Based on the review of the code in the below post you should only have gotten a double recording if the start time was moved more than 10 minutes from the new event and the scheduled one......or if the title or sub title changed....
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
#27
2011-11-14, 02:35 AM
Here is a patch that will display info if an exception is hit when checking to see if a found event is already scheduled.....the Catch of the Try/Catch forces a schedule to occur for the item being checked......perhaps this is where an issue is occurring....

Below is the code for the check for something already scheduled.....this loop occurs after we have pulled the OID's from the recordings table where the Title and and Channel OID match the event being checked...new logger info is visible in the Catch area.

Code:
//Loop through the results looking for a close match
            while (aReader.Read())
            {
                try
                {
                    int recOID = aReader.GetInt32(0);
                    //Create the scheduled recording from the found OID
                    ScheduledRecording rec = ScheduledRecording.LoadByOID(recOID);
                    //Create the EPGEvent from the cached info on the Sceduled Recording object
                    EPGEvent cached = EPGEvent.Parse(rec.CachedEventDetails);
                    if (cached.Title == eventToCheck.Title && cached.Subtitle == eventToCheck.Subtitle)
                    {
                        //Check to see if the Scheduled Recording is on the same date as the Event being checked
                        if (eventToCheck.StartTime.Date == rec.StartTime.Date)
                            //if (eventToCheck.StartTime.Date == cached.StartTime.Date)
                        {
                            //Check to see if the Scheduled Recording is within 10 minutes of the Event being checked

                            TimeSpan span = eventToCheck.StartTime - rec.StartTime;
                            int minutes = span.Minutes;
                            if (minutes <= 10 && minutes >= -10)
                            {
                                //close the reader
                                aReader.Close();
                                //Return the matched Scheduled Recording as a match
                                return rec;
                            }
                        }
                    }
                }
                catch (Exception e)
                {
                    Logger.Info("");
                    Logger.Info("***Exception Found....force schedule of matched recording:");
                    Logger.Info("           " + e);
                    Logger.Info("*** End of Exception Info");
                    Logger.Info("");
                    //close the reader
                    aReader.Close();
                    //Return null since no match was found
                    return null;
                }
            }

            //close the reader
            aReader.Close();
            return null;
        }
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
Offline

Posting Freak

Ontario Canada
Posts: 52,909
Threads: 956
Joined: May 2006
#28
2011-11-14, 03:18 AM
Does AutoSearch.exe simply cause this to be run? The start time doesn't look like it changed so it might be something else.

Also how does the API handle trying to record a "duplicate"? It might not allow you to schedule it twice.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#29
2011-11-14, 03:50 AM
mvallevand Wrote:Does AutoSearch.exe simply cause this to be run? The start time doesn't look like it changed so it might be something else.

Attached is a patched version of the newa_autosearch.exe with the same debugging in it......code shown above is same code executed in the stand-alone application.

mvallevand Wrote:Also how does the API handle trying to record a "duplicate"? It might not allow you to schedule it twice.

Martin

Not sure...that would be for sub.....I would just execute the call to schedule it.....the API would do whatever it does.
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
Offline

Posting Freak

Ontario Canada
Posts: 52,909
Threads: 956
Joined: May 2006
#30
2011-11-14, 04:21 AM (This post was last modified: 2011-11-14, 05:54 AM by mvallevand.)
UncleJohnsBand Wrote:Attached is a patched version of the newa_autosearch.exe with the same debugging in it......code shown above is same code executed in the stand-alone application.

Unfortunately I can't run the command line or auto search for that matter, I end up with an error, same thing with the Oct 14 update. Log attached.

Quote:Not sure...that would be for sub.....I would just execute the call to schedule it.....the API would do whatever it does.

I tested myself with SearchLite (turning off my safeguards) with NEWA and when multi-rec is available, NEWA will allow me to schedule the same show over and over via the API.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  NEWA scheduled recording update ability broken in 4.2.2 snagglewest 0 2,023 2018-07-11, 12:12 AM
Last Post: snagglewest
  Where does NEWA read the Show name from in the NEWA Web App? jksmurf 3 3,106 2018-07-03, 03:26 AM
Last Post: jksmurf
  Server Error when settign a manual recording in NEWA martinu 2 2,339 2017-01-23, 01:30 AM
Last Post: UncleJohnsBand
  Cancel Recording in Newa Not Working odin 1 2,516 2016-05-24, 07:24 PM
Last Post: UncleJohnsBand
  Trouble with manual recording - DateTime fullStartDate = DateTime.Parse(StartDateBox. milanwb 8 4,467 2015-09-01, 12:26 AM
Last Post: UncleJohnsBand
  Duplicate recording Scheduled in NEWA? jksmurf 17 6,135 2015-01-10, 02:49 AM
Last Post: UncleJohnsBand
  Bug: NEWA 2.11 - Manual recording returns server error '/' haste18 3 1,845 2014-02-08, 01:12 AM
Last Post: UncleJohnsBand
  Bug in manual recording ? giorgioclimb 1 1,340 2014-01-12, 05:33 AM
Last Post: UncleJohnsBand
  Deleting an active recording crashes rec service (and newa) softfoot 10 3,981 2013-11-28, 06:22 PM
Last Post: johnsonx42
  Newa stats doesnt show other disks. softfoot 1 1,279 2013-11-27, 03:20 AM
Last Post: UncleJohnsBand

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

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

Linear Mode
Threaded Mode