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 10-16-2014, 03:56 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
SageTV Catchup

SageTV Catchup 0.2.7

Plugin to assist UK users to watch UK catchup TV online sources via online services menu.

These services are usually geo-restricted to UK so this plugin will not be of use outside the UK.

I have no desire to break any T&Cs with this plugin - merely show the content on the big screen rather than the PC or tablet.

There are various good plugins for integrating online sources into SageTV so why another?

I was mainly inspired by the HomeView boxes in the UK that have forwards and backwards EPG where you can select a program in the past on the EPG and watch it.

I haven't got there yet!

However it occurs that the meta data is often very good and a higher tie in between shows online and shows known to SageTV via EPG is possible. I also found some of the technology, e.g. UPnP, a little cumbersome and abandoned one SageTV plugin I never released based around this.

The plugin takes the strategy of cataloging the source periodically rather than going straight to source. The reason for this is that the browsing speed will be faster and some useful recategorisation and reorganisation can be done. For TV catchup sources refresh overnight is probably frequent enough.

This beta release features BBC iplayer browsing, watch, and record to TV recordings area.

Installation

Installation is via SageTV plugin screens.

You have to install get_iplayer separately. For windows the installer is here: http://www.infradead.org/get_iplayer...tup_latest.exe

Known issues:
  • get_iplayer will not download some programmes even though you can view them on BBC iplayer. I probably need to work a little on the command line params or get_iplayer has a bug.
  • SageTV has a 5 minute caching of online sources so some of my info entries in online services do not refresh often enough. This is governed by the online_video/cache_time_limit=300000 property in the client
  • If you want to see the recorded shows in the TV recordings area rather than video imports even though they physically reside in a recordings folder you have to set select an option in SageTV options. See this post http://forums.sagetv.com/forums/show...76&postcount=4
  • It really needs an STVi import rather than the podcast-based control features it has. I think I might be too dumb to ever be able to write one of these!

Hope you find it useful - I already find I'm watching things outside my usual favourites.

Enjoy,

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #2  
Old 10-16-2014, 04:41 AM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
Hi

I was curious about this when you posted in the UK forum, I could understand what it did (Offered iplayer programs in Sage) but couldn't figure out how they were presented. I just installed it (along with get_iplayer) and I'm afraid I'm still confused. I thought maybe it would show up as another video source (it doesn't) or an option within the EPG (I use Phoenix 2 but I tried it in the default STV too)

How do I use it ?

Thanks
__________________
Tecra M5, 2 x HD200, 2 x HD300
2 x PCTV 290e
Win 7, Sage 7.1.9, Phoenix 2 STV
Stephane's XMLTV Importer, Digiguide,
Reply With Quote
  #3  
Old 10-16-2014, 04:59 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
So you should see a new entry in the online services menu. See attachments
Attached Images
File Type: png catchupTV.png (174.1 KB, 530 views)
File Type: png catchupTV2.png (178.6 KB, 400 views)
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #4  
Old 10-16-2014, 05:19 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
I should add it takes a little time to "warm up".

It will start cataloging iplayer - this will take some time - maybe an hour.

Information about what its up to is available in the plugin configuration and also via a web service and in the Catchup status area in online services menu of SageTV

It will try to use port 8081 for the webservice

See further attachments:
Attached Images
File Type: png catchupTV3.png (204.6 KB, 372 views)
File Type: png catchupTV4.png (39.3 KB, 343 views)
File Type: png catchupTV5.png (286.2 KB, 360 views)
__________________
Web Feed Encoder developer
SageTV Catchup developer

Last edited by michaeldjcox; 10-16-2014 at 05:21 AM.
Reply With Quote
  #5  
Old 10-16-2014, 05:43 AM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
Ah, I didn't think to look in there it's not showing there for me but I've not restarted Sage. TBH, my family never use that screen (and I think training them would be an uphill battle) so I'm not sure this is worth debugging.

get_iplayer looks interesting, if I set it to download to my sage recordings directory, do they automagically appear as recordings ?
__________________
Tecra M5, 2 x HD200, 2 x HD300
2 x PCTV 290e
Win 7, Sage 7.1.9, Phoenix 2 STV
Stephane's XMLTV Importer, Digiguide,
Reply With Quote
  #6  
Old 10-16-2014, 05:50 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
My 7 year old picked it up straight away.

My wife won't go into online services - so I go there to service her requests and mark an episode for record.

