SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #161  
Old 10-23-2006, 01:18 PM
IConver IConver is offline
Sage User
 
Join Date: Jul 2004
Posts: 13
Adding comskip support.

I would love to try and make comskip support happen, but I'm in the midst of law school--so I'm pretty swamped with classwork!

If someone else was able to figure out how to get the webserver to serve the comskip EDL from predictable URLs for each recording, maybe I can figure out Python enough to add a routine that checks the config file for whether or not there *should* be comskip files, and if so, tries to download one and prepares to skip ahead as needed.

Maybe Coolwave will help point me in the right direction??
Reply With Quote
  #162  
Old 10-23-2006, 02:36 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
-Coolwave,
Any ideas on how to fix the issues I posted above?
Reply With Quote
  #163  
Old 11-28-2006, 07:01 AM
peglar peglar is offline
Sage User
 
Join Date: Jul 2006
Posts: 11
has anyone got this script working in a placeshifter'ish way so you can watch tv and change channel through xbmc?
Reply With Quote
  #164  
Old 11-28-2006, 07:28 AM
jhh jhh is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: BE
Posts: 196
Quote:
Originally Posted by peglar
has anyone got this script working in a placeshifter'ish way so you can watch tv and change channel through xbmc?
Nope - that will not work. There was a fix so the webserver would stream files that were currently being recorded in a message I posted earlier. That worked nicley for shows which were being recorded but not for finished recordings. Those would not always play to the very end.

Easy fix would be: stream ongoing recordings and play finished recordings directly (i.e. not stream them). This requires a small change in the script which is currently above my python skills.

Still far away from channel flipping though but getting placeshifter on xbox is not that straightforward either.

Jan
Reply With Quote
  #165  
Old 11-28-2006, 09:04 AM
peglar peglar is offline
Sage User
 
Join Date: Jul 2006
Posts: 11
thats what i thought, just thought i would check
Reply With Quote
  #166  
Old 12-18-2006, 09:01 PM
halaszj halaszj is offline
Sage User
 
Join Date: Dec 2006
Posts: 5
has anyone gotten this to work with the 2.9 webserver and the newest xbmc ?
Reply With Quote
  #167  
Old 12-19-2006, 04:04 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Quote:
Originally Posted by halaszj
has anyone gotten this to work with the 2.9 webserver and the newest xbmc ?
My version of XBMC is only a few weeks old (2.x release) and it works fine. I just got a new version I haven't loaded up yet though.
Reply With Quote
  #168  
Old 12-19-2006, 08:12 PM
halaszj halaszj is offline
Sage User
 
Join Date: Dec 2006
Posts: 5
Quote:
Originally Posted by kricker
My version of XBMC is only a few weeks old (2.x release) and it works fine. I just got a new version I haven't loaded up yet though.
can you post your settings.xml file and the python script you are using?

With mine I can see my recorded shows, but when i click on anything i get nothing, and i cant back out of it, its like it freezes up or something.

thanks
Reply With Quote
  #169  
Old 12-30-2006, 06:02 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Sorry, I have been busy. If you still need this info I can post it tonight.
Reply With Quote
  #170  
Old 12-31-2006, 01:32 AM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Quote:
Originally Posted by kricker
Home Screen: All the 'recent recordings' have the 'curr_rec.png' icon displayed...
EDIT
changed code see below.

Last edited by kricker; 01-05-2007 at 12:24 PM.
Reply With Quote
  #171  
Old 01-04-2007, 12:40 PM
jhh jhh is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: BE
Posts: 196
Quote:
Originally Posted by kricker
and only what is currently recording will now show the icon.
While that is true for me at least there is a side-effect: upcoming recordings all show 'now' as recording time. Also in the guide I see 'now' as airing time - this is with testing on a 2.8 version of the webserver. Too bad as I had pretty high hopes on this one as I need to know what is currently recording to do the modification I proposed a couple of posts earlier.

There is some good news as there is a pc emulator for the XBMC on which you can find more details about here: http://www.xboxmediacenter.com/forum...ad.php?t=23235. Problem for me is that I get the failed to create pixel shader error messages which is mentioned in the thread already but it looks like in the future python development will become easier for us beginners.

[EDIT]Tried the emulator on a different machine now and result is in attachment (at least if that worked).[EDIT]
Attached Images
File Type: jpg emulator.JPG (140.1 KB, 326 views)

Last edited by jhh; 01-04-2007 at 01:52 PM.
Reply With Quote
  #172  
