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 07-10-2015, 01:44 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
does Sage log past recordings?

Lost one of my recording drives - luckily backed it up three weeks ago, but have likely lost all recordings since then.
I looked thru the manual and couldn't find anything about recordings being logged. Does Sage do that, somewhere, and save the info?
At least then I can see what I lost off that drive and re-record it
thanks
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #2  
Old 07-10-2015, 02:23 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by tvmaster2 View Post
Lost one of my recording drives - luckily backed it up three weeks ago, but have likely lost all recordings since then.
I looked thru the manual and couldn't find anything about recordings being logged. Does Sage do that, somewhere, and save the info?
At least then I can see what I lost off that drive and re-record it
thanks
You can do a search in the webserver for recorded TV by filename.

for example my recording are in N:\SAGEN

I do a search using *SAGEN* in the Filename: field. That gives me recordings in N:\SAGEN

This will only work if the recordings are still in the SAGE DB.

Last edited by nyplayer; 07-10-2015 at 02:30 PM.
Reply With Quote
  #3  
Old 07-10-2015, 05:47 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by nyplayer View Post
You can do a search in the webserver for recorded TV by filename.

for example my recording are in N:\SAGEN

I do a search using *SAGEN* in the Filename: field. That gives me recordings in N:\SAGEN

This will only work if the recordings are still in the SAGE DB.
that's the problem, I'm trying to find out what was recorded that WOULDN'T be on the backup drive. The only place that info would be would be in a log somewhere.
If I use this method, it finds everything that I had backed up, but not the material I hadn't. So, for example, between June 14 and July 10, I didn't do a backup...all recordings within those dates can't be found
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson

Last edited by tvmaster2; 07-11-2015 at 06:22 PM.
Reply With Quote
  #4  
Old 07-10-2015, 09:25 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
No, the info isn't in a log anywhere. That's why I call a scheduled task every day that dumps all my recordings to an xml file every morning. If my media drive goes poof then I have the xml file to tell me what was on the drive and then I can restore/re-record/etc. what I need to, if there was anything worth restoring.

I just hit this url every morning at 4am and save the result to a file on my server's OS drive (requires webui plugin be installed):

Code:
http://localhost:8080/sage/Recordings?xml=yes
I used to run a NAS with RAID10 and all that, then I shutdown the NAS, sold the hardware, reduced my hydro bill, and started creating this xml file daily. If the drive goes boom I figure at most there's a handful of recordings I may want to get back either by ensuring they re-record or by purchasing an episode or two if needed, but most of the recordings I really wouldn't care about. And when I decided that, I decided to make this procedure my (tv) media backup solution. This solution is much cheaper to operate.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #5  
Old 07-10-2015, 10:59 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by Slugger View Post
No, the info isn't in a log anywhere. That's why I call a scheduled task every day that dumps all my recordings to an xml file every morning. If my media drive goes poof then I have the xml file to tell me what was on the drive and then I can restore/re-record/etc. what I need to, if there was anything worth restoring.

I just hit this url every morning at 4am and save the result to a file on my server's OS drive (requires webui plugin be installed):

Code:
http://localhost:8080/sage/Recordings?xml=yes
I used to run a NAS with RAID10 and all that, then I shutdown the NAS, sold the hardware, reduced my hydro bill, and started creating this xml file daily. If the drive goes boom I figure at most there's a handful of recordings I may want to get back either by ensuring they re-record or by purchasing an episode or two if needed, but most of the recordings I really wouldn't care about. And when I decided that, I decided to make this procedure my (tv) media backup solution. This solution is much cheaper to operate.
great idea, thanks. when you say you "hit" that URL at 4am, is that done manually, or is it automatic somehow? And it catalogs every recording, regardless of date or if you have multiple drives (I have one drive for each of two, separate tuners)
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #6  
Old 07-11-2015, 07:41 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
If you have Phoenix (or BMT) installed to fetch fanart/metada, then you can possibly find that information in the SAGE_HOME/logs/pheonix-metadata.log

Just look for lines with "AUTO; RECORDING;" and it will give the filename and the date it was recorded.

Code:
2015-07-08 23:00:04,015 - AUTO; RECORDING; /var/media/tv/Extant-Morphoses-13625269-0.ts; Extant; 13675070
2015-07-09 23:00:03,472 - AUTO; RECORDING; /var/media/tv/Hannibal-Dolce-13633141-0.ts; Hannibal; 13679404
2015-07-10 02:00:03,297 - AUTO; RECORDING; /var/media/tv/UndertheDome-TheKinship-13634554-0.ts; Under the Dome; 13679713
Reply With Quote
  #7  
