SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v9 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v9 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 9 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 9 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-30-2016, 10:30 AM
rick8 rick8 is offline
Sage User
 
Join Date: Apr 2009
Posts: 6
Automatically mark recording watched

I have Sage as the recording service but I have MCEBuddy run post processing and use another product to watch the recordings.

The problem I'm having is the same episodes keep recording. I'm guessing this is because I'm not watching them from within Sage.

Is there a setting or plugin that I can mark these watched once they are recorded?

Thanks
Reply With Quote
  #2  
Old 11-30-2016, 10:42 AM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
AFAIK they won't record if you have a current recording already. At least my setup doesn't record things that have already been recorded, but aren't watched yet.

Is MCE buddy removing the files? If so that would explain the issue.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #3  
Old 11-30-2016, 11:23 AM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Are these episodes getting removed from the Sage recordings folder during this post processing?
__________________
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
  #4  
Old 11-30-2016, 11:29 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
You can set watched via the sagex web interface, by pulling a URL from the server. I'd have to take some time to figure out the best URL to do to try to get it in one go, but it should be possible.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #5  
Old 12-01-2016, 03:04 PM
rick8 rick8 is offline
Sage User
 
Join Date: Apr 2009
Posts: 6
Yes MCEBuddy is moving them after processing.

That would be great if I could get a way to set them watched.
Reply With Quote
  #6  
Old 12-01-2016, 04:32 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Quote:
Originally Posted by rick8 View Post
Yes MCEBuddy is moving them after processing.

That would be great if I could get a way to set them watched.
is MCEBuddy moving things automagically or are you manually starting the process?

If it is auto then I don't know of a way to mark them as watched before they are processed other than leaving the original file in place and you'd have to manually delete and mark watched.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #7  
Old 12-01-2016, 06:06 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
You can do that with MCEBUDDY set them as watched ... I worked with MCEBUDDY ... to extract the SageTV MediaFileID so that you can archive set them as watched etc.. I just had to set SageTV to create an XML file for each recording.

You need to set this property to create an XML file.

load_at_startup_runnable_classes=net.sf.sageplugins.sagexmlinfo.RecordingXmlGenerator

Below is what MCEBUDDY extracts and you can set a post process before deleting or moving to set watched.

Code:
PostCustomCommandPath=C:\MCEBuddy_Tools\Sagetv\setwatched.bat
PostCustomCommandParameters="%mediafiledbid%" "%airingdbid%" "%workingpath%"
PostCustomCommandHangPeriod=300
PostCustomCommandCritical=true
PostCustomCommandUISession=false
PostCustomCommandShowWindow=false
setwatched.bat
Code:
set sageDbIdoutf=%1
c:\sjqnew\wget\wget.exe --delete-after --tries=3 --directory-prefix=C:\temp "http://user:pasword@server:8080/sage/AiringCommand?command=SetWatched&MediaFileId=%sageDbIdoutf%"

Code:
Title: Anne of Green Gables
SubTitle: 
Description: Red-haired orphan Anne grows up in Avonlea on the farm of elderly Matthew and his sister, Marilla.
Network: KOPBDT
Network Affiliate: PBS Affiliate
Parental Rating: NR
Media Credits: Ella Ballentine;Sara Botsford;Martin Sheen;Julia Lalonde;Linda Kash;Kyle Gatehouse;Zoe Fraser;Stefani Kimber;John Kent Harrison;Ross Leslie;Joan Lambur;Peter Williamson
Genres: Movie
Season: 0
Episode: 0
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Show Movie: True
Is Show Sports: False
OriginalBroadcastDateTime: 2016-05-05T00:00:00
RecordedDateTime: 2016-11-24T20:00:00
SeriesPremiereDate: 1899-12-31T16:00:00
CopyProtected: False
SageTV FileID: 27493749
SageTV MediaFileID: 27627885
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 08-30-2017 at 08:20 AM.
Reply With Quote
  #8  
Old 12-02-2016, 08:06 AM
rick8 rick8 is offline
Sage User
 
Join Date: Apr 2009
Posts: 6
Awesome, I'll give that a shot.

Thank You!!!
Reply With Quote
  #9  
Old 12-09-2016, 08:55 AM
rick8 rick8 is offline
Sage User
 
Join Date: Apr 2009
Posts: 6
Ok, gave it a shot but failed.

I can't seem to get Jetty / Webserver going. This was a fresh install of v9 open source in windows 10.

When trying to install SageTv Interface it fails getting the Jetty plugin.
Reply With Quote
  #10  
Old 12-09-2016, 11:05 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by rick8 View Post
Ok, gave it a shot but failed.

I can't seem to get Jetty / Webserver going. This was a fresh install of v9 open source in windows 10.

When trying to install SageTv Interface it fails getting the Jetty plugin.
You need to be able to Install the web browser maybe someone that supports the web browser can assist you.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #11  
Old 02-08-2017, 08:53 AM
texasex1998 texasex1998 is offline
Sage User
 
Join Date: May 2016
Posts: 26
wow this is exactly the problem I am having, I was almost set to try a different PVR until I came across this. Could you please explain in detail where I need to insert those commands to get his to work? I already have the web sever installed and running.
Reply With Quote
  #12  
