|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Forcing EPG update on only one lineup
I'm really close to bringing PultoTV native to SageTV by using OpenDCT and Streamlink(No commercial lockups ). The guide data is provided by the XMLTV plugin which I updated. Guide data is created from Docker that was created for ChannelDVR (https://github.com/maddox/pluto-for-channels). I have one issue I need to resolve. I need to force the EPG to update every 2 hours as PlutoTV only provides 8 hours ahead. I do not want to force all lineups to be updated just the PlutoTV. Forcing all lineups....especially SD would result in DOS. Does any one know an automated way to force a single lineup? Below is what I found so far.
1. Manually remove/add in channel setup all in one step and then exit it will trigger an EPG update. 2. Installing the Web Server Plugin by Nielm. This force an update on all the lineups. This is achieve by adding and removing a channel on all lineups 3. Modify epg_data_sources/#####/expanded_until entry in the Sage.properties. This requires SageTV server stopped before modification and restarted. Not sure if Sage Server reads these values all the time. It might be possible to use the SageAPI to rewrite the value once EPG update is done from the XMLTV plugin. If they are read all the time the XMLTV plugin could detect that it finished an update then change the values so it forces SageTV server to update on the next time. https://forums.sagetv.com/forums/sho...3827#post43827 Code:
epg_data_sources/10788427/applied_service_level=2 epg_data_sources/10788427/chan_download_complete=true epg_data_sources/10788427/disable_data_scanning=false epg_data_sources/10788427/disable_plugin=false epg_data_sources/10788427/enabled=true epg_data_sources/10788427/epg_class=WarlockRipper epg_data_sources/10788427/epg_name=PlutoTV epg_data_sources/10788427/expanded_until=1643150170746 epg_data_sources/10788427/last_run=1643063770745 epg_data_sources/10788427/provider_id=200 epg_data_sources/10788427/server_update_id= epg_data_sources/10788427/unavailable_channel_nums= epg_data_sources/10788427/unavailable_stations= Last edited by hvymetal; 01-25-2022 at 09:46 PM. |
#2
|
||||
|
||||
Could you just "copy/modify" option 2 so it just does the 1 lineup you want, then have that scheduled to execute every 2 hrs?
<not a java programmer> |
#3
|
|||
|
|||
Force EPG update on a single lineup using Sagex Plugin
First have to say thanks to stuckless for great plugin sagex....could not have done the following without.
https://forums.sagetv.com/forums/showthread.php?t=36044 Code:
//1. Install SageTV Sagex Remote API Service Plugin //2. Copy contents to file called epg.js and save to sagex/services directory on the server //3. To force update on lineup http://sage:frey@192.168.10.176:8080/sagex/api?c=epg:ForceUpdate&1=mylineup&encoder=json function ForceUpdate(Lineup_Name) { var GlobalAPI = Packages.sagex.api.Global; var DatabaseAPI = Packages.sagex.api.Database; var UtilityAPI = Packages.sagex.api.Utility; var ChannelAPI = Packages.sagex.api.ChannelAPI; var AllChannels = DatabaseAPI.GetChannelsOnLineup(Lineup_Name); if(AllChannels.length<=0) return "Lineup Name Not Found"; else { var Channel=UtilityAPI.GetElement(AllChannels,0); var ChannelNumbers = ChannelAPI.GetChannelNumbersForLineup(Channel, Lineup_Name); var ChannelNumber=UtilityAPI.GetElement(ChannelNumbers,0); var ChannelViewable=ChannelAPI.IsChannelViewableOnNumberOnLineup(Channel, ChannelNumber, Lineup_Name); ChannelAPI.SetChannelViewabilityForChannelNumberOnLineup(Channel, ChannelNumber, Lineup_Name, !ChannelViewable); ChannelAPI.SetChannelViewabilityForChannelNumberOnLineup(Channel, ChannelNumber, Lineup_Name, ChannelViewable); GlobalAPI.RemoveUnusedLineups(); return "Lineup EPG Update Forced"; } } |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forcing Sage to redownload a channel lineup | mistergq | SageTV EPG Service | 1 | 04-15-2009 10:10 PM |
Forcing Sage to use Quicktime | sandor | SageTV Mac Edition | 4 | 01-05-2009 02:10 PM |
How do we tell EPG data provider to update their lineup for new Comcast HD channels? | mkanet | SageTV EPG Service | 2 | 05-28-2007 07:19 AM |
Forcing a channel update | tvmaster2 | SageTV EPG Service | 1 | 09-18-2006 05:34 AM |
Please wait while the channel lineup is downloaded for XMLTV Lineup | gafrol | SageTV EPG Service | 1 | 01-06-2006 08:08 AM |