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 10-27-2008, 06:34 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
DeleteFile v. DeleteFileWithoutPrejudice

OK, I know what the API docs say about these two methods, i.e. that they have "a slightly different effect on Intelligent Recording". Can anyone shed any light on exactly what that difference is? Specifically, can the additional effect of DeleteFile be simulated with some combination of Watched and DontLike flags? Or is it encoded in some hidden third flag that's settable only by DeleteFile and not otherwise clearable or queryable through the API?

Thanks.
__________________
-- Greg
Reply With Quote
  #2  
Old 10-27-2008, 08:39 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
DeleteFileWithoutPrejudice() says it deletes the file and the database object, therefore the airing can't be used for any Intelligent Recording consideration because it no longer exists at all as far as SageTV is concerned.

DeleteFile() leaves the database object intact with all of its tags, such as how much, if any, of the show you've watched, or whether you've marked the show as Don't Like.

You could use DeleteFileWithoutPrejudice() to remove a recording error or to delete a show that you've watched but which you want to make sure has no effect on future IR decisions.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #3  
Old 10-27-2008, 09:25 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Well, they both claim to delete the MediaFile object from the database -- which makes sense; otherwise we'd have to filter out orphaned MediaFile objects in the UI.

However what you may be suggesting is that DeleteFile preserves the internal flag that marks as Airing object as having been recorded, thus preventing it from being purged during EPG updates and keeping it in the DB indefinitely. Whereas DeleteFileWithoutPrejudice presumably clears that flag, thereby allowing the Airing to be purged normally as it ages.

Does that sound right?
__________________
-- Greg
Reply With Quote
  #4  
Old 10-27-2008, 09:58 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by GKusnick View Post
Well, they both claim to delete the MediaFile object from the database -- which makes sense; otherwise we'd have to filter out orphaned MediaFile objects in the UI.
Oops, sorry, I tried answering too quickly & obviously wasn't thinking straight when I wrote that.

Quote:
However what you may be suggesting is that DeleteFile preserves the internal flag that marks as Airing object as having been recorded, thus preventing it from being purged during EPG updates and keeping it in the DB indefinitely. Whereas DeleteFileWithoutPrejudice presumably clears that flag, thereby allowing the Airing to be purged normally as it ages.

Does that sound right?
I can't really say what the exact mechanism is, but it would get rid of whatever flags are used when determining IR decisions.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
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 02:30 AM.


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