Old 02-08-2017, 10:53 PM
briancain briancain is offline
New Member
 
Join Date: Jan 2017
Location: Wichita, KS
Posts: 2
I'm having the same issue. I have SageTV V9 and the donar version of MCEBuddy. According to the MCEBuddy log, it appears it is getting the metadata from SageTV and skipping some invalid fields, but the SageTV MediaFileID is blank. I have loaded CMT to make the properties file, but it doesn't exist most times MCEBuddy starts processing and I have Sage setup to create XML files when recording.

I have the postprocessing setup in MCEBuddy and it executes the wget script, but since the MediaFileID is blank, it is not marking it as watched.

Not sure if I missed a setup in MCE Buddy or a SageTV setting. Both programs are running on the same PC.

2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Trying to match nPVR/SiliconDust series showname -> ChicagoPD-S04E13-IRememberHerNow-115433-0
2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Looking for Season/Episode information in text
2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Found Season/Episode information in text, Season:4, Episode:13
2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Successfully extracted nPVR/SiliconDust series filename metadata
INFORMATION> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Extracting Alt SageTV PROPERTIES Tags
2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Extracting SageTV meta data
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> TagLine=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> Quotes=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> Trivia=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> TrailerUrl=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> CollectionName=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> CollectionOverview=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> Year=
2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Successfully extracted SageTV Tags metadata
2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted from file/name metadata ->
Title: Chicago P.D.
SubTitle: IRememberHerNow-115433-0
Description:
Network:
Network Affiliate:
Parental Rating:
Media Credits:
Genres:
Season: 4
Episode: 13
Banner:
Banner URL:
IMDB Id: tt5902076
MovieDB Id:
TVDB Id: 269641
Is Show Movie: False
Is Show Sports: False
OriginalBroadcastDateTime: 2017-02-08T00:00:00
RecordedDateTime: 1899-12-31T18:00:00
SeriesPremiereDate: 1899-12-31T18:00:00
CopyProtected: False
SageTV FileID:
SageTV MediaFileID:



Thanks in advance for any assistance.
Reply With Quote
  #13  
Old 02-09-2017, 08:13 AM
texasex1998 texasex1998 is offline
Sage User
 
Join Date: May 2016
Posts: 26
Quote:
Originally Posted by briancain View Post
I'm having the same issue. I have SageTV V9 and the donar version of MCEBuddy. According to the MCEBuddy log, it appears it is getting the metadata from SageTV and skipping some invalid fields, but the SageTV MediaFileID is blank. I have loaded CMT to make the properties file, but it doesn't exist most times MCEBuddy starts processing and I have Sage setup to create XML files when recording.

I have the postprocessing setup in MCEBuddy and it executes the wget script, but since the MediaFileID is blank, it is not marking it as watched.

Not sure if I missed a setup in MCE Buddy or a SageTV setting. Both programs are running on the same PC.

2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Trying to match nPVR/SiliconDust series showname -> ChicagoPD-S04E13-IRememberHerNow-115433-0
2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Looking for Season/Episode information in text
2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Found Season/Episode information in text, Season:4, Episode:13
2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Successfully extracted nPVR/SiliconDust series filename metadata
INFORMATION> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Extracting Alt SageTV PROPERTIES Tags
2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Extracting SageTV meta data
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> TagLine=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> Quotes=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> Trivia=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> TrailerUrl=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> CollectionName=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> CollectionOverview=
WARNING> 2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Skipping invalid properties entry -> Year=
2017-02-08T22:03:51 MCEBuddy.MetaData.FileExtractMetadata --> Successfully extracted SageTV Tags metadata
2017-02-08T22:03:51 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted from file/name metadata ->
Title: Chicago P.D.
SubTitle: IRememberHerNow-115433-0
Description:
Network:
Network Affiliate:
Parental Rating:
Media Credits:
Genres:
Season: 4
Episode: 13
Banner:
Banner URL:
IMDB Id: tt5902076
MovieDB Id:
TVDB Id: 269641
Is Show Movie: False
Is Show Sports: False
OriginalBroadcastDateTime: 2017-02-08T00:00:00
RecordedDateTime: 1899-12-31T18:00:00
SeriesPremiereDate: 1899-12-31T18:00:00
CopyProtected: False
SageTV FileID:
SageTV MediaFileID:



Thanks in advance for any assistance.
Just curious, I am using MediaInfo to check for the SageTV file info, is that not how to check for this?
Reply With Quote
  #14  
Old 02-09-2017, 08:26 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by texasex1998 View Post
Just curious, I am using MediaInfo to check for the SageTV file info, is that not how to check for this?
You need to set this property in the sage.properties to create an XML file... Make sure you shutdown Sage first... see if infact you are creating the XML files ...looking at your logs it appears you are not.

load_at_startup_runnable_classes=net.sf.sageplugins.sagexmlinfo.RecordingXmlGenerator

