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 12-18-2014, 05:51 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Watched Episodes

Let's say a friend calls and asks you if you watched a specific episode of a particular program, from last Spring for example. Note that this isn't necessarily the scenario, but it does help ask the question.

This program is one of my favorites, how would one view a listing of those episodes that I have already "watched?"
Reply With Quote
  #2  
Old 12-18-2014, 05:53 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Part two of this same question will be how to determine which episodes are at least partially watched.
Reply With Quote
  #3  
Old 12-18-2014, 07:45 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Assuming you have the web ui installed, create a file called favs.groovy and place it in SageTV\webserver\groovy\ folder. Put the following in it:

Code:
import sagex.api.*

if(params.favid != null && params.favid =~ /\d+/) {
	def fav = FavoriteAPI.GetFavoriteForID(params.favid.toInteger())
	if(fav) {
		response.contentType = 'text/plain'
		FavoriteAPI.GetFavoriteAirings(fav).findAll { AiringAPI.GetAiringEndTime(it) < System.currentTimeMillis() }.unique { ShowAPI.GetShowExternalID(it) }.sort { ShowAPI.GetOriginalAiringDate(it) }.each {
			def s = ShowAPI.GetShowSeasonNumber(it)
			def e = ShowAPI.GetShowEpisodeNumber(it)
			def seNum = s && e ? String.format('S%02dE%02d', s, e) : ''
			out << "${new Date(ShowAPI.GetOriginalAiringDate(it)).format('yyyy-MM-dd')}\t$seNum\t${AiringAPI.IsWatched(it) ? 'WATCHED' : 'NOT WATCHED'}\t${ShowAPI.GetShowEpisode(it)}\n"
		}
	} else
		response.sendError(400, "favid is not valid! [$params.favid]")
} else
	response.sendError(400, 'favid param not set!')
Then go to http://<yourserver>/sage/favs.groovy?favid=zzzzz

Replace zzzzz with the fav id of the fav you're interested in.

