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
  #1  
Old 03-08-2006, 06:24 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Arrow STV Import: STVi importer

Here's something I wrote which might be useful to someone else out there:

a plugin that allows you to load multiple plugin imports in one pass, making the re-import of plugins after a reinstall or during development easier. Just list the filenames of those plugins you want to import into the configuration file 'plugins.cfg', and import the importer STVi as usual. All listed plugins will get imported automatically, in the order they appear in the file.

You'll find the download and installation instructions at http://forums.sagetv.com/forums/down...?do=file&id=71


Dirk
Reply With Quote
  #2  
Old 03-09-2006, 06:57 AM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
Great! Nice work...worked wonderfully.
Reply With Quote
  #3  
Old 03-09-2006, 09:22 AM
src666 src666 is offline
Sage Aficionado
 
Join Date: Feb 2005
Posts: 459
Does this result in a new XML file with all the imports in it, or does it dynamically load the imports when you start Sage?
Reply With Quote
  #4  
Old 03-09-2006, 10:02 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by src666
Does this result in a new XML file with all the imports in it, or does it dynamically load the imports when you start Sage?
Yes, it will create a new XML file with all the imports in it. In fact, it is really equivalent to importing each single import manually through the Sage Detailed Setup (including the creation of all the intermediate STV files, one for each import). Look at it as a 'macro' which will save you some time ...

Dirk
Reply With Quote
  #5  
Old 04-04-2006, 11:46 PM
Wheemer's Avatar
Wheemer Wheemer is offline
Sage Icon
 
Join Date: Dec 2004
Location: Deer Lake, NL, Canada
Posts: 1,493
There is no plugins.cfg file in the archive... I'm gonna try this with building my own plugins.cfg from the example given...

imdb_search_import.stvi
miniguide_plugin_0_94.stvi
[...]

Hopefully it works.

Update: Worked perfectly... very nice, makes upgrading to the lastest betas a breeze! Thank You!!

Last edited by Wheemer; 04-05-2006 at 12:29 AM.
Reply With Quote
  #6  
Old 05-10-2006, 05:51 AM
klunde's Avatar
klunde klunde is offline
Sage User
 
Join Date: Nov 2005
Posts: 39
Send a message via ICQ to klunde Send a message via AIM to klunde Send a message via MSN to klunde Send a message via Yahoo to klunde
What directory should the plugin.cfg file be in?
Reply With Quote
  #7  
Old 06-01-2006, 03:14 PM
Mike Mike is offline
Sage Advanced User
 
Join Date: Jun 2003
Posts: 123
I'm a little lost here as well. Should the plugin.cfg file be like this: Sage\Sage\plugin.cfg?

I take it that just writing the file in wordpad will get it?

Thanks,
MBrew
Reply With Quote
  #8  
Old 06-01-2006, 03:35 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by Mike
I'm a little lost here as well. Should the plugin.cfg file be like this: Sage\Sage\plugin.cfg?

I take it that just writing the file in wordpad will get it?

Thanks,
MBrew
Sorry, must have missed the recent posts ...

Yeah, the file has to be in the SageTV\SageTV directory, and you can simply create it with notepad or any other text editor without formatting. Put any stvi you want to import (filename without path) into a separate line, and it should work - see Wheemers example above ...

Dirk
Reply With Quote
  #9  
Old 06-01-2006, 03:48 PM
Mike Mike is offline
Sage Advanced User
 
Join Date: Jun 2003
Posts: 123
Dirk,

Thanks for the quick reply. I had done just that and was just about to hit import when your message came in. It was good to have the verification though. I hit it, and I haven't had time to poke around much, but I know I've got part of the customizable menu stvi from what I did see. This is a slick deal and a real time saver. Your effort is really appreciated!

To others, If I can pull this off anybody can. Just to add a note; on my system the .cfg file showed up with an outlook icon which threw me at first but it works like a charm

Thanks,
MBrew
Reply With Quote
  #10  
