SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 03-06-2014, 12:31 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
::Comskip Cleanup Batch

@echo off
pushd %~dp0
:: deletes left over files (in active dir and subdirs) %%I.* (eg from comskip) when the recording %%I.ts is no longer avaiable
::
:tscheck
FOR %%I IN (*.*) DO IF NOT EXIST "%%~nI.ts" (
del %%~nI.txt
del %%~nI.incommercial
del %%~nI.edl
del %%~nI.log
del %%~nI.jpg
del %%~nI.properties
Echo Original Video does not exist for "%%~nI"
)
GOTO EOF

:EOF
__________________
Mike Janer
SageTV HD300 Extender X2
Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5
Reply With Quote
  #22  
Old 03-06-2014, 12:45 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by mikejaner View Post
::Comskip Cleanup Batch

@echo off
pushd %~dp0
:: deletes left over files (in active dir and subdirs) %%I.* (eg from comskip) when the recording %%I.ts is no longer avaiable
::
:tscheck
FOR %%I IN (*.*) DO IF NOT EXIST "%%~nI.ts" (
del %%~nI.txt
del %%~nI.incommercial
del %%~nI.edl
del %%~nI.log
del %%~nI.jpg
del %%~nI.properties
Echo Original Video does not exist for "%%~nI"
)
GOTO EOF

:EOF
That works but it can be dangerous if you have a mixture of ts mpg and mp4 in a directory it will delete the files associated with mpg mp4 etc...

maybe like this.
Code:
::Comskip Cleanup Batch

@echo off
pushd %~dp0
:: deletes left over files (in active dir and subdirs) %%I.* (eg from comskip) when the recording %%I.mpg is no longer avaiable
::
:tscheck
FOR %%I IN (*.*) DO IF NOT EXIST "%%~nI.ts" IF NOT EXIST "%%~nI.mkv" IF NOT EXIST "%%~nI.mp4" IF NOT EXIST "%%~nI.mpg" (
del "%%~nI.txt"
del "%%~nI.incommercial"
del "%%~nI.edl"
del "%%~nI.log"
del "%%~nI.jpg"
del "%%~nI.properties"
del "%%~nI.xml"
del "%%~nI.nfo"
del "%%~nI.VPrj"
Echo Original Video does not exist for "%%~nI"
)
GOTO EOF

:EOF
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 03-06-2014 at 01:13 PM.
Reply With Quote
  #23  
Old 03-06-2014, 01:16 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Quote:
Originally Posted by nyplayer View Post
That works but it can be dangerous if you have a mixture of ts mpg and mp4 in a directory it will delete the files associated with mpg mp4 etc...

maybe like this.

Right, sorry, I am used to recording with the HDHR Prime. I should have added a comment to that section to compensate for your recordings file types.
__________________
Mike Janer
SageTV HD300 Extender X2
Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5
Reply With Quote
  #24  
Old 03-06-2014, 02:13 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by mikejaner View Post
Right, sorry, I am used to recording with the HDHR Prime. I should have added a comment to that section to compensate for your recordings file types.
That is ok I just modified it a bit and it works.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #25  
Old 03-07-2014, 10:37 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Nothing against Mike's script but Slugger wrote a script in Groovy that you can run if you use SJQv4. It is available here: http://sagetv-addons.googlecode.com/...cleaner.groovy

Quote:
Originally Posted by Slugger
this script assumes that if a specified file type exists and it has no corresponding registered SageTV media file then you want to delete the artifact.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
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
Spinning circle of death and thumbnails?? jbuszkie SageTV Software 28 03-07-2012 03:22 PM
Circle of Death Owen Brent SageTV Beta Test Software 9 09-08-2010 05:39 AM
Circle of death tcomeau16 SageTV Software 13 01-13-2010 01:48 PM
Skipping around and the circle of death Razillian SageTV Beta Test Software 1 07-17-2008 08:29 PM


All times are GMT -6. The time now is 11:57 AM.


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