• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 15
SageTV Integration - Movies and TV Shows archiving compatible with XBMC
#46
I'm getting a 404 Not Found error when trying to download 1.3. Working on some last minute debugging? Smile
Reply
#47
I'm seeing the same 404 error. Sad
Reply
#48
TugboatBill Wrote:I'm seeing the same 404 error. Sad
Woops. Just fixed the bad link.Oo
Try again
XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
Reply
#49
Minor update released: 1.3.1
Fixed a couple bugs. See the change log/first post for details.

If you already installed 1.3, to upgrade, all you have to do is replace the /dist/SageXBMC.jar file with the one from 1.3.1.
XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
Reply
#50
I just upgraded to 1.31 and the new manual archive options are working, but XBMC won't add them to the library. When in debug mode, here's the only thing in the log I see about video stuff:

Code:
22:10:29 T:4580 M:1812996096  NOTICE: VideoInfoScanner: Starting scan ..
22:10:29 T:4580 M:1811673088   DEBUG: VideoInfoScanner: No (new) information was found in dir D:\AmazonUnbox\Justified [HD]\
22:10:29 T:4580 M:1811464192   DEBUG: VideoInfoScanner: No (new) information was found in dir D:\Video\XBMC\TV Shows\Blue.Bloods\
22:10:29 T:4580 M:1811120128   DEBUG: VideoInfoScanner: No (new) information was found in dir D:\Video\XBMC\TV Shows\Bones\
22:10:29 T:4580 M:1811009536   DEBUG: VideoInfoScanner: No (new) information was found in dir D:\Video\XBMC\TV Shows\Chuck\
22:10:29 T:4580 M:1811169280   DEBUG: VideoInfoScanner: No (new) information was found in dir D:\Video\XBMC\TV Shows\Medium\
22:10:29 T:4580 M:1811087360   DEBUG: VideoInfoScanner: Found episode match d:\video\XBMC\tv shows\nbc.nightly.news\season.0\nbc.nightly.news.s00e01.mpg (s0e1) [[Ss]([0-9]+)[][._-]*[Ee]([0-9]+)([^\\/]*)$]
22:10:29 T:4580 M:1811001344   DEBUG: Win32DllLoader::Load(special://xbmcbin/system/libcurl.dll)
22:10:29 T:1676 M:1810698240  NOTICE: initialize done
22:10:29 T:1676 M:1810694144  NOTICE: Running the application...
22:10:29 T:1676 M:1810694144   DEBUG: CApplication::ExecuteXBMCAction : Translating SetFocus(10)
22:10:29 T:1676 M:1810694144   DEBUG: CApplication::ExecuteXBMCAction : To SetFocus(10)
22:10:29 T:2284 M:1810690048   DEBUG: thread start, auto delete: 0
22:10:29 T:1676 M:1810669568    INFO: initializing python engine.
22:10:29 T:1676 M:1810669568   DEBUG: Win32DllLoader::Load(special://xbmcbin/system/python/python24.dll)
22:10:29 T:4580 M:1810612224   DEBUG: Win32DllLoader::Load(special://xbmcbin/system/libidn-11.dll)
22:10:29 T:2284 M:1810575360   DEBUG: MUSIC_INFO::CMusicInfoScanner::Process - Starting scan
22:10:29 T:4580 M:1810558976   DEBUG: Win32DllLoader::Load(special://xbmcbin/system/libeay32.dll)
22:10:29 T:3188 M:1810558976   DEBUG: thread start, auto delete: 0
22:10:29 T:4580 M:1810092032   DEBUG: Win32DllLoader::Load(special://xbmcbin/system/libssl32.dll)

It finds NBC Nightly News but does nothing with it. It doesn't seem to find News Channel 2 at Six at all.

Here's how I have them setup in the Config.xml file:

Code:
        <Group extension="mpg" keep_orginal="false">
            <add tvdb="164981">BlueBloods</add>                                                                    
            <add tvdb="75682">Bones</add>
            <add tvdb="83462">Castle</add>
            <add tvdb="160671">TheCape</add>
            <add tvdb="80348">Chuck</add>
            <add tvdb="72546">CSICrimeSceneInvestigation</add>
            <add tvdb="78310">CSIMiami</add>
            <add tvdb="82066">Fringe</add>
            <add tvdb="164541">HawaiiFive0</add>                                                                    
            <add tvdb="94801">HumanTarget</add>
            <add tvdb="95441">NCISLosAngeles</add>
            <add tvdb="72108">NCIS</add>                                                                    
            <add tvdb="163851">NoOrdinaryFamily</add>
            <add tvdb="94971">V</add>
            <add manual_archive="true" max_tvdb_lookups="1">NBCNightlyNews</add>
            <add manual_archive="true" max_tvdb_lookups="1">NewsChannel2atSix</add>                                                                    
        </Group>

Thoughts?
Reply
#51
pkscuot Wrote:I just upgraded to 1.31 and the new manual archive options are working, but XBMC won't add them to the library. When in debug mode, here's the only thing in the log I see about video stuff:
Thoughts?
That's interesting that it's not in XBMC's library. Is the file where you expect it in the dropbox?
Check and make sure there is an associated tvshow.nfo in the TV Show's directory and [epidose_file_name].nfo next to the recording.
Post the contents of them so I can make sure they are correct.

That XBMC log info doesn't help much. Check and make sure you found the first time in the log that XBMC found the file.
Here's what I'd expect to see in XBMC's log.

Code:
18:13:02 T:12492 M:4294967295   DEBUG: VideoInfoScanner: Found episode match smb://onyx/data/compressed/tv shows/abc.world.news.with.diane.sawyer/season.0/abc.world.news.with.diane.sawyer.s00e01 (sh012109720000).mpg (s0e1) [[Ss]([0-9]+)[][._-]*[Ee]([0-9]+)([^\\/]*)$]
18:13:02 T:12492 M:4294967295   DEBUG: VideoInfoScanner: Found matching Full NFO file: smb://ONYX/Data/compressed/TV Shows/ABC.World.News.With.Diane.Sawyer/Season.0/ABC.World.News.With.Diane.Sawyer.S00E01 (SH012109720000).nfo
18:13:02 T:12492 M:4294967295   DEBUG: VideoInfoScanner: Adding new item to tvshows:smb://ONYX/Data/compressed/TV Shows/ABC.World.News.With.Diane.Sawyer/Season.0/ABC.World.News.With.Diane.Sawyer.S00E01 (SH012109720000).mpg
18:13:02 T:12492 M:4294967295   DEBUG: Mysql execute: insert into path (idPath, strPath, strContent, strScraper) values (NULL,'smb://ONYX/Data/compressed/TV Shows/ABC.World.News.With.Diane.Sawyer/Season.0/','','')
18:13:02 T:12492 M:4294967295   DEBUG: Mysql execute: insert into files (idFile,idPath,strFileName) values(NULL, 715, 'ABC.World.News.With.Diane.Sawyer.S00E01 (SH012109720000).mpg')
18:13:02 T:12492 M:4294967295   DEBUG: Mysql execute: insert into episode (idEpisode, idFile) values (NULL, 2849)
18:13:02 T:12492 M:4294967295   DEBUG: Mysql execute: insert into tvshowlinkepisode (idShow,idEpisode) values (229,1648)
18:13:02 T:12492 M:4294967295   DEBUG: Mysql Start transaction
18:13:02 T:12492 M:4294967295   DEBUG: Mysql execute: insert into actorlinkepisode (idActor, idEpisode, strRole) values(5763,1648,'')
18:13:02 T:12492 M:4294967295   DEBUG: Mysql execute: update episode set c00='ABC World News With Diane Sawyer - 12/21/2009',c01='The latest world and national news.',c02='',c03='0.000000',c04='',c05='2009-12-21',c06='',c07='',c08=NULL,c09='',c10='',c11='',c12='0',c13='1',c14='',c15='-1',c16='-1',c17='-1'where idEpisode=1648
18:13:02 T:12492 M:4294967295   DEBUG: Mysql commit transaction
18:13:02 T:12492 M:4294967295   DEBUG: Mysql execute: update files set playCount=NULL,lastPlayed=NULL where idFile=2849
18:13:02 T:12492 M:4294967295    INFO: Caching image from: smb://ONYX/Data/compressed/TV Shows/ABC.World.News.With.Diane.Sawyer/Season.0/ABC.World.News.With.Diane.Sawyer.S00E01 (SH012109720000).tbn to special://masterprofile/Thumbnails/Video/7/74a2c4fe.tbn with width 512 and height 512
XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
Reply
#52
pkscuot Wrote:I just upgraded to 1.31 and the new manual archive options are working, but XBMC won't add them to the library.
I found a bug in the manual archiving tvshow.nfo files.
I just posted a fix for it (1.3.2).
That will fix things for you.

Before you install it. Delete any tv show directories that have been manually archived already by this program.
Then do a "clean" on xbmc's video database.

Then you will be able to archive as usual...

Also, my son wants to put this: NodCoolBig GrinStare
XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
Reply
#53
Thanks so much for doing this, I have been looking for a script that can bridge my sage recordings to my boxee box. This is working great.
Reply
#54
bradvido88 Wrote:I found a bug in the manual archiving tvshow.nfo files.
I just posted a fix for it (1.3.2).
That will fix things for you.

And here I was about to post the results of my testing. I'll download it tomorrow morning, but in the meantime I found that if I edited the tvshow.nfo file and put a URL in the the episode guide area of the XML, then the show would scan and load into the library. I used a valid thetvdb epsiodeguide URL, but not a *correct* one.

So this:
Code:
<episodeguide>

</episodeguide>

Turned into this:
Code:
<episodeguide>
<url cache="139911.xml">http://www.thetvdb.com/api/{APIKEY}/series/139911/all/en.zip</url>
</episodeguide>

I don't suppose that was the fix you just implemented?
Reply
#55
This looks like a much better solution than my current hacked up way of doing this. Just a couple of questions. First, I have XBMC's web interface running on a different port, so I used this in the config file:

<XBMCLocation>192.168.0.77:28080</XBMCLocation>

But I get this error:
Code:
01/30/2011 01:30:44 PM INFO    Attempting to have XBMC scan for new content.
01/30/2011 01:30:44 PM INFO    JSON-RPC Command = {"jsonrpc": "2.0", "method": "VideoLibrary.ScanForContent", "id": "1"}
01/30/2011 01:30:44 PM INFO    Connecting to JSON-RPC at 192.168.0.77:28080:9090
01/30/2011 01:30:44 PM ERROR   Failed to call VideoLibrary.ScanForContent using XBMC's JSON-RPC interface: java.net.UnknownHostException: 192.168.0.77:28080
java.net.UnknownHostException: 192.168.0.77:28080
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at utilities.XbmcJsonRpc.callMethod(XbmcJsonRpc.java:78)
    at sage.SageToXBMC.scanForMatchingFiles(SageToXBMC.java:722)
    at sage.SageToXBMC.<init>(SageToXBMC.java:222)
    at sage.SageToXBMC.main(SageToXBMC.java:50)

Looks like it's adding 9090 on the end. Not sure how to specify the port.

Secondly, I need a different naming format than what this uses.

Code:
This:
\\TOWER\disk2\TV\Saturday Night Live\Season 36\Saturday.Night.Live.s36e13.mpg

instead of

\\TOWER\disk2\TV Shows\Saturday.Night.Live\Season.36\Saturday.Night.Live.S36E13 - Jesse EisenbergNicki Minaj.mpg

Unclear from this, but I would also need Season folders to use a single digit, e.g., Season 1 not Season 01. Not sure which way this program does it.

Is there a way for me to modify this for my install or could these options be added to the config?

Thanks!
Reply
#56
pkscuot Wrote:I used a valid thetvdb epsiodeguide URL, but not a *correct* one.

So this:
Code:
<episodeguide>

</episodeguide>
Turned into this:
Code:
<episodeguide>
<url cache="139911.xml">http://www.thetvdb.com/api/{APIKEY}/series/139911/all/en.zip</url>
</episodeguide>
I don't suppose that was the fix you just implemented?
Well, sort of.
For manual archivings, there is often no valid TVDB URL. So I was leaving an empty <episodeguide /> element in the tvshow.nfo. XBMC choked on this. It would rather just not have the episodeguide set in there at all, in which case the manual archiving works great. That's the fix I used.
XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
Reply
#57
jcato Wrote:First, I have XBMC's web interface running on a different port, so I used this in the config file:

<XBMCLocation>192.168.0.77:28080</XBMCLocation>

Looks like it's adding 9090 on the end. Not sure how to specify the port.

Secondly, I need a different naming format than what this uses.

Code:
This:
\\TOWER\disk2\TV\Saturday Night Live\Season 36\Saturday.Night.Live.s36e13.mpg

instead of

\\TOWER\disk2\TV Shows\Saturday.Night.Live\Season.36\Saturday.Night.Live.S36E13 - Jesse EisenbergNicki Minaj.mpg
Unclear from this, but I would also need Season folders to use a single digit, e.g., Season 1 not Season 01. Not sure which way this program does it.

Is there a way for me to modify this for my install or could these options be added to the config?

1st - The JSON-RPC interface is not using XBMC's webserver. XBMC has a native, raw interface, that it hosts on port 9090. In order to use it, you need to check "allow external control of xbmc...." in the settings. Then remove the port from your config, and it you should be good.

2nd - Yes, the program is admittedly lacking in its naming and archiving hierarchy configuration. I just set up a default way that is guaranteed to work with XBMC's library.
I am currently making some minor fixes with file naming and handling special characters. I could pretty easily add an option to the config file to not replace spaces with dots. So you would have \Season 36\ instead of \Season.36\.
It currently does use a single digit for seasons below 10, so you should be OK there.
Curious as to why you need the change? Is it for compatibility with some other programs besides XBMC?
XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
Reply
#58
bradvido88 Wrote:In order to use it, you need to check "allow external control of xbmc...." in the settings. Then remove the port from your config, and it you should be good.

Thanks, I didn't understand the difference.

bradvido88 Wrote:Curious as to why you need the change? Is it for compatibility with some other programs besides XBMC?

I use SickBeard to organize and scrape my shows and that's the way I have my episodes setup. I guess my system is a little messed up since I use a period as the separator in the file name and a space in the folder names. I could probably find a program to help make that consistent and not need to customize the naming in your program.
Reply
#59
Quote:\\TOWER\disk2\TV\Saturday Night Live\Season 36\Saturday.Night.Live.s36e13.mpg

Hey, A fellow unraid user.

Question, do you have any problems with video playback stuttering while sage is doing a scan of the import drives?
Reply
#60
Hi bradvido88, This is a great app! thank you so much for creating and sharing it.

I do have an issue:

Quote: A Process ID could not be found for the process named "handbrakecli.exe"

in the task manager it shows up as "HandBrakeCLI *32" I tried putting that in the config file, but no luck. Any suggestions?

Thanks again.
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 15

Logout Mark Read Team Forum Stats Members Help
SageTV Integration - Movies and TV Shows archiving compatible with XBMC1