SageTV Community  

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

Notices

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-24-2011, 03:14 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Plugin: OneTimeFavorite

This plugin allows you to define a Favorite that will be removed after one recording has been made. This is particularly useful for recording movies because you can simply select the movie as a One Time Favorite and let the Sage scheduler figure out when is the best time to make the recording.

To install go to the UI Mod section of the plugin manager and install "OneTimeFavorite".

If you install the UI Mod on a SageClient, you must also install it on the Sage server. (If you typically do not use a UI on the server you can install the "OneTimeFavorite General" plugin from the General section of the plugin manager instead.)

After installation you will notice a new entry on the Favorite detail screen that allows you to specify that the Favorite is a One Time Favorite.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #2  
Old 05-24-2011, 04:11 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Just so I understand - is this to be used to have Sage record a movie that is not currently in the guide but that you would like to have recorded if it ever shows up on TV some time in the future? You just set it up as a Fave and if and when the movie is shown it will record the movie and then be gone?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #3  
Old 05-24-2011, 07:41 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by wayner View Post
Just so I understand - is this to be used to have Sage record a movie that is not currently in the guide but that you would like to have recorded if it ever shows up on TV some time in the future? You just set it up as a Fave and if and when the movie is shown it will record the movie and then be gone?
It works on any type of Favorite you can define. If you set the "One Time Favorite" option to "Yes", as soon as you get one complete recording of that Favorite it will be removed.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #4  
Old 05-25-2011, 07:09 PM
korben_dallas's Avatar
korben_dallas korben_dallas is offline
Sage Icon
 
Join Date: Oct 2004
Location: USA
Posts: 1,250
Quote:
do not use a UI on the server you can install the "OneTimeFavorite General" plugin
This has to be done through the server UI? I ask because I run the server in service mode.
__________________
SageTV server & client: Win 10 Pro x64, Intel DH67CF, Core i5 2405s, 8 GB ram, Intel HD 3000, 40GB SSD system, 4TB storage, 2x HD PVR component + optical audio, USB-UIRT 2 zones + remote hack, Logitech Harmony One, HDMI output to Sony receiver with native Intel bitstreaming
Reply With Quote
  #5  
Old 05-26-2011, 06:30 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by korben_dallas View Post
This has to be done through the server UI? I ask because I run the server in service mode.
Short answer: You must install it on the server UI if the only other UI that you install it on is a SageClient. If you install it on an extender or placeshifter there is no need to worry about it.

Long answer....

The plugin has two parts:

One part for adding the One Time Favorite option into the UI. This is the "OneTimeFavorite" plugin that you find in the "UI Mod" section of the plugin manager.

One part that resides on the server and listens for One Time Favorites to finish recording. This is the "OneTimeFavorite General" plugin that you find in the "General" section of the plugin manager. If you install the UI Mod plugin it automatically installs the General plugin.

You must make sure the "General" plugin is installed on the server and there are several ways to achieve that:

1. Install the UI Mod on any UI instance that runs on the server (extender, placeshifter, server UI).

2. Install the "General" plugin from any UI instance that runs on the server.

3. Install the "General" plugin from as SageClient as a server plugin.

So if you install the UI Mod on any extender or placeshifter it automatically installs the General plugin on the server, meaning you are done.

If you ONLY install the UI Mod on a SageClient it will NOT install the General plugin on the server so you must do it manually using method 2 or 3 from above.

I recommended installing it on the server UI only because it is simple to explain and understand. It seems more convoluted to tell people that if they only install it on a SageClient that they must install the UI Mod plugin and then install the General plugin as a server plugin.

I should ask Sage for a feature request so we can specify "if this plugin is installed on a SageClient make sure that plugin XYZ is installed on the server." Right now that does not exist so developers must tell users to do it manually.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #6  
Old 05-26-2011, 11:29 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by tmiranda View Post
I should ask Sage for a feature request so we can specify "if this plugin is installed on a SageClient make sure that plugin XYZ is installed on the server." Right now that does not exist so developers must tell users to do it manually.
ya a server dependency would be nice
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #7  
Old 07-23-2011, 01:04 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Tom,

I have a few questions about your plugin.

It appears that it treats the recording as livetv and will delete first.

1. I noticed once it is recorded it is no longer a favorite. (of course)

2. It is not manual.

3. It is not archived

This causes sage to treat it as live TV... Is there any way that after recording you can mark it as manual?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #8  
Old 07-26-2011, 02:06 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by nyplayer View Post
Tom,

I have a few questions about your plugin.

It appears that it treats the recording as livetv and will delete first.

1. I noticed once it is recorded it is no longer a favorite. (of course)

2. It is not manual.

3. It is not archived

