SageTV Community  

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

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 04-14-2005, 12:21 PM
SidKnee SidKnee is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: East Midlands, UK
Posts: 94
Thanks for the help guys - I'll let you know how I get on

Cheers,
SidKnee
Reply With Quote
  #42  
Old 05-29-2005, 02:09 PM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
Smile

Hi guys, good news!
What worked for me was an upgrade from java 1.4.2 to 1.5.

Both local and generic collection.xml now work!

Cheers
Reply With Quote
  #43  
Old 05-30-2005, 03:29 PM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
hmm, just ran into another problem.
It so happens the foldernames are not exactly the same as the <title> tags in the xml (generated from imdb). Therefor I cannot use the 'generic' collection.xml, but place local xml files in each folder (per movie). This is actually my prefered method as well.

But... The local xml file must have the same name as the movie file! Having it named as the folder doesn't work (while the folder name is used to look it up in the generic collection.xml and in the original sagemc thread it is said to work).

This poses problems with full dvd's (VIDEO_TS) and movies split into more parts.

Stanger is it possible to change this, so instead of just looking for a local xml file named as the movie file, it also looks for a local xml file named as the folder ?
Or even better a local xml named collection.xml ignoring the title ?

Thanks!
Reply With Quote
  #44  
Old 05-30-2005, 03:50 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
As for searching for something differently, I'll leave that to mlbdude, since it's part of the STV, not the java class.