Old 09-14-2006, 12:35 AM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Dirk, I just tried out this import and am having problems with it. Compatible with SageMC6.11a?

If I try to import the import, it makes one new updated .xml but none of the included imports work.
Reply With Quote
  #11  
Old 09-14-2006, 05:58 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by ke6guj
Dirk, I just tried out this import and am having problems with it. Compatible with SageMC6.11a?

If I try to import the import, it makes one new updated .xml but none of the included imports work.
It should work.
Can you enable debug logging and send me the log files ?

Dirk
Reply With Quote
  #12  
Old 09-14-2006, 01:14 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Here is the debug txt.

I see this right at the begining, some Java errors.
Quote:
Thu 9/14 9:05:49.689 ========== Importing Importer v0.3 ==========
Thu 9/14 9:05:49.690 Catbert Method Lookup Failure for:df_sageplugins_Importer_startImport
java.lang.ClassNotFoundException: df.sageplugins.Importer
Thu 9/14 9:05:49.691 Catbert Method Lookup Failure for:df_sageplugins_Importer_startImport
java.lang.ClassNotFoundException: df.sageplugins.Importer
Thu 9/14 9:05:49.692 Catbert Method Lookup Failure for:df_sageplugins_Importer_startImport
java.lang.ClassNotFoundException: df.sageplugins.Importer
Thu 9/14 9:05:49.693 Catbert Method Lookup Failure for:df_sageplugins_Importer_startImport
java.lang.ClassNotFoundException: df.sageplugins.Importer
I've got Java1.5 installed, along with Java1.4. Just installed 1.5 over 1.4, could that have anything to do with it.


edit: It looks like it might be related to this:
Quote:
moved code into separate JAR file, df_sageplugins.jar no longer needed for this plugin
because it still looks like it is looking for df_sageplugins.jar if I'm reading it correct. I don't have that jar in my system.


edit2: Yup, has to do with df_sageplugins.jar. I dropped a copy into my JAR folder, and it imports in now.
Attached Files
File Type: txt sagetvclient_0 - Copy.txt (41.7 KB, 651 views)

Last edited by ke6guj; 09-14-2006 at 01:27 PM.
Reply With Quote
  #13  
Old 09-14-2006, 02:55 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by ke6guj
edit2: Yup, has to do with df_sageplugins.jar. I dropped a copy into my JAR folder, and it imports in now.
Looks like you have an older version of the importer.xml. The current version does not use df_sageplugins.jar any more, it uses df_importer.jar.

Dirk
Reply With Quote
  #14  
Old 09-14-2006, 03:42 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Nope, I dl'ed the latest version 0.3. opened up the xml, and it shows
Quote:
Action Name="df_sageplugins_Importer_startImport()" />
Reply With Quote
  #15  
Old 09-14-2006, 03:54 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by ke6guj
Nope, I dl'ed the latest version 0.3. opened up the xml, and it shows
Crap, I hate this freaking SageTV Downloads page . Must have updated something else during the upload, and it didnt take the new file. Will fix this later, but you're good for now, the functionality didn't change ...

Dirk
Reply With Quote
  #16  
Old 10-01-2006, 10:20 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Has anyone ever tried this with sage client?

