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 12-14-2005, 01:23 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
using dirmon to clean out orphans

I've been playing around with Dirmon lately trying to figure out how to make it clean up my orphans files, not freak out on HDTV files, and not control my comskip executing as I let SageMC handle that. I looked around the forums and I didn't see anything directly addressing this problem so I hammered out my own work around.

1) First I set up Dirmon exactly as you would for normal comskipping, however I added a new target extension 'hdtv' and set my triggers as 'Does Exist mpg OR mpeg' AND 'Does Not Exist txt AND hdtv'.

2) Next I created a .bat that accepts the file name as input, just as regular comskip does, and then creates a file with the same name but with the .hdtv extension.

The theory behind this is that I assume that any video that doesn't have a comskip .txt file is an HDTV file that comskip wouldn't process and thus needs to be ignored. Then in the likely case that dirmon catches a regular SD video before it has been comskipped it will go ahead and create the .hdtv file, however, SageMC doesn't check for this so it will be comskipped as usual whenever SageMC gets around to it.

I ran it through the paces the other day and it seemed to work pretty well. No SD show went ignored, Dirmon doesn't try and process my HDTV files over and over again, and all of my orphaned files get deleted.

I hope this helps someone, if not, oh well

contents of my OrphanCleaner.bat
Code:
echo HDTV  >> "%~d1%~p1"%~n1.hdtv
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 03:04 AM.


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