|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Plugin File management
I've got a database file that I need to install with a plugin to this directory: plugins/myplugin/. But if the database file already exists, I don't want the plugin to overwrite it. Can the plugin system handle this or do I need to manually code for this?
My plug will have a package for the STVi and a package for the JAR. STVi.zip will have the XML file JAR.zip will have the JAR file If I put the database file in the JAR.zip and specify Overwrite=false in the plugin manifest, then the JAR file won't get overwritten. Right? Do I have to put it in the JAR.zip file and write code to move it to plugins/myplugin/ if it doesn't exist and if it already exists, then just delete the file out of the JAR directory? |
#2
|
||||
|
||||
Just put your configuration/database (ie files that you don't want to overwrite) in another .zip file and use overwrite=false for that zip only.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
||||
|
||||
Why put it in the JARs directory in the first place? Your plugin can have as many packages as you need. In this case a System package seems like the appropriate vehicle for extracting the file to where you want it to be.
__________________
-- Greg |
#4
|
|||
|
|||
Ok, I guess I wasn't thinking about a new package as an option . Thanks for pointing that out. So I can have a 3rd package of type system with overwrite=false and in the zip file have: plugins/myplugin/databasefile.db
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) | cslatt | SageTV Customizations | 48 | 06-11-2012 10:44 AM |
Plugin: SageRecordings XML file generator (v1.3 8/Aug/2007) | nielm | SageTV Customizations | 36 | 07-23-2011 03:55 PM |
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin | deria | SageTV Customizations | 447 | 12-11-2010 07:38 PM |
Plugin / Utility request: shutdown SageTV and execute a batch file | korben_dallas | SageTV Customizations | 13 | 05-03-2010 05:44 AM |