SageTV Community  

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

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2014, 08:26 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Automate moving TV shows

Is there a method or plugin that automates the moving of TV shows from the recording directory into an import directory on another hard drive? Would like to use primary SSD to record all television, then late at night, move these files into an import directory to clear the SSD for tomorrow's recordings - and initiate a media scan soon after the files are moved.
Reply With Quote
  #2  
Old 09-29-2014, 09:07 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
I wrote a bat file utilizing robocopy a while ago that you could probably repurpose for that. I posted it around here somewhere.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #3  
Old 09-30-2014, 11:20 AM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Is the utility capable of reading the status of whether a program is being watched before it is moved, or invoke a media scan in Sage after the move is complete so that the files are immediately re-adopted?
Reply With Quote
  #4  
Old 09-30-2014, 12:44 PM
bill321 bill321 is offline
Sage User
 
Join Date: Nov 2007
Posts: 44
I have a robocopy batch file that does this (mostly). I use the minage switch in robocopy to move only the files that are older than 8 days. In your case, if your SSD is small, you could use 1 or 2 days. I run the batch file in the middle of the night when nothing is being watched. Since I am moving only one day's worth at a time, the move happens pretty quickly.

I record to two local drives and move to a NAS. The local drives and NAS drive are configured as recording directories with the NAS folder configured to "use only" 0 gigabytes in Sage.

Code:
cd "C:\Program Files\Windows Resource Kits\Tools"
robocopy "e:\sagelocal1" "\\syn2\newsagerecordings" /move /e /minage:8 /R:2 /NFL /log:c:\sagelocal.txt
robocopy "f:\sagelocal2" "\\syn2\newsagerecordings" /move /e /minage:8 /R:2 /NFL /log+:c:\sagelocal.txt

c:\wget\bin\wget.exe --delete-after --tries=1 --directory-prefix="c:\wget" "http://username:password@[ipaddress of sage machine]:8080/sage/GlobalCommand?command=UpdateMediaLibrary"
You need robocopy and wget (plus the web interface plugin installed) - all free.

Bill
Reply With Quote
  #5  
Old 09-30-2014, 04:23 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Yep, mine ran nightly and looked for anything older than a day or so.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #6  
Old 09-30-2014, 04:58 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Interesting, thanks. Anyone else have any other helpful variants to mention?
Reply With Quote
  #7  
Old 09-30-2014, 08:33 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
If you're looking for something more robust, you could check out SJQ.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #8  
Old 10-01-2014, 05:42 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Thanks folks. I've been avoiding learning how to use SJQ, but maybe I'll have to dive in here at some point.
Reply With Quote
  #9  
Old 10-02-2014, 08:28 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I do this with SJQ. For any show with a genre of "children" I use Handbrake to transcode to h.264/mp4 files and then copy to a folder named with the name of the show. Changing to mp4 may reduce file size somewhat and will make the files more portable as these files are easier to play on an ipad.

Within SJQ you have full access to the Sage API so you can determine watched status, etc and you can start a media scan.
__________________
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
  #10  
Old 10-04-2014, 09:31 PM
pjpjpjpj pjpjpjpj is offline
Sage Icon
 
Join Date: Feb 2008
Posts: 2,164
I just use the default Sage "convert" function. I am OTA so all my recordings are MPEG2, I just set them in the "Favorite" Options screen to auto-convert to MKV, delete the original after converting, and I assign the path to another drive/folder of my choosing. It's all built into native Sage, and gives the same result as what you appear to looking for (other than the fact that it takes time to convert, whereas just moving a file as-is would be almost instant). The files are in other folders on other drives but all still show up in the recordings list like nothing ever happened, and there's no risk of Sage "losing track" of them because the move is being done by Sage itself rather than a third-party.
__________________
Server: AMD Athlon II x4 635 2.9GHz, 8 Gb RAM, Win 10 x64, Java 8, Gigabit network
Drives: Several TB of internal SATA and external USB drives, no NAS or RAID or such...
Software: SageTV v9x64, stock STV with ADM.
Tuners: 4 tuners via (2) HDHomeruns (100% OTA, DIY antennas in the attic).
Clients: Several HD300s, HD200s, even an old HD100, all on wired LAN. Latest firmware for each.
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
Question About Moving TV Shows to Video Folder will SageTV Software 5 07-30-2014 04:17 PM
Moving Hard Drives w/shows to new computer? mrrrl SageTV Software 6 12-14-2006 09:16 PM
Manually Moving Shows to Video Library Karen0302 SageTV Beta Test Software 7 03-25-2006 11:09 PM
Moving recorded shows around srothwell SageTV Software 1 12-15-2005 02:11 PM
Moving Sage TV shows to Sony's PSP dhalsim007 General Discussion 5 09-02-2005 07:20 PM


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


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