Old 01-04-2007, 03:45 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Quote:
Originally Posted by jhh
While that is true for me at least there is a side-effect: upcoming recordings all show 'now' as recording time. Also in the guide I see 'now' as airing time...
-jhh
Yeah sorry about that. I just noticed that last night. I plan to look at it today. I did start having problems with the script and newer builds of XBMC. The shows would no longer play and the script locks up. I posted on the XBMC forums hoping for help but I doubt it will happen. I saw the PC dev of XBMC but didnt even think about it, I figured it'd be over my head. But I guess I'll give it a shot.
The webserver is on version 2.11 now. I also plan on trying the script out with that version and see what happens. We might need to team up and not duplicate each others efforts. I thought I was the only one still working on/using this.
Reply With Quote
  #173  
Old 01-05-2007, 12:23 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
OK, so try this.
Change:
Code:
                #Currently Recording
                    if WebHTML.find('Record Options', re.I) > 0:
                        if WebHTML.find('Watch (Streamed)', re.I) > 0:
                            pcur_rec = True
                        else:
                            pcur_rec = False
                    else:
                        pcur_rec = False
to:
Code:
                #Currently Recording
                    if WebHTML.find('Record Options', re.I) > 0:
                        if WebHTML.find('Archive', re.I) > 0:
                            pcur_rec = False
                        else:
                            pcur_rec = True
                    else:
                        pcur_rec = False
and only what is currently recording will now show the icon.
Reply With Quote
  #174  
Old 01-05-2007, 12:30 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
I've also found how to archive something. I just do not know how to change the 'archive button' to an 'unarchive' button.

EDIT.
OK, now I've got archive and unarchive commands working, just the refresh of the button isn't working right yet.

Last edited by kricker; 01-05-2007 at 01:04 PM.
Reply With Quote
  #175  
Old 01-05-2007, 01:31 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
For Archiving functions change;
Code:
                if self.program.recorded:
                    if not self.program.archived:
                        if ShowArchive: self.LeftButtonTitles.append('Archive')
                    self.LeftButtonTitles.append('Delete')
to
Code:
                if self.program.recorded:
                    if ShowArchive:
                        if self.program.archived: self.LeftButtonTitles.append('UnArchive')
                        else: self.LeftButtonTitles.append('Archive')
                    self.LeftButtonTitles.append('Delete')
and change:
Code:
                        elif self.LeftButtonTitles[i] == "Archive":
                        #Archive
                            self.message("Haven't found a way to archive through webserver...")
to
Code:
                        elif self.LeftButtonTitles[i] == "Archive":
                        #Archive
                            if self.program.recorded: Base_URL = "http://" + webaddress + "/sage/AiringCommand?command=Archive&MediaFileId=" + str(self.program.mediafileid)
                            else: Base_URL = "http://" + webaddress + "/sage/AiringCommand?command=Archive&AiringId=" + str(self.program.mediafileid)
                            WebSock = urllib.urlopen(Base_URL)  # Opens a 'Socket' to URL
                            WebHTML = WebSock.read()            # Reads Contents of URL and saves to Variable
                            WebSock.close()                     # Closes connection to url
                            if WebHTML.find('Applied command: Archive') > 0:
                                self.program.archived = True
                                self.Refresh()
                                self.setFocus(self.buttonLeft[i])
                                break

                        elif self.LeftButtonTitles[i] == "UnArchive":
                        #UnArchive
                            if self.program.recorded: Base_URL = "http://" + webaddress + "/sage/AiringCommand?command=Unarchive&MediaFileId=" + str(self.program.mediafileid)
                            else: Base_URL = "http://" + webaddress + "/sage/AiringCommand?command=Unarchive&AiringId=" + str(self.program.mediafileid)
                            WebSock = urllib.urlopen(Base_URL)  # Opens a 'Socket' to URL
                            WebHTML = WebSock.read()            # Reads Contents of URL and saves to Variable
                            WebSock.close()                     # Closes connection to url
                            if WebHTML.find('Applied command: Unarchive') > 0:
                                self.program.archived = False
                                self.Refresh()
                                self.setFocus(self.buttonLeft[i])
                                break
Edited script attached for those that might want it.
Attached Files
File Type: zip SageTV script-kricker.zip (14.3 KB, 275 views)

Last edited by kricker; 01-05-2007 at 01:33 PM.
Reply With Quote
  #176  