Then it will download and get saved to TV recordings.

The plugin uses the SageAPI to set the meta data for the media file.

I suspect that you could use get_iplayer to drop a media file in there but it will appear in video imports.

meta data has to be set to register it as a TV recording - which you could do manually with BMT.

Then that sageTV option I mention in the known issues needs to be set.

My plugin attempts to automate all that and marshall the meta data.

So I am in a happy place where missed episodes I download from iplayer appear grouped in TV recordings with ones recorded by SageTV.

My family are very familiar with using that side of SageTV
__________________
Web Feed Encoder developer
SageTV Catchup developer

Last edited by michaeldjcox; 10-16-2014 at 05:53 AM.
Reply With Quote
  #7  
Old 10-16-2014, 12:46 PM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
Hi

Thanks for the great plugin. I can see me using iPlayer much more. Mainly because I always forget about it. And also because it means using another remote to access it via my tv.

Installed the plugin and all seems to be ok. I can browse the shows etc.

But I have a problem when I try to watch a show I get an error

"There was an error playing
C:users\admin\appsdata\local\temp\onlinevideoxxxx.flv:
Error(-2):Files selected for playback are no longer on disk"

Not sure if this was how I installed Get_iPlayer as I changed the default paths

Any ideas

Dean
__________________
Darkside: DVB-C x4 DVB-T2 x2 HD-300 x4
Lightside: DVB-C x2 DVB-T2 x4 HD-300 x3
Reply With Quote
  #8  
Old 10-17-2014, 12:06 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Probably the stream is failing.

There should be a log file on the server in :

<SAGE INSTALL DIR>/sagetvcatchup/logs/sagetvcatchup.log

Can you send me the zipped contents of that please?
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #9  
Old 10-17-2014, 02:22 AM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
I don't have a logs folder or any logs
__________________
Darkside: DVB-C x4 DVB-T2 x2 HD-300 x4
Lightside: DVB-C x2 DVB-T2 x4 HD-300 x3
Reply With Quote
  #10  
Old 10-17-2014, 03:16 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
So theres a

<SAGE INSTALL DIR>/sagetvcatchup/

directory but it has no logs subdir?
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #11  
Old 10-17-2014, 03:42 AM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
Yes but not logs folder or log files.

I have noticed that in some of the config files that they point to Get_iPlayer to be in a default location on the C drive.

Mine is installed on the d drive. I have manually changed these but get same error

Dean
__________________
Darkside: DVB-C x4 DVB-T2 x2 HD-300 x4
Lightside: DVB-C x2 DVB-T2 x4 HD-300 x3
Reply With Quote
  #12  
Old 10-17-2014, 04:10 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
So you have edited sagetvcatchup/config/sagetvcatchup.props for iplayer location?

Thats fine

I suggest a disable and reenable of plugin (to pick up new props)

possibly a restart of the server.

It should remember the result of the last cataloging run and caches the properties in tmp dir

In fact there is no pain in enable/disable or even uninstall/install - everything will come back as before.

Thanks for being a trail blazer - there is always a few issues when a plugin hits a new environment but it should be a thin shell of resistance - everything underneath that shell is well tested and should work well.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer

Last edited by michaeldjcox; 10-17-2014 at 04:12 AM.
Reply With Quote
  #13  
Old 10-17-2014, 09:38 AM
PeterC PeterC is offline
Sage User
 
Join Date: Oct 2007
Posts: 55
I installed this on Windows XP and had to edit the paths in "sagetvcatchup.properties" and remove the " (86)" from them. After doing this the new Catchup TV menu entry appeared in online videos, although there are no entries in any of the sub menus.

Is there anything else I should be doing to access the videos?

Peter
Reply With Quote
  #14  
Old 10-17-2014, 10:01 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Hi Peter,

A placeholder menu appears under online services and then cataloging begins.

Some time later - maybe an hour - (I must measure it) cataloging will be finished (and catalog persisted) and you should see more.

There should be a "Catchup Status" category under "Catchup TV" and withing that there is a "Cataloging Progress" entry which will show how far its got through iplayer.

If you cannot see it it is also displayed in "Installed plugins" if you select "Configure" for the plugin.

Although some patience is required for this initial cataloging exercise the results in terms of navigation speed are well worth it and we have 30 days to notice new content so a catalog refresh every 12 hours is fine.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #15  
Old 10-17-2014, 12:39 PM
PeterC PeterC is offline
Sage User
 