It works fine on my server... but on the client it can't seem to find the STVI's. In the log file I see:
Code:
Sun 10/1 12:14:18.986 ========== Importing Importer v0.3 ==========
Sun 10/1 12:14:18.998 *** plugin dynamic_menu_import.stvi does not exist ***
Sun 10/1 12:14:18.998 *** plugin infopopup_import.stvi does not exist ***
Sun 10/1 12:14:18.999 *** plugin weather_report_suite_import.stvi does not exist ***
Sun 10/1 12:14:18.999 *** plugin miniguide_plugin_0_96.stvi does not exist ***
Sun 10/1 12:14:18.999 *** plugin imdb_search_import.stvi does not exist ***
Sun 10/1 12:14:19.000 *** plugin Detailed_Info_import_0_86.stvi does not exist ***
Sun 10/1 12:14:19.012 *** plugin ISO_mount_0_12.stvi does not exist ***
Sun 10/1 12:14:19.051 STV contains  20411 widgets
Sun 10/1 12:14:19.051 Import contains  45 widgets
Sun 10/1 12:14:19.058 Setting UI context for import to SAGETV_PROCESS_LOCAL_UI
Sun 10/1 12:14:19.059 Using import library version 1.6
Sun 10/1 12:14:19.074 ghost Main Menu removed
Sun 10/1 12:14:19.075 *** removing previous import hook ***
Sun 10/1 12:14:19.087 old import hook not found
Sun 10/1 12:14:19.099 *** renaming  STVImported Hook ***
Sun 10/1 12:14:19.103 hook renamed
Sun 10/1 12:14:19.103 *** removing import hook code ***
Sun 10/1 12:14:19.127 import hook code removed
And I know those imports are in the stv directory because I can import them by hand..

Thoughts?

Jim
Reply With Quote
  #17  
Old 10-01-2006, 11:13 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by jbuszkie
Has anyone ever tried this with sage client?

It works fine on my server... but on the client it can't seem to find the STVI's. In the log file I see:
Code:
Sun 10/1 12:14:18.986 ========== Importing Importer v0.3 ==========
Sun 10/1 12:14:18.998 *** plugin dynamic_menu_import.stvi does not exist ***
Sun 10/1 12:14:18.998 *** plugin infopopup_import.stvi does not exist ***
Sun 10/1 12:14:18.999 *** plugin weather_report_suite_import.stvi does not exist ***
Sun 10/1 12:14:18.999 *** plugin miniguide_plugin_0_96.stvi does not exist ***
Sun 10/1 12:14:18.999 *** plugin imdb_search_import.stvi does not exist ***
Sun 10/1 12:14:19.000 *** plugin Detailed_Info_import_0_86.stvi does not exist ***
Sun 10/1 12:14:19.012 *** plugin ISO_mount_0_12.stvi does not exist ***
Sun 10/1 12:14:19.051 STV contains  20411 widgets
Sun 10/1 12:14:19.051 Import contains  45 widgets
Sun 10/1 12:14:19.058 Setting UI context for import to SAGETV_PROCESS_LOCAL_UI
Sun 10/1 12:14:19.059 Using import library version 1.6
Sun 10/1 12:14:19.074 ghost Main Menu removed
Sun 10/1 12:14:19.075 *** removing previous import hook ***
Sun 10/1 12:14:19.087 old import hook not found
Sun 10/1 12:14:19.099 *** renaming  STVImported Hook ***
Sun 10/1 12:14:19.103 hook renamed
Sun 10/1 12:14:19.103 *** removing import hook code ***
Sun 10/1 12:14:19.127 import hook code removed
And I know those imports are in the stv directory because I can import them by hand..

Thoughts?

Jim
Hi Jim,

yes sure, it is supposed to work, I use it with my clients all the time.
I see you are still using v1.6 of my import library, could you re-download the importer plugin (it contains the current version 1.9) and let me know if this makes a difference ?

Dirk
Reply With Quote
  #18  
Old 10-01-2006, 02:14 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Nope... No difference... I re-extracted the whole import zip file and wrote over everything except the config file..

