|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
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.
|
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
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?
|
#4
|
|||
|
|||
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" Bill |
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
Interesting, thanks. Anyone else have any other helpful variants to mention?
|
#7
|
||||
|
||||
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 |
#8
|
||||
|
||||
Thanks folks. I've been avoiding learning how to use SJQ, but maybe I'll have to dive in here at some point.
|
#9
|
|||
|
|||
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 |
#10
|
|||
|
|||
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. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |