|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
||||
|
||||
Quote:
It's currently designed to work with TV Series and Movies. For other types of TV (no in the TVDB), I will probably (in a future release) end up manually adding to the XBMC library using Sage's Meta Data This will require you to have a centralized MySQL database for XBMC. |
#22
|
||||
|
||||
OK Couple of questions. I realize I am not using the latest revs of the server or the Sagex api - but football has just begun recording and I am not going to muck with the server until tomorrow am if I have to upgrade to v7 or install the latest sagex api.
I'm a little unsure about the local path parameter in the config.xml For my testing, your proggy is running on Win7 pro. And the Sage box is xp. I added one of the Sage recordings directories as "\\192.168.1.103\My Recordings" but did not supply a local equivalent because like I said I am not sure about that. On the Win7 box "\\192.168.1.103\My Recordings" is mapped as V:. Neither of these paths is "local to this program" as you state in the config.xml comments. Which I take to mean within the folder tree I placed your proggy. FYI: Your proggy is executed from D:\SageXBMC\SageXMBC\ at the moment. Now, From the log for the first file... Code:
2011 04:01:35 PM INFO Retrieving XML from Sagex at URL: http://192.168.1.103:8888/sagex/api?c=GetMediaFileForFilePath&1=%5C%5C192.168.1.103%5CMy+Recordings%5CAmericasFunniestHomeVideos-1702516-0.mpg 01/15/2011 04:01:35 PM ERROR Cannot get valid XML from SageX API. Cannot continue. Cannot use local path (no local param supplied or local path is equal to default path). Please check the XML at http://192.168.1.103:8888/sagex/api?c=GetMediaFileForFilePath&1=%5C%5C192.168.1.103%5CMy+Recordings%5CAmericasFunniestHomeVideos-1702516-0.mpg for integrity in these elements: <Airing>, <MediaFileID>, <ShowTitle>, <ShowEpisode>, <OriginalAiringDate>, <IsFileCurrentlyRecording>. 01/15/2011 04:01:35 PM INFO Valid XML not found from sagex/api. Cannot continue. In v7 is this file saved with the .mpg? In the recordings directory each recording has .mpg .txt. .edl. and .log all but the .mpg appear to be produced by commskip. Or is it generated on the fly? Or do I simply have my config.xml mucked up? (I supplied a single filter.) Code:
<add extension="mpg" redirect="true">House</add> Thanks for your patience. |
#23
|
||||
|
||||
I plan on that as I can imagine the benefits. But baby steps first.
|
#24
|
||||
|
||||
The local equiv paths are optional. Think of them as just an alternate path to try if the normal path won't work. Also, for CC Extraction, local paths provide improved compatibility (in my testing anyway).
It looks like you are using UNC paths, and that is good for a distributed system. So you should be fine there. The program relies on the sagex web service for getting meta-data about the recordings. Without it up and running, you aren't going to get anywhere. |
#25
|
||||
|
||||
Quote:
First I will update it to latest rev. If that gets me nowhere I will upgrade SaveTV to v7. |
#26
|
||||
|
||||
Update:
Installed Sage v7. Updated firmware on HD-200. Installed Plugin via GUI on HD200 - "sagex-services". This installed 'Jetty' webserver and... sagex-services (which failed) according to the gui on the HD200So I Re-installed sagex-services via the gui... success at least per the guiI decided to move my sabnzb server from port 8080 to 8088 (so jetty would work on port 8080) Launched browser and pointed to jetty...long list of errors. Updated java on server box - rebooted. Jetty now happy - lists one app "sagex" Changed url for sagex in SageXBMC config.xml to use port 8080 (was 8888) Tried SageXBMC again..." Code:
01/16/2011 01:33:22 PM INFO ######################################START LOADING CONFIG###################################### 01/16/2011 01:33:22 PM INFO Getting config from XML file: D:\SageXBMC\SageXBMC\config.xml 01/16/2011 01:33:22 PM INFO ######################################START CHECKING CURRENT ENCODES###################################### 01/16/2011 01:33:22 PM INFO Checking for external encodings that might have finished 01/16/2011 01:33:22 PM INFO 0 current encodings found, skipping 01/16/2011 01:33:22 PM INFO ######################################START CHECKING XBMC UPDATES###################################### 01/16/2011 01:33:22 PM INFO Checking if XBMC needs to have its sources updated for any video files by checking entries in D:\SageXBMC\SageXBMC\res\xbmcFileSources.txt 01/16/2011 01:33:22 PM INFO Will check the sources for 0 videos in XBMC 01/16/2011 01:33:22 PM INFO Done updating XBMC sources. (checked 0 sources, updated 0, removed: 0) 01/16/2011 01:33:22 PM INFO ######################################START PROCESSING SHOWFILTER MATCHESS###################################### 01/16/2011 01:33:23 PM INFO Retrieving XML from Sagex at URL: http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=%5C%5C192.168.1.103%5CMy+Recordings%5CAmericasFunniestHomeVideos-1702516-0.mpg 01/16/2011 01:33:23 PM ERROR Cannot get valid XML from SageX API. Cannot continue. Cannot use local path (no local param supplied or local path is equal to default path). Please check the XML at http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=%5C%5C192.168.1.103%5CMy+Recordings%5CAmericasFunniestHomeVideos-1702516-0.mpg for integrity in these elements: <Airing>, <MediaFileID>, <ShowTitle>, <ShowEpisode>, <OriginalAiringDate>, <IsFileCurrentlyRecording>. 01/16/2011 01:33:23 PM INFO Valid XML not found from sagex/api. Cannot continue. SageTV server (running as service) is @ v7. Jetty web server functions @ "http://192.168.1.103:8080/apps/" Dunno if this is pertinent but when I click on the sagex listing in jetty - I get a 404 and "No Sage Handler Specified."Neilm's webserver functions @ "http://192.168.1.103:8888/sage/home" Sagex is accessible @ "http://192.168.1.103:8888/sagex/api" (version 7.0.23.3) sagex also responds @ "http://192.168.1.103:8080/sagex/api" (version 7.0.23.3) I have tried SageXMBC with both URLs - both error out. |
#27
|
||||
|
||||
This error usually means that XML was retrieved successfully, but it didn't have the expected content.
Code:
01/16/2011 01:33:23 PM ERROR Cannot get valid XML from SageX API. Cannot continue. Cannot use local path (no local param supplied or local path is equal to default path). Please check the XML at http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=%5C%5C192.168.1.103%5CMy+Recordings%5CAmericasFunniestHomeVideos-1702516-0.mpg for integrity in these elements: <Airing>, <MediaFileID>, <ShowTitle>, <ShowEpisode>, <OriginalAiringDate>, <IsFileCurrentlyRecording>. Code:
http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=%5C%5C192.168.1.103%5CMy+Recordings%5CAmericasFunniestHomeVideos-1702516-0.mpg See this post for details about that: http://forum.xbmc.org/showpost.php?p...9&postcount=17 Last edited by bradvido; 01-16-2011 at 02:32 PM. |
#28
|
||||
|
||||
Per the topic you linked...
sagex considers the path to be "D:\My Recordings" Quote:
Code:
<MediaFile><MediaFileFormatDescription>MPEG2-PS[MPEG2-Video 16:9 1080i@29.97fps, Dolby Digital/384Kbps@48kHz 5.1, Dolby Digital/192Kbps@48kHz Stereo]</MediaFileFormatDescription> Quote:
Because I considered it to be in reference to the Win7 box I am running your application on. The SageTV box (win XP) has no drive letter mapping of the UNC \\192.168.1.103\My Recordings |
#29
|
||||
|
||||
Quote:
#2 I'm working off my memory as I don't have the code in front of me, but I believe the local_equiv for your recording directories does not need to exist on the box where this program runs. It is in reference to the Sage server. So you can add a local_equiv attribute like so: Code:
<dir local_equiv="D:\My Recordings">\\192.168.1.103\My Recordings</dir> UPDATE: Just looked at the code. As long as you aren't doing CCExtraction, the local_equiv does not need to exist on the computer where the program is running. It only needs to exist on the SageTV server. Last edited by bradvido; 01-16-2011 at 03:29 PM. |
#30
|
||||
|
||||
I am not using CC extract. And agree that I should be able to make this work without having sage record to a UNC path.
After looking at the error logs - I believe local equivalent is in reference to SageTV box. And, also, from what I can tell if I feed the sagex the url manually via a browser on my Win7 box it returns the xml for the show. However, according to the error log: it indicates that the same url fails when the semicolon and the space characters are replaced by their symbolic equivalents. In a nutshell... "D:\My Recordings" in the url works when manually entered. "D%3AMy+Recordings" fails (this is what is passed to sagex by the application according to the error log). Works (I see a page of XML) Code:
http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=D:\My Recordings\House-APoxonOurHouse-1842215-0.mpg Code:
http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=D%3AMy+Recordings\House-APoxonOurHouse-1842215-0.mpg Code:
01/16/2011 04:30:26 PM INFO ######################################START LOADING CONFIG###################################### 01/16/2011 04:30:26 PM INFO Getting config from XML file: D:\SageXBMC\SageXBMC\config.xml 01/16/2011 04:30:26 PM INFO ######################################START CHECKING CURRENT ENCODES###################################### 01/16/2011 04:30:26 PM INFO Checking for external encodings that might have finished 01/16/2011 04:30:26 PM INFO 0 current encodings found, skipping 01/16/2011 04:30:26 PM INFO ######################################START CHECKING XBMC UPDATES###################################### 01/16/2011 04:30:26 PM INFO Checking if XBMC needs to have its sources updated for any video files by checking entries in D:\SageXBMC\SageXBMC\res\xbmcFileSources.txt 01/16/2011 04:30:26 PM INFO Will check the sources for 0 videos in XBMC 01/16/2011 04:30:26 PM INFO Done updating XBMC sources. (checked 0 sources, updated 0, removed: 0) 01/16/2011 04:30:26 PM INFO ######################################START PROCESSING SHOWFILTER MATCHESS###################################### 01/16/2011 04:30:27 PM INFO Found matching recording: \\192.168.1.103\My Recordings\House-APoxonOurHouse-1842215-0.mpg 01/16/2011 04:30:27 PM INFO Checking if \\192.168.1.103\My Recordings\House-APoxonOurHouse-1842215-0.mpg can be processed right now. 01/16/2011 04:30:27 PM INFO Retrieving XML from Sagex at URL: http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=%5C%5C192.168.1.103%5CMy+Recordings%5CHouse-APoxonOurHouse-1842215-0.mpg 01/16/2011 04:30:27 PM INFO Could not get valid data from standard file location, trying local URL: http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=D%3AMy+Recordings%5CHouse-APoxonOurHouse-1842215-0.mpg 01/16/2011 04:30:27 PM ERROR Cannot get valid XML from SageX API even after using local path at http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=D%3AMy+Recordings%5CHouse-APoxonOurHouse-1842215-0.mpg. Cannot continue. Please check the XML at http://192.168.1.103:8080/sagex/api?c=GetMediaFileForFilePath&1=%5C%5C192.168.1.103%5CMy+Recordings%5CHouse-APoxonOurHouse-1842215-0.mpg for integrity in these elements: <Airing>, <MediaFileID>, <ShowTitle>, <ShowEpisode>, <OriginalAiringDate>, <IsFileCurrentlyRecording>. java.lang.Exception: Neither normal nor local path returned valid XML at sage.SageToXBMC.getRootElementFromSageX(SageToXBMC.java:1624) at sage.SageToXBMC.processVideo(SageToXBMC.java:1667) at sage.SageToXBMC.scanForMatchingFiles(SageToXBMC.java:1090) at sage.SageToXBMC.<init>(SageToXBMC.java:860) at sage.SageToXBMC.main(SageToXBMC.java:126) |
#31
|
||||
|
||||
Hmm... It is using a standard URL Encoder, and it's generally considered good practice to encode URLs. I'm surprised that it doesn't work with the encoded URL. It's an easy code change for me to try the non-encoded URL as well. I'll do that and give you an update.
Looking closer at the encoded URL, it looks like it's encoded incorrectly. D:\ should be D%3A%5C But it's turning into just D%3A. Do me a favor and check and make sure you local_equiv attribute has the "\" in it, and it's not D:My Recordings Let me see whats going on. Looks like you might have found a bug. Last edited by bradvido; 01-16-2011 at 07:27 PM. |
#32
|
||||
|
||||
Quote:
Code:
<SageRecordingDirs> <!--<dir>D:\My Recordings</dir> Example Only, please modify --> <dir local_equiv="D:My Recordings">\\192.168.1.103\My Recordings</dir><!--Example Only, please modify --> </SageRecordingDirs> Thanks. When I get home I'll add the dropbox as a source. And play around a bit. Thanks again, for the patience. |
#33
|
||||
|
||||
V 1.3 release with many new features.
All the details are here: http://forum.xbmc.org/showthread.php?p=661756 Most exciting feature: now every SageTV recording can be added to your XBMC library (even if it's episode and season number are unknown). Such as News programs or NFL games: The "Aired" and "Genre" are also added, this screenshot is a little out of date Last edited by bradvido; 01-25-2011 at 03:44 PM. |
#34
|
|||
|
|||
When I run the run-x64.cmd I get this error:
D:\SAGE-XBMC v1.3\dist>"C:\Program Files (x86)\Java\jre6\bin\java.exe" -jar "Sag eXBMC.jar" Failed to check for an already running instance of this script, this can cause u ndesired behavior: java.io.FileNotFoundException: D:\SAGE-XBMC%20v1.3\res\single Instance.txt (The system cannot find the path specified) Unknown eror: java.lang.NullPointerException java.lang.NullPointerException at utilities.Config.log(Config.java:905) at utilities.Config.<init>(Config.java:155) at sage.SageToXBMC.<init>(SageToXBMC.java:202) at sage.SageToXBMC.main(SageToXBMC.java:50) Failed to check for an already running instance of this script, this can cause u ndesired behavior: java.io.FileNotFoundException: D:\SAGE-XBMC%20v1.3\res\single Instance.txt (The system cannot find the path specified) D:\SAGE-XBMC v1.3\dist>pause Press any key to continue . . . It appears that my path to Java is correct but that somehow the program can't find the singleinstance.txt file. I don't see any way to change this path. Am I missing something obvious? |
#35
|
||||
|
||||
Quote:
It should be at INSTALL_DIR\res\singleInstance.txt Do you see it there? The program this this is: Code:
D:\SAGE-XBMC v1.3\res\singleInstance.txt EDIT: Looks like you've found a bug. Take the space out of your folder name, and it will work; Use D:\SAGE-XBMC-v1.3 instead of D:\SAGE-XBMC v1.3\ Last edited by bradvido; 01-26-2011 at 09:11 AM. |
#36
|
|||
|
|||
Thanks
I've got the script running now. |
#37
|
||||
|
||||
Just released v1.4 with quite a few feature enhancements and bug fixes.
If you're interested: http://forum.xbmc.org/showthread.php?p=661756 http://forum.xbmc.org/showpost.php?p...3&postcount=96 |
Tags |
boxee, integration, xbmc |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Will XBMC interfere with SageTV? | tonysathre | Sage My Movies | 1 | 09-08-2010 03:39 PM |
XBMC SageTv Plugin | mikwilli | SageTV Customizations | 95 | 04-30-2010 12:50 PM |
XBMC plugin for SageTV | jhh | SageTV Customizations | 45 | 04-19-2009 01:16 PM |
SageTV vs. XBMC MediaStream UI? | SørenBM | SageMC Custom Interface | 2 | 03-07-2009 02:29 PM |
XBMC Script for SageTV Released 3/1/2006 | Coolwave | SageTV Customizations | 361 | 03-04-2009 03:15 PM |