Old 07-11-2015, 08:05 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by tvmaster2 View Post
great idea, thanks. when you say you "hit" that URL at 4am, is that done manually, or is it automatic somehow? And it catalogs every recording, regardless of date or if you have multiple drives (I have one drive for each of two, separate tuners)
I downloaded wget and installed it on my server then call wget to hit the url every morning. In my Windows scheduled task, this is what the "action" of the task looks like:
Code:
Program: "C:\Program Files (x86)\GnuWin32\bin\wget.exe"
Arguments: --http-user sage --http-password frey -O C:\Users\sagetv\Desktop\sagetv_recs.xml http://localhost:8080/sage/Recordings?xml=yes
Just download wget for windows (or any such command line tool; curl is popular one, but not sure if there's a windows port of it) and then use it to "hit" the url. It will catalog everything that Sage considers a tv recording (but will not catalog imported videos, DVDs, BRs, music, etc.). You could add more tasks to catalog more media if you wanted/needed.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #8  
Old 07-11-2015, 02:48 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by stuckless View Post
If you have Phoenix (or BMT) installed to fetch fanart/metada, then you can possibly find that information in the SAGE_HOME/logs/pheonix-metadata.log

Just look for lines with "AUTO; RECORDING;" and it will give the filename and the date it was recorded.

Code:
2015-07-08 23:00:04,015 - AUTO; RECORDING; /var/media/tv/Extant-Morphoses-13625269-0.ts; Extant; 13675070
2015-07-09 23:00:03,472 - AUTO; RECORDING; /var/media/tv/Hannibal-Dolce-13633141-0.ts; Hannibal; 13679404
2015-07-10 02:00:03,297 - AUTO; RECORDING; /var/media/tv/UndertheDome-TheKinship-13634554-0.ts; Under the Dome; 13679713
great idea - but...that file got trashed when the drive died - the only thing in that file now is from two days ago, when I put a replacement drive in
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #9  
Old 07-11-2015, 03:36 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by Slugger View Post
I downloaded wget and installed it on my server then call wget to hit the url every morning. In my Windows scheduled task, this is what the "action" of the task looks like:
Code:
Program: "C:\Program Files (x86)\GnuWin32\bin\wget.exe"
Arguments: --http-user sage --http-password frey -O C:\Users\sagetv\Desktop\sagetv_recs.xml http://localhost:8080/sage/Recordings?xml=yes
Just download wget for windows (or any such command line tool; curl is popular one, but not sure if there's a windows port of it) and then use it to "hit" the url. It will catalog everything that Sage considers a tv recording (but will not catalog imported videos, DVDs, BRs, music, etc.). You could add more tasks to catalog more media if you wanted/needed.
Thanks - that's a little over my pay grade, but give me a few days and let me see if I can get that to work

hey, got it to work afterall - thanks for that.
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson

Last edited by tvmaster2; 07-11-2015 at 04:43 PM.
Reply With Quote
  #10  
Old 07-11-2015, 04:43 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I'll chime in. Everything ever recorded is stored in the wiz.bin. It should be possible to write a plugin that gets the information from the wiz.bin and prints it.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #11  
Old 07-11-2015, 05:48 PM
Denali Denali is offline
Sage Advanced User
 
Join Date: Aug 2008
Location: South Florida
Posts: 169
When I lost a drive I used the Web Interface Search for Recorded TV Files and inserted the path for the failed drive, i.e. f:\sagetv\*.* Change Results per Page to ALL and print resulting web page with all recordings listed from failed drive.
__________________
HTPC: Gigabyte GA-Z170XP-SLI, I7-6700, 16GB, Windows 10 Pro x64, Hauppauge HVR-1600, WinTV-dualHD, Colossus 2, Samsung 850 EVO 120GB, Seagate 3TB, WD 3TB, 3TB, 5TB, Java v1.8.0_231, SageTVx64 v9.2.1.826, Samsung UN60EH6003F, Dish ViP222K, ViewHD 1x2 HDMI Splitter.
Reply With Quote
  #12  
Old 07-11-2015, 05:56 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
This is what I use to see what files are on my drives. It creates a text file with what ever you specify with all the files and directories on your drive and also appends current date and time. In the example below I check my q drive. You can set it up to run anytime you want.

Qfiles.bat
Code:
if not exist c:\temp\ md c:\temp\
cd Q:\
Q:
dir Q:\ /s *.* /b>c:\temp\QDrivefiles_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt

Last edited by nyplayer; 07-11-2015 at 06:04 PM.
Reply With Quote
  #13  
Old 07-11-2015, 06:02 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by tmiranda View Post
I'll chime in. Everything ever recorded is stored in the wiz.bin. It should be possible to write a plugin that gets the information from the wiz.bin and prints it.
hmmm...that sounds like a pretty logical idea, either prints or saves as an xml, html, whatever file...
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #14  
Old 07-11-2015, 06:06 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by Denali View Post
When I lost a drive I used the Web Interface Search for Recorded TV Files and inserted the path for the failed drive, i.e. f:\sagetv\*.* Change Results per Page to ALL and print resulting web page with all recordings listed from failed drive.
whenever I try to do this I get 0 recordings.
Do you mean to search in the Filename window, as opposed to search string?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson

Last edited by tvmaster2; 07-11-2015 at 06:32 PM.
Reply With Quote
  #15  
Old 07-11-2015, 06:09 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by tvmaster2 View Post
whenever I try to do this I get 0 recordings.
any idea what I'm doing wrong?

my drive letter is H, and there is only one dir on it, 'Colossus Recordings'
Did you use UNC paths or the drive letter? when you setup sage recordings directory? If you used UNC paths you need to supply the shared name.
Reply With Quote
  #16  
Old 07-11-2015, 08:19 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by nyplayer View Post
Did you use UNC paths or the drive letter? when you setup sage recordings directory? If you used UNC paths you need to supply the shared name.
Drive letter. Got it to work using the 'filename' field.
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #17  
Old 07-20-2015, 04:38 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by tmiranda View Post
I'll chime in. Everything ever recorded is stored in the wiz.bin. It should be possible to write a plugin that gets the information from the wiz.bin and prints it.
That an airing was recorded is stored in the wiz.bin is correct, however, it does not keep the mediafile objects once the file is seen as gone, which means it would not show the file location, meaning no way to know if a given airing was on the lost drive.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #18  
Old 11-03-2015, 05:32 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is online now
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by Slugger View Post
I downloaded wget and installed it on my server then call wget to hit the url every morning. In my Windows scheduled task, this is what the "action" of the task looks like:
Code:
Program: "C:\Program Files (x86)\GnuWin32\bin\wget.exe"
Arguments: --http-user sage --http-password frey -O C:\Users\sagetv\Desktop\sagetv_recs.xml http://localhost:8080/sage/Recordings?xml=yes
Just download wget for windows (or any such command line tool; curl is popular one, but not sure if there's a windows port of it) and then use it to "hit" the url. It will catalog everything that Sage considers a tv recording (but will not catalog imported videos, DVDs, BRs, music, etc.). You could add more tasks to catalog more media if you wanted/needed.
Hi. This has been working great, however - if one drive died (I have two tuners, one satellite and one cable box, each recording to an independent drive), and I didn't get a replacement drive in before the next, scheduled update, I'd effectively lose all the recording info I was trying to save, as Sage wouldn't be able to find if for wget to catalog since the drive was dead.
Is there a way to run a scheduled task for EACH tuner/drive? That way, wouldn't the last known info for a dead drive be retained, or would the wget file be re-written blank if it couldn't find a drive?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #19  
Old 11-03-2015, 05:58 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Yes, but would require some custom scripting. Create some custom groovy scripts that dump the data you want and install that groovy script in the web ui. Then instead of hitting the current url, just hit the custom script instead. Using the current url, the file would be written blank on lost drives (since, presumably, Sage would have 0 recordings found and replace the file with 0 recordings in the output).

You would need a custom script to handle these situations as desired.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...

Last edited by Slugger; 11-03-2015 at 06:00 PM.
Reply With Quote
  #20  
Old 11-03-2015, 06:06 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Actually, Sage doesn't drop media file objects if the drive where it's supposed to be isn't found. So in the case of a failed local disk or missing/unmounted network disk, Sage should still present the media file objects when queried. Sage drops the media file object if the file is missing, but the disk hosting the file exists and is accessible. (This is all from memory, but pretty sure that's right.)

So what does that mean? It should mean you don't need change anything. The current url will dump media files on a failed/missing drive.

All of this is untested/unconfirmed, ymmv.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
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
Remembering Past Sage Recordings cacklz SageTV Software 1 11-25-2013 09:11 AM
Sage 6.5.9 - Some archived recordings suddenly disappeared from sage recordings garys SageTV Software 2 08-18-2009 09:47 PM
NewB cant get past Step 1!!! please help jt76 Hardware Support 2 08-02-2009 01:47 PM
Are PVRs a thing of the past? Halstead General Discussion 29 12-08-2008 11:52 PM
5.02 can't get past 1st second on SOME shows jhkoenig SageTV Software 4 05-27-2006 02:33 PM


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


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