Code:
2016-11-07T14:38:05 MCEBuddy.MetaData.VideoMetaData --> Trying to match nPVR/SiliconDust series showname -> TheNatural-27232194-0
2016-11-07T14:38:05 MCEBuddy.MetaData.VideoMetaData --> Looking for Season/Episode information in text
2016-11-07T14:38:05 MCEBuddy.MetaData.VideoMetaData --> Trying to match nPVR movie showname -> TheNatural-27232194-0
2016-11-07T14:38:05 MCEBuddy.MetaData.VideoMetaData --> Trying to extract generic nPVR filename details -> TheNatural-27232194-0
2016-11-07T14:38:05 MCEBuddy.MetaData.VideoMetaData --> Invalid nPVR generic filename
INFORMATION> 2016-11-07T14:38:05 MCEBuddy.MetaData.FileExtractMetadata --> Extracting Alt XML Tags
2016-11-07T14:38:05 MCEBuddy.MetaData.FileExtractMetadata --> Extracting ICETV meta data
2016-11-07T14:38:05 MCEBuddy.MetaData.FileExtractMetadata --> Extracting SageTV XML meta data
2016-11-07T14:38:05 MCEBuddy.MetaData.FileExtractMetadata --> Successfully extracted SageTV XML metadata
2016-11-07T14:38:05 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted from file/name metadata -> 
Title: The Natural
SubTitle: 
Description: On the way to a tryout with the Chicago Cubs, young baseball phenom Roy Hobbs (Robert Redford) is shot by the unstable Harriet Bird (Barbara Hershey). After 16 years, Hobbs returns to pro baseball as a rookie for the last-place New York Knights. Despite early arguments with his manager, Pop Fisher (Wilford Brimley), Hobbs becomes one of the best players in the league, and the Knights start winning. But this upsets the Judge (Robert Prosky), their owner, who wants Hobbs to lose games, not win.
Network: SUNDANP
Network Affiliate: SDTV
Parental Rating: PG
Media Credits: Robert Redford;Robert Duvall;Glenn Close;Kim Basinger;Wilford Brimley;Richard Farnsworth;Barbara Hershey;Robert Prosky;Darren McGavin;Joe Don Baker;John Finnegan;Barry Levinson;Mark Johnson;Bernard Malamud;Phil Dusenberry;Philip M. Breen;Roger Towne
Genres: Movie
Season: 0
Episode: 0
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Show Movie: True
Is Show Sports: False
OriginalBroadcastDateTime: 1984-05-05T00:00:00
RecordedDateTime: 2016-11-02T07:02:00
SeriesPremiereDate: 1899-12-31T16:00:00
CopyProtected: False
SageTV FileID: 27232194
SageTV MediaFileID: 27370748
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 02-09-2017 at 08:33 AM.
Reply With Quote
  #15  
Old 02-09-2017, 12:31 PM
briancain briancain is offline
New Member
 
Join Date: Jan 2017
Location: Wichita, KS
Posts: 2
I had shut it down and put it in the sage.properties file. I removed CMT since it didn't include the show ID. I must have done something else when I removed CMT as it started generating the XML files that do include the corresponding XML file now. MCEBuddy is seeing it properly, so now I just need to monitor for a rerun to see if it gets recorded.

I appreciate the help.
Reply With Quote
  #16  
Old 02-10-2017, 08:22 AM
texasex1998 texasex1998 is offline
Sage User
 
Join Date: May 2016
Posts: 26
I really appreciate this post. I got it figured out and the show now properly show up under watched in the SageTV web interface. Now finally my automation is running like a well oiled machine thanks to your help.
Reply With Quote
  #17  
Old 02-10-2017, 06:47 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Glad you guys got it working .....
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #18  
Old 08-14-2017, 06:40 AM
texasex1998 texasex1998 is offline
Sage User
 
Join Date: May 2016
Posts: 26
interestingly this seems to have stopped working recently, I am going to do some digging but I have only gone so far as to make sure the XML is still getting generated
Reply With Quote
  #19  
Old 08-20-2017, 11:50 AM
texasex1998 texasex1998 is offline
Sage User
 
Join Date: May 2016
Posts: 26
so I realized a recent MCEBuddy updated remove my Post command info on the profile I was using, I inserted it back but its still not setting them watched in SageTv as before so it will record the same episodes over and over, strange that this only seems to happen on my HD PVR though, not on my ATSC 2250 one. Does anyone have any suggestions on what to try?
Reply With Quote
  #20  
Old 08-22-2017, 07:57 AM
texasex1998 texasex1998 is offline
Sage User
 
Join Date: May 2016
Posts: 26
according to my MCEBuddy log it is still adding the Sage info upon conversion and running setwatched.bat but in my upcoming recordings SageTV still lists recently air and converted shows
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
Recording Automatically Marked Watched Taddeusz SageTV Software 3 07-04-2016 03:18 PM
Automatically Mark Channels As HD infocus13 SageTV EPG Service 0 07-08-2008 12:35 AM
Can't mark DVDs as Watched DaveWC SageTV Software 4 03-05-2008 11:35 AM
Any way to mark a video as Watched? kelemvor SageTV Software 3 06-04-2007 11:34 AM
Mark multiple shows as watched? steingra SageTV Software 7 02-15-2006 11:13 AM


All times are GMT -6. The time now is 01:53 PM.


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