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
  #61  
Old 11-19-2014, 02:09 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by jt4242 View Post
Resolved my problem!! if I set the default recording mode to flashhd it works. I noticed that in the get_iplayer DOS based interface and Web PVR, if I didn’t specify a recording mode it failed and if I specified a different mode it failed – the download only worked with the mode flashhd.
:
Is there any way I can change these parameters to flashhd only? If not, no problem - I'm just glad it's somewhat resolved.
The script

sagetvcatchup/plugins/Iplayer/playEpisode.groovy

contains the command line for iplayer.

A temporary work around would be to edit this directly until I can build in a config parameter.

Let me know the command line that is working for you please.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer

Last edited by michaeldjcox; 11-19-2014 at 04:45 AM.
Reply With Quote
  #62  
Old 11-19-2014, 02:53 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by deanm View Post
Which recording dir.

I have changed Get_iPlayer to now be c:\temp.

Rebooted Server but still get same error
There is a properties file the plugin uses which will be somewhere like:

C:\Program Files (x86)\SageTV\SageTV\sagetvcatchup\config

called

sagetvcatchup.properties

It contains properties

Iplayer.scriptDir=C\:\\Program Files (x86)\\get_iplayer\\

and

recordingDir=C\:\\Program Files (x86)\\SageTV\\SageTV\\sagetvcatchup\\recordings

I would disable the plugin, edit those properties in the file and re-enable.

If both are on the same disk drive then it will be fine - though I do promise to fix this and use absolute paths.

Quote:
Why do I keep seeing references to C:\User\Admin\ etc on the on screen error but there is no reference to this in any of the config files.

This is for from ideal as my C drive is a small SSD drive which I don't what to use do download temp files to
C:\Users\admin\appdata\local\temp\onlinevideosxxxxxx.flv

This is SageTV that is creating these files. Its used by SageTVs online services when every time you access a video. There may be a way of changing that dir - I've had a brief search of the forums and nothing has come up.

It is though the windows users temp directory defined by env variables e.g.

TEMP=C:\Users\Michael\AppData\Local\Temp
TMP=C:\Users\Michael\AppData\Local\Temp

So I guess at a windows level these could be changed

I believe SageTV is not very good at clearing up this directory and I think there is a plugin that will help with this - though it looks a little old.

If you use online services much you will probably find a lot in there - you might be able to free up some precious space.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer

Last edited by michaeldjcox; 11-19-2014 at 03:05 AM.
Reply With Quote
  #63  
Old 11-19-2014, 08:17 AM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
oh my gosh, it's working!!

I didn't have much clue where in the file to put the command parameter so I just kept looking at it then changed these two lines to add --modes flashhd (not sure if I had to do both lines) and then restarted the server and it's showing live and recording! thank you - here are the edited lines:

String command = iplayerCmd + " " + recording.getUrl() + " --modes flashhd --attempts 0 --force -o " + recording.getRecordingDir() + File.separator;

if (IS_WINDOWS()) {
String relative = GET_RELATIVE_PATH(iplayerDir, recording.getRecordingDir());
command = "cmd.exe /c \"" + "cd " + iplayerDir + " && "+ iplayerCmd + " " + recording.getUrl() + " --modes flashhd --attempts 0 --force -o " + relative + File.separator + "\"";
}
Reply With Quote
  #64  
Old 11-22-2014, 04:04 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
http://forums.sagetv.com/forums/show...67&postcount=2

Version 0.3.4 released
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #65  
Old 11-22-2014, 09:51 AM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
Will try it today.

I was having a terrible problem - stuttering, spinning circle trying to delete files - I tried all the Java stuff thinking perhaps the plugin was eating it up - was going to write you but thought I'd muck about a little more.

Good thing - turns out it was my Lacie drive dying - I've moved all the files elsewhere and everything is super. I really do love this plugin and want to thank you so much for all your hard work!

julie
Reply With Quote
  #66  
Old 11-22-2014, 10:14 AM
Bagal Bagal is offline
Sage Advanced User
 
Join Date: Apr 2006
Location: Surrey, UK
Posts: 183
Just tried v0.3.4, all working great for me now, thanks so much for this!
__________________
Server: Win7 64bit; i5 2500; 32GB ram; Blackgold BGT3595; 18TB + 120GB SSD; Edgestore DAS401T; DVBLink; Oscam; Omnikey 3121
Lounge Client: HD300; Yamaha RX-V765 connected to 55" Furrion 1080p LCD; Logitech Harmony One remote
Kitchen: HD300 32" LCD, Bed 1: HD300 - 40" LCD, Bed 2: HD300 - 24" LCD, Bed 3: HD300 - 22" LCD
Reply With Quote
  #67  
Old 11-22-2014, 12:00 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by jt4242 View Post
. I really do love this plugin and want to thank you so much for all your hard work!
Hi.

So the iplayer command line is now editable in the plugin configuration menu in the sagetv setup area and you will probably need to reapply the changes you made manually before.

Probably best done from sageTV client running on a PC.

You can also edit the sagetvcatchup properties file again provided sagetv is down or the plugin disabled. Though I had some problems doing this- the old values kept coming back whatever I did. I suspect sagetv keeps some copy of files that are part of a plugin and restores them on plugin enable.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #68  
Old 11-22-2014, 12:04 PM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
Sorry but I didn't have success. Every recording I try gives this message:
The requested media file was not found on the server
(I was able to access the files on the DOS get_iPlayer)

Also, the new save directory reverts to the default if I restart the server (restarting just the client is fine).

I reverted to my SageTV backup and the older version of the plugin and all is well again. But I forgot to save the log before I did that - I can send you a copy tomorrow if you want it.

thanks, julie
Reply With Quote
  #69  
