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 11-01-2014, 12:56 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
How does Sage handle it when you rename a video file?

I am cleaning up some of my imported movie file naming as I am starting to use Plex occasionally. When I rename a file and do a media scan it looks like Sage adds the file with the new name as a movie but it still thinks that the old file exists. How do you get Sage to realize that the file is no longer there without deleting it in the Sage UI? I believe that restarting Sage will do this, but are there other options as well?
__________________
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
  #2  
Old 11-01-2014, 12:58 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Do a refresh.(scan Imported Media)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #3  
Old 11-01-2014, 01:25 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
If by a refresh you mean a Scan for new imported media then it doesn't work as it still shows the file by the old filename as well as the new.

Here is an example - I had a file named "TheBluesBrothers-309270-0.ts" in my Movie library. I renamed it to "The Blue Brothers.ts". When I browse my movies I see two listings, one for each of these file names. If I try to play the first file Sage says it can't find it. I can then delete it but I did this for dozens of files and it is a pain to be manually deleting - there must be an easy way of getting Sage to do this, ideally without restarting the service.
__________________
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
  #4  
Old 11-01-2014, 03:50 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Stop Sage. Set advanced file recovery to true in Sage's properties file. Start Sage. The full path where the old file was needs to still be accessible for Sage to see that it's no longer available; only then will it remove the deleted entry from its database.
__________________
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
  #5  
Old 11-01-2014, 05:13 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by wayner View Post
If by a refresh you mean a Scan for new imported media then it doesn't work as it still shows the file by the old filename as well as the new.

Here is an example - I had a file named "TheBluesBrothers-309270-0.ts" in my Movie library. I renamed it to "The Blue Brothers.ts". When I browse my movies I see two listings, one for each of these file names. If I try to play the first file Sage says it can't find it. I can then delete it but I did this for dozens of files and it is a pain to be manually deleting - there must be an easy way of getting Sage to do this, ideally without restarting the service.
I see why it will not refresh you are removing the fileid(309270) that ties the file to the epg entries. I always keep the ID when I rename the files.

Example.
Courage Under Fire (1996) -15767270-0.mp4
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #6  
Old 11-01-2014, 05:15 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I have tried to keep it in the past but it appears to sometimes confuse scanners like the one in Plex. I don't really care that Sage maintains the data of the original recording - it can just treat it like an imported file.
__________________
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
  #7  
Old 11-01-2014, 05:17 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by wayner View Post
I have tried to keep it in the past but it appears to sometimes confuse scanners like the one in Plex. I don't really care that Sage maintains the data of the original recording - it can just treat it like an imported file.
That is the way I always do it and I have yet to confuse Plex. I use the built in plex scanner and have no problem. You will always have that problem of not updating as long as you remove the ID. You would have to use SJQ or something like that to delete the old entry from the Sage DB.

another example.
Falling Skies - S04E06 - Door Number Three -14510032-0.mp4
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #8  
Old 11-01-2014, 06:51 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I guess I should have kept the ID as a name suffix - that probably wouldn't have confused Plex. But it didn't like the lack of spaces.

The other thing I am going to have to do is rename files to include the SXXEXX info as my older Sage files don't have this as this didn't become a Sage standard until V7 and I think even then you had to turn it on. So lots of my files don't have this and don't import into Plex.

I don't like it when you have to shutdown the service as there is almost always someone watching Sage in my house until the kids are in bed so I get a short maintenance window. And/or I have some tuners recording - right now two extenders are being watched and three shows being recorded.
__________________
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
  #9  
Old 11-01-2014, 08:54 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by wayner View Post
I guess I should have kept the ID as a name suffix - that probably wouldn't have confused Plex. But it didn't like the lack of spaces.

The other thing I am going to have to do is rename files to include the SXXEXX info as my older Sage files don't have this as this didn't become a Sage standard until V7 and I think even then you had to turn it on. So lots of my files don't have this and don't import into Plex.

I don't like it when you have to shutdown the service as there is almost always someone watching Sage in my house until the kids are in bed so I get a short maintenance window. And/or I have some tuners recording - right now two extenders are being watched and three shows being recorded.
The reason why I am able to rename them properly is because I worked with the guy from MCEBUDDY and worked with him on renaming Sage files using the xml that you can create for each recording. Notice the fileid and mediaid.

Here is a snippet from MCEBUDDY ... you would need the donator version.

Code:
Title: Walker, Texas Ranger
SubTitle: Whitewater (2)
Description: Alex and Walker's whitewater rafting trip becomes a working vacation when one of the rafters is murdered.
Network: WGNAMER
Parental Rating: 
Media Credits: Chuck Norris;Clarence Gilyard;Sheree J. Wilson;Noble Willingham;Bruce McKinnon;Max Gail;James Handy;Jonah Blechman;Carrie Hamilton;Anastacia Belmonte;Jamie Horton;Dan Shadwell;Marshall Colt;Dennis Letts;Rob Frier;Michael Preece;Louciano Comici;Len Katzman
Genres: Crime drama
Season: 4
Episode: 10
Banner: C:\Program Files\MCEBuddy2x\cache\Walker, Texas Ranger.jpg
Banner URL: http://www.thetvdb.com/banners/posters/73756-2.jpg
IMDB Id: tt0106168
MovieDB Id: 3772
TVDB Id: 73756
Is Show Movie: False
Is Show Sports: False
OriginalBroadcastDateTime: 1995-12-02T16:00:00
RecordedDateTime: 2014-10-21T07:00:00
SeriesPremiereDate: 1993-03-31T16:00:00
CopyProtected: False
SageTV FileID: 15919926
SageTV MediaFileID: 16041802
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #10  
Old 11-01-2014, 08:57 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
That was a good idea - I have some code that Slugger helped me with that runs within SJQ that can rename files adding the S and E info - now I just have to find that code.
__________________
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
Name/rename Video Source? BKeadle SageMC Custom Interface 6 06-13-2010 01:37 PM
mpg video file Sage thinks is an audio file kmp14 SageTV Software 1 03-14-2010 08:01 PM
How do I handle bandwidth issues with HD online video? fventura SageTV Software 4 12-17-2009 06:23 PM
How to rename s-video inputs? scat SageTV Software 8 06-15-2008 03:10 AM
Any way to set Sage to include the overlay CC into the mpg video file? TechBill SageTV Software 5 08-18-2007 01:14 AM


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


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