Join Date: Oct 2007
Posts: 55
Quote:
Originally Posted by michaeldjcox View Post
Hi Peter,

A placeholder menu appears under online services and then cataloging begins.

Some time later - maybe an hour - (I must measure it) cataloging will be finished (and catalog persisted) and you should see more.

There should be a "Catchup Status" category under "Catchup TV" and withing that there is a "Cataloging Progress" entry which will show how far its got through iplayer.

If you cannot see it it is also displayed in "Installed plugins" if you select "Configure" for the plugin.

Although some patience is required for this initial cataloging exercise the results in terms of navigation speed are well worth it and we have 30 days to notice new content so a catalog refresh every 12 hours is fine.

Michael
All of the sub menus display "No Videos Were Found", although in the plugin configuration it states cataloging has finished and the next on is in 9Hrs.
Where is this data actually saved? I wonder if it might be another incorrect path problem.

Peter
Reply With Quote
  #16  
Old 10-17-2014, 02:18 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Are you able to see the logs dir?

Got to sagetv server dir. There should be a subdir sagetvcatchup and in there a logs dir.

If you could zip up the log file and post it that would be cool.

Also the web server will try and use port 8081.

Could you open a browser and see if you can bring up

http://localhost:8081

(if your already on the server box - if not substitute the server name for localhost)

It may be that port is already in use in which case it can be changed in the config dir adjacent the logs dir:

#
# Port to use for the web service
#
podcasterPort=8081

The catalog is stored in tmp dir.

If your on windows and sagetv is running as local system user it is probably C:/Windows/Temp

The name of the file will be

sagetvcatchup.xml

Hope this helps.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #17  
Old 10-17-2014, 09:09 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by michaeldjcox View Post
SageTV Catchup 0.2.7These services are usually geo-restricted to UK so this plugin will not be of use outside the UK.
The geo-restriction can be overcome with services like Unblockus.

These types of services are very popular here in Canada to allow us to access streaming services that are only available to Americans like Hulu, Amazon Instant Video, etc and they also allow you to access any country's Netflix service. This also allows people from anywhere in the world to access the BBC iPlayer.
__________________
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
  #18  
Old 10-18-2014, 02:45 AM
PeterC PeterC is offline
Sage User
 
Join Date: Oct 2007
Posts: 55
Quote:
Originally Posted by michaeldjcox View Post
Are you able to see the logs dir?

Got to sagetv server dir. There should be a subdir sagetvcatchup and in there a logs dir.

If you could zip up the log file and post it that would be cool.

Also the web server will try and use port 8081.

Could you open a browser and see if you can bring up

http://localhost:8081

(if your already on the server box - if not substitute the server name for localhost)

It may be that port is already in use in which case it can be changed in the config dir adjacent the logs dir:

#
# Port to use for the web service
#
podcasterPort=8081

The catalog is stored in tmp dir.

If your on windows and sagetv is running as local system user it is probably C:/Windows/Temp

The name of the file will be

sagetvcatchup.xml

Hope this helps.

Michael
What should be displayed on http://localhost:8081? I think another app was using 8081 so I changed it to 8090 and all I see is a blank page.

There is not a Logs subdir.

sagetvcatchup.xml is in the Windows Temp folder and is populated with data although I still do not see any entries in online section.

Peter
Reply With Quote
  #19  
Old 10-18-2014, 02:47 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by PeterC View Post
What should be displayed on http://localhost:8081? I think another app was using 8081 so I changed it to 8090 and all I see is a blank page.

There is not a Logs subdir.

sagetvcatchup.xml is in the Windows Temp folder and is populated with data although I still do not see any entries in online section.

Peter
And you disabled/enabled the plugin to pick up the new properties?
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #20  
Old 10-18-2014, 02:52 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
I have just done a clean install on my home system and I cannot see the log file. So thats something to look at. It may appear after restart of server because I certainly had it before.

Also

The host and port is in the catalog so after a port change the catalog will need rebuilding. Thats also something to look at.

I suggest no new attempts until I can look at these issues.
__________________
Web Feed Encoder developer
SageTV Catchup developer
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
Playback Pauses/Hangs then FF catchup graywolf SageTV Software 22 11-28-2010 10:12 AM
Odd playback issue, pause 3 seconds, then quick catchup? IncredibleHat SageTV Software 14 09-28-2006 08:36 PM


All times are GMT -6. The time now is 12:27 PM.


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