Old 11-22-2014, 12:10 PM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
oops - just saw your message - sorry. I can't see a place to edit the iPlayer command line - is this is plugins - installed - SageTV Catchup - Configure plugin or is it hiding (from me) elsewhere?
Reply With Quote
  #70  
Old 11-22-2014, 12:17 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Yes exactly there. Labelled iplayer command
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #71  
Old 11-22-2014, 12:31 PM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
I've checked at least 20 times and I'm probably blind but I can't find that command in the plugin configuration - first listing is Catalog progress, then Start cataloging, Stop cataloging, Recordings in progress, Recording processes, Stop recording, Temporary recording dir, Web server port, Catchup plugin port, Catchup Server port, then a bunch of timeout ones, then some Channel enabled ones which are false till iplayer enabled, after that is ITVPlayer and the last is test.
Reply With Quote
  #72  
Old 11-22-2014, 12:47 PM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
also, and I'm sorry to be a pain, but the new playEpisode.groovy is quite different from the old so I'm not sure where to insert the --modes flashhd that I used previously.

Have to go out now but will try anything you suggest when I return. And no problem if you haven't time - the old one works.

thanks again.
Reply With Quote
  #73  
Old 11-22-2014, 12:55 PM
routerunner's Avatar
routerunner routerunner is offline
Sage Icon
 
Join Date: May 2008
Location: Wiltshire, UK
Posts: 1,384
Quote:
You can also edit the sagetvcatchup properties file again provided sagetv is down or the plugin disabled. Though I had some problems doing this- the old values kept coming back whatever I did. I suspect sagetv keeps some copy of files that are part of a plugin and restores them on plugin enable.

Michael
Out of curiosity, why you don't write your properties inside the sage.properties file like every plugin does? Unless I completely misunderstood.

Eddy
__________________

Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll


Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard
Reply With Quote
  #74  
Old 11-22-2014, 01:54 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Generally i like to not interfere with sagetv as far as possible.

E.g. risk polluting sagetv properties that might not be cleaned away after the plugin is removed

For the same reason i prefer to run the main functions in a seperate jvm with its own classpath rather that add jars to sagetv s classpath.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #75  
Old 11-22-2014, 01:56 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by jt4242 View Post
also, and I'm sorry to be a pain, but the new playEpisode.groovy is quite different from the old so I'm not sure where to insert the --modes flashhd that I used previously.

Have to go out now but will try anything you suggest when I return. And no problem if you haven't time - the old one works.

thanks again.
stick it before the -"-attempts 1" bit

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #76  
Old 11-22-2014, 02:58 PM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by jt4242 View Post
I've checked at least 20 times and I'm probably blind but I can't find that command in the plugin configuration -
Dammit - yes you are right - I stupidly put it in a block that was developer only so I always see it but you can't.

Never mind its no longer in the playEpisode.groovy script which now looks like this:

Code:
:
iplayerCmd = BUILD_RECORDING_COMMAND(recording);

ArrayList<String> output = new ArrayList<String>();
ArrayList<String> errors = new ArrayList<String>();
Process proc = EXECUTE(iplayerCmd, "get_iplayer", output, errors);
:
The whole command line is now in sagetvcatchup/config/sagetvcatchup.properties

e.g.

Code:
#
# BBC IPlayer
#
# (for command: use windows 8 char folder names, <URL> where the iplayer url should go, and <DIR> for the recordingDir above)
#
Iplayer.skip=false
Iplayer.programmes=
Iplayer.maxprogrammes=9999999
Iplayer.command=cmd.exe /c "cd  C\:\\Progra~2\\get_iplayer\\ &&  get_iplayer.cmd <URL> --attempts 0 --force -o <DIR>"
#
I suggest if you want to use 0.3.4 then shutdown sagetv server , edit the file, startup sagetv server.

I will try and fix the configuration of that property over the next few days.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #77  
Old 11-22-2014, 10:24 PM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
all is working now - thank you!

enjoy the rest of your weekend!!

julie
Reply With Quote
  #78  
Old 11-23-2014, 03:00 AM
michaeldjcox michaeldjcox is offline
Sage Fanatic
 
Join Date: Nov 2006
Location: Ipswich, Suffolk, United Kingdom
Posts: 829
Quote:
Originally Posted by jt4242 View Post
all is working now - thank you!
Awesome.

I released a 0.3.5 which has the command editable in the config screen.

Michael
__________________
Web Feed Encoder developer
SageTV Catchup developer
Reply With Quote
  #79  
Old 11-24-2014, 03:47 AM
deanm deanm is offline
Sage Aficionado
 
Join Date: Apr 2005
Location: North East, UK
Posts: 309
Success.

I have this working now.

To test that everything worked I did move Get_iPlayer back onto the C: Drive.

Going to test to see if I can move Get_iPlayer back to my D: Drive and move everything off the C: Drive.

Thanks for all your work.

Dean
__________________
Darkside: DVB-C x4 DVB-T2 x2 HD-300 x4
Lightside: DVB-C x2 DVB-T2 x4 HD-300 x3
Reply With Quote
  #80  
Old 11-25-2014, 08:56 AM
jamesdisco's Avatar
jamesdisco jamesdisco is offline
Sage Advanced User
 
Join Date: Jul 2008
Location: N Yorks, UK
Posts: 234
Thought i'd try this now it looks like people are getting it working.
Plugin loaded and done its cataloging fine but i'm not getting anything showing in the "more online services".Done a no. of reboots and no luck. Any ideas.
__________________
Server: Win 10 64bit Core i3 8GB 20TB, TBS6985, TBS6984, Sage 9.
Clients: 5 x HD300, 2 x HD200, Placeshifter.

Last edited by jamesdisco; 11-25-2014 at 09:09 AM.
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 01:20 PM.


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