As for the names, a couple of tips, I believe (not 100% sure since I don't remember how old the java class mlbdude is using is) the class should strip out bad characters from both the title before looking, so the folder/filename doesn't need to match exactly, here's what I do:
I remove anything that's not one of these "a-zA-Z0-9$()#_'`~@{}%! &-". So if you take exactly whatever's in the XML, remove anything that's not in that list, and name it that it should find it.

FWIW, here's a little newer build that may work better for finding stuff (should be case insensitive and remove bad characters). It should also be a bit faster, since I changed the way it searches.

Make sure you backup your old files first, then just replace them with these (should go in the DVDPro2Sage folder in your SageTV directory). This is sort of my "personal" build, it works with nearly all my DVDs (except for the box sets which I haven't figured out a good way to do yet), but may not work with the STV (I don't think I changed anything important).
Attached Files
File Type: zip DVDPro2Sage.zip (10.8 KB, 312 views)
Reply With Quote
  #45  
Old 05-30-2005, 03:50 PM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
actually the same sort of behaviour as with the icon's/images:
1. specific local <name>.xml (<name>.jpg) for specific files
2. a local collection.xml (folder.jpg) as a default for all files in the folder
3. check for title in the generic collection.xml
Reply With Quote
  #46  
Old 05-30-2005, 03:53 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Sweep, it should work fine for DVDs, that's all I have, it just looks for the DVD title matching the name of the folder containing the VIDEO_TS folder ie:
You've got:
National Treasure\VIDEO_TS
it will search for National Treasure. The only exception would be if it doesn't think that's a DVD file.
Reply With Quote
  #47  
Old 05-30-2005, 03:55 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
I think we're coming close to mailbombing here

Quote:
Originally Posted by Sweep
actually the same sort of behaviour as with the icon's/images:
1. specific local <name>.xml (<name>.jpg) for specific files
2. a local collection.xml (folder.jpg) as a default for all files in the folder
3. check for title in the generic collection.xml
I'm leaving this up to mlbdude, since it's part of his STV, all the class does is search for and retrieve info for whatever the STV wants. Shouldn't be too hard, just change it so when using a local XML, just skip the findDVD step and default to index 0, but there's not really any way to do that in the java class.

-edit

Well technically I could, I could probably base it off the filename of the XML, but that would start adding specific behavior to the class, that really should be present in whatever is using the class.
Reply With Quote
  #48  
Old 05-30-2005, 03:59 PM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
Hi Stanger, thanks for the quick reply.
With DVD's, i just ment this is poses a problem with local xml files. With a generic xml file, my only problems remains with the titles not exactly matching.
I'll have a go with your 'personal build' and hopefully mlbdude can help.

cheers
Reply With Quote
  #49  
Old 05-30-2005, 04:06 PM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
Quote:
Originally Posted by stanger89
I think we're coming close to mailbombing here
hehe, another one, just before turning in ;-)

Quote:
Originally Posted by stanger89
Well technically I could, I could probably base it off the filename of the XML, but that would start adding specific behavior to the class, that really should be present in whatever is using the class.
This can only work if the class decides what xml file to open, doesn't it ?
if so, then its not that wrong a place for the exception ;-)
Reply With Quote
  #50  
Old 05-30-2005, 05:33 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by Sweep
hehe, another one, just before turning in ;-)


This can only work if the class decides what xml file to open, doesn't it ?
if so, then its not that wrong a place for the exception ;-)
But it doesn't, it gets passed the filename of the XML to open. Theoretically, you could say "if collection.xml, search for name, else, not", but that's really not the kind of thing that should be done in a library, that should be done in the calling app, IMO
Reply With Quote
  #51  
Old 05-31-2005, 01:14 AM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
Quote:
Originally Posted by stanger89
But it doesn't, it gets passed the filename of the XML to open. Theoretically, you could say "if collection.xml, search for name, else, not", but that's really not the kind of thing that should be done in a library, that should be done in the calling app, IMO
Indeed, besides this behaviour is in the stv already when you name the xml <moviefilename>.xml

Maybe mlbdude can help, for now I'll be using the <moviefilename>.xml
Reply With Quote
  #52  
Old 05-31-2005, 03:35 AM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
Attached a small app which will scans your movies folder (see .config) and tries to create an xml file per movie(folder).

It looks for IMDB links inside *.nfo or *.url files and optionaly (see .config), when not found, searches IMDB on the movie folder name.
When an IMDB link is found it searches for the first .avi or .mpg and creates a <moviefilename>.xml
Attached Files
File Type: zip IMDB.zip (5.1 KB, 309 views)

Last edited by Sweep; 05-31-2005 at 04:24 AM.
Reply With Quote
  #53  
Old 06-09-2005, 02:03 PM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
Quote:
Originally Posted by Sweep
Hi guys, good news!
What worked for me was an upgrade from java 1.4.2 to 1.5.
argh, upgraded to java 1.5.02 and again... the nullpointer exception
(the same as in http://forums.freytechnologies.com/f...66&postcount=1)

Stanger any clues ? What java version are you using ?

for now reverting back to 1.5.01


cheers
Reply With Quote
  #54  
Old 06-14-2005, 01:04 PM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
sorry, as it turns out it had nothing to do with the java version

With the installation of the new java version I also lost the included class xerces.jar (used with the XMLTV plugin) which apparently was causing a conflict, now movieInfo was working but my EPG was no longer updating.

Downloaded a new xerces.jar (Xerces-J-bin.2.6.2.zip from http://xml.apache.org/xerces2-j/download.cgi) and everything seems to be working again.

Hoping it stays that way, cheers
Sweep
Reply With Quote
  #55  
Old 06-14-2005, 02:40 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Reply With Quote
  #56  
Old 06-14-2005, 02:56 PM
oshapir's Avatar
oshapir oshapir is offline
Sage Advanced User
 
Join Date: May 2004
Location: Israel
Posts: 142
Could you please post the xerces.jar file you use? I'm having problem getting it...
__________________
Oren Shapir - Architect
Reply With Quote
  #57  
Old 06-14-2005, 03:06 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
FWIW, you don't need that for the XML movie info/DVD Profiler stuff. At least you shouldn't.
Reply With Quote
  #58  
Old 06-14-2005, 03:39 PM
Sweep Sweep is offline
Sage User
 
Join Date: Jan 2004
Location: Netherlands
Posts: 58
This is the one I'm using now (for xmltv as Stanger mentioned):
http://www.apache.org/dist/xml/xerce...-bin.2.6.2.zip

(use the file: xercesImpl.jar)
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 01:09 PM.


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