I don't think it answers all of your questions, but it's a good start (and the best you're going to get from me as I limited myself to 10 minutes ).

Sample output from my system (anyone know the favourite?? ):

Code:
http://192.168.5.100:8080?favid=1646186
Code:
2010-01-14	S01E13	WATCHED	Investigative Journalism
2010-01-21	S01E14	WATCHED	Interpretive Dance
2010-02-11	S01E16	WATCHED	Communication Studies
2010-03-04	S01E17	WATCHED	Physical Education
2010-03-11	S01E18	WATCHED	Basic Genealogy
2010-03-18	S01E19	WATCHED	Beginner Pottery
2010-03-25	S01E20	WATCHED	The Science of Illusion
2010-04-22	S01E21	WATCHED	Contemporary American Poultry
2010-04-29	S01E22	WATCHED	The Art of Discourse
2010-05-06	S01E23	WATCHED	Modern Warfare
2010-05-13	S01E24	WATCHED	English as a Second Language
2010-05-20	S01E25	WATCHED	Pascal's Triangle Revisited
2010-09-23	S02E01	WATCHED	Anthropology 101
2010-09-30	S02E02	WATCHED	Accounting for Lawyers
2010-10-21	S02E05	WATCHED	Messianic Myths and Ancient Peoples
2010-10-28	S02E06	WATCHED	Epidemiology
2010-11-04	S02E07	WATCHED	Aerodynamics of Gender
2010-11-11	S02E08	WATCHED	Cooperative Calligraphy
2010-12-02	S02E10	WATCHED	Mixology Certification
2010-12-09	S02E11	WATCHED	Abed's Uncontrollable Christmas
2011-02-10	S02E15	WATCHED	Early 21st Century Romanticism
2011-03-17	S02E18	WATCHED	Custody Law and Eastern European Diplomacy
2011-03-24	S02E19	WATCHED	Critical Film Studies
2011-04-14	S02E20	WATCHED	Competitive Wine Tasting
2011-04-21	S02E21	WATCHED	Paradigms of Human Memory
2011-04-28	S02E22	WATCHED	Applied Anthropology and Culinary Arts
2011-05-05	S02E23	WATCHED	A Fistful of Paintballs
2011-05-12	S02E24	WATCHED	For a Few Paintballs More
2011-09-22	S03E01	WATCHED	Biology 101
2011-09-29	S03E02	WATCHED	The Geography of Global Conflict
2012-03-15	S03E11	WATCHED	Urban Matrimony and the Sandwich Arts
2012-03-22	S03E12	WATCHED	Contemporary Impressionists
2012-03-29	S03E13	WATCHED	Digital Exploration of Interior Design
2012-04-05	S03E14	WATCHED	Pillows and Blankets
2012-04-12	S03E15	WATCHED	Origins of Vampire Mythology
2012-04-19	S03E16	WATCHED	Virtual Systems Analysis
2012-04-26	S03E17	WATCHED	Basic Lupine Urology
2012-05-03	S03E18	WATCHED	Course Listing Unavailable
2012-05-10	S03E19	WATCHED	Curriculum Unavailable
2012-05-17	S03E21	WATCHED	The First Chang Dynasty
2012-05-17	S03E22	WATCHED	Introduction to Finality
2012-05-17	S03E20	WATCHED	Digital Estate Planning
2013-02-07	S04E01	WATCHED	History 101
2013-02-14	S04E02	WATCHED	Paranormal Parentage
2013-02-21	S04E03	WATCHED	Conventions of Space and Time
2013-02-28	S04E04	WATCHED	Alternative History of the German Invasion
2013-03-07	S04E05	WATCHED	Cooperative Escapism in Familial Relations
2013-03-14	S04E06	WATCHED	Advanced Documentary Filmmaking
2013-03-21	S04E07	WATCHED	Economics of Marine Biology
2013-04-04	S04E08	WATCHED	Herstory of Dance
2013-04-11	S04E09	WATCHED	Intro to Felt Surrogacy
2013-04-18	S04E10	WATCHED	Intro to Knots
2013-04-25	S04E11	WATCHED	Basic Human Anatomy
2013-05-02	S04E12	WATCHED	Heroic Origins
2013-05-09	S04E13	WATCHED	Advanced Introduction to Finality
2014-01-02	S05E01	WATCHED	Repilot
2014-01-02	S05E02	WATCHED	Introduction to Teaching
2014-01-09	S05E03	WATCHED	Basic Intergluteal Numismatics
2014-01-16	S05E04	WATCHED	Cooperative Polygraphy
2014-01-23	S05E05	WATCHED	Geothermal Escapism
2014-01-30	S05E06	WATCHED	Analysis of Cork-Based Networking
2014-02-27	S05E07	WATCHED	Bondage and Beta Male Sexuality
2014-03-06	S05E08	WATCHED	App Development and Condiments
2014-03-13	S05E09	WATCHED	VCR Maintenance and Educational Publishing
2014-03-20	S05E10	WATCHED	Advanced Advanced Dungeons & Dragons
2014-04-03	S05E11	WATCHED	G.I. Jeff
2014-04-10	S05E12	WATCHED	Basic Story
2014-04-17	S05E13	WATCHED	Basic Sandwich
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #4  
Old 12-18-2014, 07:49 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
I will certainly give it a shot, thank you!

I'm a long time fan of Chevy Chase, personally. Well, okay, Fletch mainly.
Reply With Quote
  #5  
Old 12-18-2014, 10:59 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
For me, I'll either go to the guide or my favorites and view past airings. From there, everything I've already watched is marked as such. I'm not sure if partially watched eps will show up, though.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #6  
Old 12-19-2014, 05:18 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
If you have the hidden features enabled, then you can go to Detailed Setup -> Customize -> Malore Menu Options -> Configure Watched & Partial Bars to have bars shown on each airing indicating how much of the show was watched. (They can be shown on the non-malore menus too.)

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
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
Marking one episode Watched marks all future as Watched svemuri SageTV Beta Test Software 3 03-16-2011 01:24 PM
Importing TV Episodes CloudWraith SageTV Software 3 02-17-2011 09:49 AM
Cannot see TV episodes anymore Deano Sage My Movies 7 12-18-2010 01:32 PM
Will not record all episodes camens SageTV Software 9 04-14-2009 05:38 PM
Many, many, many episodes of favorites White94Cobra SageTV Software 10 09-25-2003 06:42 PM


All times are GMT -6. The time now is 02:09 AM.


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