SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-22-2018, 12:01 AM
BACON's Avatar
BACON BACON is offline
Sage User
 
Join Date: Jan 2010
Location: Chicago, IL
Posts: 15
Question Reruns less than a month old appearing as First Run episodes

I have Late Night with Seth Meyers added as a Favorite set to record First Runs only, and I'm trying to figure out why episodes that are weeks old consistently appear with the First Run indicator and, therefore, get re-recorded. This is the only Favorite with which I have this problem. Some of these recordings I mark as Watched and some I don't, but I manually delete them all either way and, of course, it's the reruns marked First Run but not Watched that are causing problems.

For example, episode EP018423000730 is re-airing tonight. It has an Original Air Date of July 30th, 2018, yet also appears as a First Run. I notice that an hour earlier episode EP01711071015 of The Tonight Show Starring Jimmy Fallon, which is not a Favorite, from July 26, 2018 will air, and it, too, is listed as a First Run.

Tomorrow night episode EP017211071010 of The Tonight Show from July 19, 2018 will air, and it is not listed as a First Run, but an hour later episode EP018423000733 of Late Night from August 2nd, 2018 airs, which (incorrectly-but-still-consistently) is listed as a First Run.

The thread Show called First Run even so it is Re-Run is about the same problem with the previous incarnation of The Tonight Show, and there's some conversation about it being the fault of the EPG provider. I went so far as to query the SchedulesDirect JSON API directly for the metadata for those episodes and I see it only contains an originalAirDate field but no flag indicating first run or rerun. SageTV (or the SchedulesDirect plugin?) must be deriving that information from somewhere, but evidently is not simply comparing the airing date to the original airing date.

From the above examples it seems anything re-airing within ~30 days is still being considered a First Run. In the thread incorrect first run recordings Opus4 writes "First Runs are defined to be any show aired within the first week or so of its initial airing cycle", but does this fall within the definition of "or so" or is there something else going on here?

Edit: I found my answer in the source code:

Code:
/**
 * @return First Run state - defined as Live or New or within 28 days of the Original Air Date.
 */
public boolean isFirstRun() {
	Show s = getShow();
	return ((miscB & (LIVE_MASK | NEW_MASK)) != 0)
			|| (s != null && ((time - s.originalAirDate) < 28 * Sage.MILLIS_PER_DAY));
}
28 days is the cutoff and it's hard-coded.
__________________
As of 2019-11-13
Software: SageTV v9.1.7.581 (Server/Client), 32-bit Java 8 Update 161, 64-bit Windows 10 Pro
Hardware: GIGABYTE GA-EP45-DS3R, Pentium Dual Core E5200, 4 GB DDR2, nVidia GeForce GT 240
Input: Rooftop antenna → Hauppauge HVR-2250, Hauppauge HVR-1250
Output: Samsung PN51D7000 via HDMI

Last edited by BACON; 08-22-2018 at 12:48 AM. Reason: Added source code showing how First Run airings are determined
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some video files not appearing, some not appearing correctly. JonTom SageMC Custom Interface 0 07-03-2010 02:59 PM
Fringe episodes showing as reruns Batman7349 SageTV EPG Service 4 10-01-2008 10:19 AM
One Month - First Impressions dadof4 SageTV Software 4 07-31-2008 12:13 AM
Will Sage be at CES next month? mikesm General Discussion 6 01-03-2007 11:00 AM
why do i have to reinstall every month wbarber69 SageTV Software 5 03-30-2005 02:42 PM


All times are GMT -6. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.