Old 01-05-2007, 03:02 PM
jhh jhh is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: BE
Posts: 196
Quote:
Originally Posted by kricker
Edited script attached for those that might want it.
Yep - thats me. It works for me under version 2.8 of the webserver and with version 2.something of XBMC - compiled december 25th. Can't get it to work with 2.11 though - in that version there is for nielm's changes:

ENHANCEMENTS:
MediaFileDownload: Estimate total size for currently recording streaming files, allows playing while recording and seeking

-> that is what allows playing currently recorded file on XBMC - Nielm was so kind to give me a preview of that one but if we want more people to be able to use it then it would be nice if they had v2.11 of the webserver. The ned to copy in files manually is then no longer there.

What combination is working for you?

Jan
Reply With Quote
  #177  
Old 01-05-2007, 04:32 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
The original script used to play currently recording files just fine. I wonder what happened to break that.
I'll check it out with 2.11 of the webserver later tonight.

I am using XBMC build 11-13-200 from T3CH

I tried XBMC-CVS-12-25-2006-T3CH and the script wouldn't play any video.

So is my new script working okay for you?
Reply With Quote
  #178  
Old 01-05-2007, 04:37 PM
jhh jhh is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: BE
Posts: 196
Quote:
Originally Posted by kricker
The original script used to play currently recording files just fine. I wonder what happened to break that.?
For me it does only if I'm streaming not if I'm playing directly from the network share - if I played directly while recording the recording was interrupted at the point I reached where the recording was when I started watching. On the 2.8 version of the webserver. (I hope that makes sense).

Quote:
Originally Posted by kricker
So is my new script working okay for you?
Yes - although my setup still doesn't like the new webserver. For the time being I'm stuck with 2.8 but it works nicely.

Out of curiosity I tried 11-13 build with v2.11 but they did not like each other too much. Problem seems to be known though - this is what I had in xbmc.log:

Keymapping error: no such action 'q:\scripts\sagetv\sagetv.py' defined

Same problem is mentioned here: http://xboxmediacenter.com/forum/sho...d.php?p=119681

Anyway I now have both 11-13 and 12-25 - switching webserver version takes only a minute so experimenting is not too much of a problem.

Last edited by jhh; 01-06-2007 at 03:03 PM.
Reply With Quote
  #179  
Old 01-09-2007, 01:56 PM
jhh jhh is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: BE
Posts: 196
Had some scary times - I noticed that my XMLTV was no longer updating. So I thought that was broken, now that is a bit silly as things don't just break like that but anyhow it tempted me to install the latest java runtime.

It turns out that the java version of the server actually plays a role as well. While in my setup version 2.8 of the webserver is happily running and 2.11 is not neither of them were after the java upgrade. I'd appreciate if anyone with a working combination higher than 2.8 version of the webserver could post their setup: XBMC build, version of the webserver, java version of the server, have you SageTV as a service or not ... (more out of curiosity)

XBMC-CVS-12-25-2006-T3CH , webserver v2.8, J2 SE 1.4.2_06, SageTV 6.0.11.108 running as a service.

BTW: it seems like the XMLTV is not broken - the datasource simply stopped offering data beyond tomorrow. Unfortunately show descriptions in the free datasource were way better than in tvtv.
Reply With Quote
  #180  
Old 01-10-2007, 02:43 PM
sandro sandro is offline
Sage User
 
Join Date: Dec 2004
Posts: 5
Hi

I have problems running the sagetv xmbc script.

I have Sage Webserver version 2.6 running, and i can login to the webpage.
I also tried to load the page manually (http://htpc:htpc@10.1.1.40:8080/sage/) like the script should do, works perfectly.

I also see in the log of the Webserver that the xbox connects.

-------cut logfile------------
[Wed Jan 10 21:15:21 CET 2007] /10.1.1.60 GET /sage/Home 200| null| Python-urllib/1.16
----------------------------

But when i start the script on the xbox i get only this errormessage (see attachment).

i use the script from xbmcscripts.com and changed the default.py with the new version from http://coolwave6.googlepages.com/SageTVws2.8.py.

Does someone have ideas what i can try next.



Ciao
Sandro

Settings.xml is also attached.

ps: Cool work by the way, go one this way. Will there be a new release soon ?
Attached Images
File Type: png screenshot000.png (104.7 KB, 336 views)
Attached Files
File Type: txt settings.xml.txt (2.4 KB, 272 views)
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


All times are GMT -6. The time now is 09:20 AM.


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