This causes sage to treat it as live TV... Is there any way that after recording you can mark it as manual?
Yes, I should have done it that way in the first place. I probably won't get to this for little bit as I'm busy with Boxee at the moment. Is this a critical issue for you?

Can you open a ticket on my Google code site so I don't forget about you? http://code.google.com/p/tmiranda/issues/list
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #9  
Old 07-26-2011, 02:17 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by tmiranda View Post
Yes, I should have done it that way in the first place. I probably won't get to this for little bit as I'm busy with Boxee at the moment. Is this a critical issue for you?

Can you open a ticket on my Google code site so I don't forget about you? http://code.google.com/p/tmiranda/issues/list
It's not Critical... right now I am trying to get some of my favorite movies but do not want to create permanent favorites so I just set sage not to delete live TV files... I will open an issue.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #10  
Old 11-27-2011, 06:33 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by nyplayer View Post
It's not Critical... right now I am trying to get some of my favorite movies but do not want to create permanent favorites so I just set sage not to delete live TV files... I will open an issue.
I have a test version available that will set the one time favorite to a manual, let me know if you are interested in trying it out.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #11  
Old 11-28-2011, 07:21 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I just uploaded an update that will make one time favorites become manual recordings. If you do not want them to be marked as manuals make sure the following property is set to False:

Code:
otf/make_manual=True
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #12  
Old 11-28-2011, 09:49 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by razrsharpe View Post
ya a server dependency would be nice
Interesting turn of events here. I've noticed that in Opus's latest STV update for the weather changes, it automatically popped up a window saying it needed in install the google weather plugin. This was apparently done in the STV, so it is something that could be implemented in the UI Mod, having it check and ask to install the Library plugin on the server... just a thought...
__________________
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
  #13  
Old 11-29-2011, 12:25 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I saw that too and looked into how Andy did it. (Going from memory.) He tries to access a Java class in the weather jar and if it fails he assumes the plugin is not installed and goes on from there.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #14  
Old 11-29-2011, 07:25 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Sounds as good a hack as any. Shouldn't be too hard to implement, though I'd think you could use the plugin API to actually find out if the plugin is installed. The STV obviously has a method available to do this, as it is done in the plugin manager screens.
__________________
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
  #15  
Old 11-29-2011, 07:35 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Fuzzy View Post
Sounds as good a hack as any. Shouldn't be too hard to implement, though I'd think you could use the plugin API to actually find out if the plugin is installed. The STV obviously has a method available to do this, as it is done in the plugin manager screens.
Yes, there are methods to check. Andy had to do something funky in the STV but I only looked at the code once and I don't remember the details.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #16  
Old 11-29-2011, 08:09 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
It looks like the plugin UI simply calls GetInstalledPlugins() for standalone or server plugins, or GetInstalledClientPlugins() for client in client server mode. Iterate through that for your server plugin, and launch the install via a jump to the 'Install Plugin' widget in the stock plugin UI. (That way it handles reboots and such if necessary).
__________________
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
  #17  
Old 11-30-2011, 08:09 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by tmiranda View Post
Yes, there are methods to check. Andy had to do something funky in the STV but I only looked at the code once and I don't remember the details.
I looked at this last night and realized what's going on. The STV update is not handled through the plugin manager, it's done in a completely different way that does not include downloading any jars. So the first time the STV code is executed after the update it sees that jar is not present (because the java method call fails) and prompts the user to do the install.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #18  
Old 11-30-2011, 12:36 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by tmiranda View Post
I have a test version available that will set the one time favorite to a manual, let me know if you are interested in trying it out.
Sorry I didn't get to you sooner.... Works as advertised.

Thank 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
  #19  
Old 11-30-2011, 04:04 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by tmiranda View Post
I looked at this last night and realized what's going on. The STV update is not handled through the plugin manager, it's done in a completely different way that does not include downloading any jars. So the first time the STV code is executed after the update it sees that jar is not present (because the java method call fails) and prompts the user to do the install.
Yeah, I realize he did it this way, just wondering why it couldn't be done instead by the plugin api. Seems more versatile that way (since it could handle more than JAR dependencies).
__________________
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
  #20  
Old 11-30-2011, 04:27 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by nyplayer View Post
Sorry I didn't get to you sooner.... Works as advertised.

Thank You
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
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
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
SageTV Plugin Developers: Any way to see stats for your plugin? mkanet SageTV Software 4 12-12-2010 10:33 PM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Plugin Manager: Configure plugin medwynd SageTV Beta Test Software 0 05-29-2010 08:43 AM
Hulu: Possible to Use XBMC Hulu Plugin to create SageTV Plugin? Brent SageTV Customizations 8 02-24-2009 04:16 PM


All times are GMT -6. The time now is 07:00 PM.


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