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
  #1  
Old 09-03-2007, 07:46 PM
infocus13's Avatar
infocus13 infocus13 is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 199
Question DIY TV Archiving?

Guys, I have a question about a DIY TV-archiving technique.

Currently, I used the following method to archive my TV recordings (i.e. move them over to a bigger drive) where they won't be watched/used often:

* I've created a batch file to basically copy all my recorded TV from my normal recorded TV directory to a different HDD. The batch file runs every week and then deletes all of the contents of my recorded TV directory

* Using this method, most of my moved TV shows show up under "Recorded TV" (or Sage TV Recordings) with all of their show info, etc. They also automatically get the "Archived" flag which is awesome.

* The key point here is that **MOST** of my moved shows retain their show info and show up in Recorded TV. Some don't and these shows disappear from Recorded TV completely, which is a pain.

* To solve the above issue I have to manually do a Video Lib rescan (Rescan Import Folders). Given that my TV Archive drive/folder is also setup as a Video Import folder, all of my moved TV shows that disappear after the move, reappear under Recorded TV once I rescan. Problem solved!

My only issue with the above is that it is very manual an inconvenient. What I want to be able to do is the following:

* Create a SageMC menu shortcut called "Archive TV" (or something similar) that will achieve the following:

1. Call my batch file to move all of my Recorded TV to my TV Archive HDD/folder
2. Then, once the move is complete, automatically rescan my import video folders to pickup all of my moved recorded TV to ensure it all comes up under Recorded TV.

I know I can do point (1) using dynamic menus in SageMC, but how do I automatically trigger the video rescan process? I basically want Sage to do actions (1) and (2) in that order with just one menu option.

Any help would be much appreciated. This is the last piece of the puzzle (almost) to make Sage the perfect HTPC media centre.

Thanks guys!

Last edited by infocus13; 09-03-2007 at 08:50 PM.
Reply With Quote
  #2  
Old 09-03-2007, 11:03 PM
mickp's Avatar
mickp mickp is offline
Sage Aficionado
 
Join Date: Oct 2006
Posts: 468
Um... I'm curious as to why this is necessary (not very helpful I know). Wouldn't it be easier to just record to the various drives/shares that you have and let sage manage the free space, balancing and archiving (not deleting) on multiple drives?

Mick.
Reply With Quote
  #3  
Old 09-03-2007, 11:35 PM
infocus13's Avatar
infocus13 infocus13 is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 199
Thanks for your response Mick.

I need to record to a particular dirve given that it is a physically standalone HDD - hence recordings are no interrupted by other apps using the drive.

On the other hand, my TV archive drive is a separate partitiion on the same HDD that has my OS. Thats why I am moving the archived TV to that drive - those TV shows would not be watched/accessed frequently, hence they can be on the same drive as the OS.

If anyone has any other suggestions or thoughts, please share with me. Thanks.
Reply With Quote
  #4  
Old 09-04-2007, 01:45 AM
mayamaniac's Avatar
mayamaniac mayamaniac is offline
Sage Icon
 
Join Date: May 2004
Posts: 2,177
This sounds like somthing you need to know studio to do.

But as an alternative, if you are running SageTV as a service, you can schedule it to restart the service after you run the batch file to move the shows. When SageTV service restarts, it automatically rescan the recording directories and update the show info and locations. Of course this would shutdown SageTV for a moment, but if you do it in the middle of the night when nothing is recording, then it should be ok.

commands to stop/start window services:
net stop <service name>
net start <service name>
__________________
Mayamaniac

- SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme.
- SageTV HD300 - HDMI 1080p Samsung 75" LED.
Reply With Quote
  #5  
Old 09-04-2007, 09:10 PM
infocus13's Avatar
infocus13 infocus13 is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 199
Maya, that is genius - brilliant suggestion, I included those commands in my batch file and it works - TV shows that are moved are all in Recorded Tv.

Great solution, simple but it works!
Reply With Quote
  #6  
Old 09-05-2007, 11:34 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Just remember that the Sage Service must be running when something is scheduled to record, or it won't record. So, if you try to run you batch file automatically at a set time once per week it is possible it could interfere with a recording if the batch file is stopping and starting the service.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #7  
Old 09-05-2007, 11:54 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
you can simply refresh if you use the webserver. Download wget and simply run a batchfile to refresh the library. Then there is no need to stop sageTV. See example below. The line can be added to your batch file.
Code:
C:\wget\wget.exe --tries=3 --delete-after --directory-prefix="C:\wget" "http://username:password@servername:8080/sage/GlobalCommand?command=UpdateMediaLibrary"
__________________
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; 09-05-2007 at 12:41 PM.
Reply With Quote
  #8  
Old 09-05-2007, 12:21 PM
mayamaniac's Avatar
mayamaniac mayamaniac is offline
Sage Icon
 
Join Date: May 2004
Posts: 2,177
Quote:
Originally Posted by Tiki View Post
Just remember that the Sage Service must be running when something is scheduled to record, or it won't record. So, if you try to run you batch file automatically at a set time once per week it is possible it could interfere with a recording if the batch file is stopping and starting the service.
Thats why I suggested to run it in the middle night when he is unlikely to be recording anything. And it only takes a minute.
Quote:
Originally Posted by nyplayer View Post
you can simply refresh if you use the webserver. Download wget and simply run a batchfile to refresh the library. Then there is no need to stop sageTV. See example below. The line can be added to your batch file.
Code:
C:\wget\wget.exe --tries=3 --delete-after --directory-prefix="C:\wget" "http://username:password@servername:8080/sage/GlobalCommand?command=UpdateMediaLibrary"
I thought the force update via webserver also, but didn't know how to make it work via command line, thanks for sharing. Also, does refreshing the library also rescan the recording directories or just the media library only?
__________________
Mayamaniac

- SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme.
- SageTV HD300 - HDMI 1080p Samsung 75" LED.

Last edited by mayamaniac; 09-05-2007 at 12:50 PM.
Reply With Quote
  #9  
Old 09-05-2007, 12:40 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
opps my fault that is for the epg corrected it.

That should take care of recordings too because... Sage will see the recordings in Import and match the ID,
__________________
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; 09-05-2007 at 12:48 PM.
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
Archiving movies? sojourner753 SageTV Software 3 07-03-2006 10:33 PM
Any EASY Way to Change The Background Image? joe123 SageTV Customizations 2 01-26-2006 09:23 PM
What Does Archiving Actually Do? joe123 SageTV Software 3 01-25-2006 11:43 AM
Feature request: "real" archiving! elaw SageTV Software 4 01-11-2006 10:57 AM


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


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