SageTV Community  

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

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-17-2008, 01:34 PM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Remove file from library without deleting from disk?

Is this possible from the API? The only functions I can find are "DeleteFile" and "DeleteFileWithoutPrejudice" but these both seem to delete the file from disk. I just want to remove it from the database/library but can't seem to find a function for this?
__________________
-Craig
Reply With Quote
  #2  
Old 01-17-2008, 01:43 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
There isn't any such function. You could use java_io_File calls to rename the file first, then call DeleteFile on the MediaFile, then rename the file back. But if it's in a recording directory and its name has the form of a recording filename, it will probably get added back into the database automatically at some point.

What's the larger problem that you're trying to solve by this?
__________________
-- Greg
Reply With Quote
  #3  
Old 01-17-2008, 02:52 PM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Quote:
Originally Posted by GKusnick View Post
What's the larger problem that you're trying to solve by this?
I have added some files with the AddMediaFile() function but want to remove them from the library. I can't because there is not an "import directory" to get rid of to clear them out (they show up at the root).
__________________
-Craig
Reply With Quote
  #4  
Old 01-17-2008, 03:22 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Then your best solution is probably to physically move the files somewhere safe while you call DeleteFile on the MediaFile entries.
__________________
-- Greg
Reply With Quote
  #5  
Old 01-17-2008, 03:50 PM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Ok, thanks. I guess I should make a feature request...
__________________
-Craig
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
STV: SageMC 16x9 Version 6.x (latest dev build) dflachbart SageMC Custom Interface 6112 04-04-2008 11:16 PM
Black screen and no audio on Client shatter SageTV Software 7 02-21-2007 08:41 PM
Re-ordered frq file doesn't load in SageTV cortechs SageTV Software 2 01-14-2007 11:51 AM


All times are GMT -6. The time now is 07:37 PM.


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