This is a personal script I've been using and tweaking for years and thought I would share it if anyone is interested. This script will search the guide for a specific StationTMSID, CannelNumber (Major/Minor), and TimeRange and create a seasonpass for any show that has an OriginalAirDate within 7 days. It keeps track of previous added SP's and will only create it once. It also adds an entry into the "Now Playing List", so you can easily identify what's been added.
I wrote this because I was tired of missing the first episodes shows because the series id's change between years, mid-season lineup changes, or just forgetting to check the schedule. For me, it is easier to just delete the seasonpass and entire folder of a series that doesn't interest me.
The flags -all and -nosp are useful for the inital run. Using -all, every show from during the time range will be treated as a new show. The -nosp will prevent seasonpasses from being created. Consider these cases:
1) There are now new shows airing, but some shows in the time range may have new episodes in the future and you would like them added to the SP list.
-Don't use either flag
2) You want to add every show to your SP list immediately, so that you can review the list manually.
-Use -all
3) You have every SP you want currently in your list. Even if the currently listed shows start airing new episodes, ignore them.
-Use both -all and -nosp
New Version 1.3
Code:################################################################################ # AutoSP - Copyright (C) 2012 jkozee # # This program is distributed WITHOUT ANY WARRANTY; without even the implied # # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # # # TERMS OF USE: personal (noncommercial) fair-use backup & restore # # This software may not be used for copyright infringment or any illegal # # purpose, bundled with any product, sold, distributed or redistributed # # under any circumstances on any media without express written consent. # ################################################################################ # History: 1.3 20120729 Initial public release # # # # Purpose: Automatically add Seasonpasses for all shows from "start" to # # "start + sec" given a "Channel TMSID" and a "Channel Major" and # # optionally a "Channel Minor". Basically, run this as a daily cron # # job item and it will find any new series for the requested channel # # and create a seasonpass entry for it. It also adds an entry in the # # Now Playing List for easy review. The seasonpass is set to record # # only new episodes and keep them all until space is needed. # # # # Usage: AutoSP.tcl [-flags] -chtms <TMSID> -chnmaj <chnmaj> [-chmin <chmin>] # # -l Log to /var/log/AutoSP.log # # -s Log to the Screen # # -v Inlcude verbose log information # # -vv Include very verbose log information # # -remove Cleanup all AutoSP Items from mfs database # # -chtms Channel TmsID # # -chmaj Channel Major # # -chmin Channel Minor # # -start Seconds since midnight (local) to start looking for matches # # Defaults to 72000 (8:00 pm) # # -sec Seconds since start to look for matches # # Defaults to 10800 (3 hours) # # -all Adds all series that exist (not just OAD within 7) # # -nosp Add entires to the NPL, but do not create SeasonPasses # # # # Notes: # # # ################################################################################