Code:
Sun 10/1 16:09:05.725 ========== Importing Importer v0.3 ==========
Sun 10/1 16:09:05.750 *** plugin dynamic_menu_import.stvi does not exist ***
Sun 10/1 16:09:05.750 *** plugin infopopup_import.stvi does not exist ***
Sun 10/1 16:09:05.750 *** plugin weather_report_suite_import.stvi does not exist ***
Sun 10/1 16:09:05.751 *** plugin miniguide_plugin_0_96.stvi does not exist ***
Sun 10/1 16:09:05.751 *** plugin imdb_search_import.stvi does not exist ***
Sun 10/1 16:09:05.751 *** plugin Detailed_Info_import_0_86.stvi does not exist ***
Sun 10/1 16:09:05.751 *** plugin ISO_mount_0_12.stvi does not exist ***
Sun 10/1 16:09:05.824 STV contains  20411 widgets
Sun 10/1 16:09:05.825 Import contains  45 widgets
Sun 10/1 16:09:05.831 Setting UI context for import to SAGETV_PROCESS_LOCAL_UI
Sun 10/1 16:09:05.832 Using import library version 1.9
Sun 10/1 16:09:05.844 ghost Main Menu removed
Sun 10/1 16:09:05.845 *** removing previous import hook ***
Sun 10/1 16:09:05.857 old import hook not found
Sun 10/1 16:09:05.868 *** renaming  STVImported Hook ***
Sun 10/1 16:09:05.871 hook renamed
Sun 10/1 16:09:05.871 *** removing import hook code ***
Sun 10/1 16:09:05.894 import hook code removed
Jim
Reply With Quote
  #19  
Old 10-01-2006, 03:22 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by jbuszkie
Nope... No difference... I re-extracted the whole import zip file and wrote over everything except the config file..

Code:
Sun 10/1 16:09:05.725 ========== Importing Importer v0.3 ==========
Sun 10/1 16:09:05.750 *** plugin dynamic_menu_import.stvi does not exist ***
Sun 10/1 16:09:05.750 *** plugin infopopup_import.stvi does not exist ***
Sun 10/1 16:09:05.750 *** plugin weather_report_suite_import.stvi does not exist ***
Sun 10/1 16:09:05.751 *** plugin miniguide_plugin_0_96.stvi does not exist ***
Sun 10/1 16:09:05.751 *** plugin imdb_search_import.stvi does not exist ***
Sun 10/1 16:09:05.751 *** plugin Detailed_Info_import_0_86.stvi does not exist ***
Sun 10/1 16:09:05.751 *** plugin ISO_mount_0_12.stvi does not exist ***
Sun 10/1 16:09:05.824 STV contains  20411 widgets
Sun 10/1 16:09:05.825 Import contains  45 widgets
Sun 10/1 16:09:05.831 Setting UI context for import to SAGETV_PROCESS_LOCAL_UI
Sun 10/1 16:09:05.832 Using import library version 1.9
Sun 10/1 16:09:05.844 ghost Main Menu removed
Sun 10/1 16:09:05.845 *** removing previous import hook ***
Sun 10/1 16:09:05.857 old import hook not found
Sun 10/1 16:09:05.868 *** renaming  STVImported Hook ***
Sun 10/1 16:09:05.871 hook renamed
Sun 10/1 16:09:05.871 *** removing import hook code ***
Sun 10/1 16:09:05.894 import hook code removed
Jim
That's really weird ...

Can you try it again with the attached JAR file ? It prints out in which directory it looks for the STVis. Did you by any chance change the current working directory of SageTV.exe ?

Dirk
Attached Files
File Type: zip df_importer.zip (1.9 KB, 644 views)
Reply With Quote
  #20  
Old 12-05-2006, 03:43 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
When I use this with a bunch of my imports, it leaves a 'ghost' main menu in my imported STV...

If I import the STVI's manually, I don't get a 'ghost' main menu.

If I edit the importer_0_3.stvi, remove the main menu, save, and then use it to import a bunch of my imports, I also don't get a 'ghost' main menu...

I guess some of the cleanup code is getting missed after doing so many imports...
My plugins.cfg:
Code:
CpuMotherBoardInfo_import.stvi
IntelligentSuggestions.stvi
MultiFunctionStop_import.stvi
autoaspect_import.stvi
dynamic_menu_import.stvi
imdb_search_import.stvi
infopopup_import.stvi
multispeed_skip_import.stvi
recpadding_import.stvi
rssnews_import.stvi
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
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:03 PM.


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