SageTV Community  

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

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-31-2010, 12:17 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Renaming folders and files

I am assuming if I rename a file that it will lose its metadata since the metadata resides in wiz.bin and is keyed to the file name. Is that correct?

What about if I rename a folder above where the file resides - ie I change from:
\\server\videos\Dora\Boo!.avi

to

\\server\videos\Dora the Explorer\Boo!.avi

I want to change all of my folder names to be consistent with the Show Title to facilitate moving files automatically via the Sage Transcoder and SJQ.

Will that also hose the metadata?

Can I resolve this problem by creating .properties files before doing the change - will the metadata (including Fanart - assuming that the Fanart is saved under a TV Show called Dora the Explorer rather than as a movie linked to the file name) then be reimported from the .properties files? Obviously if I rename the files then I will have to rename the .properties files so that they remain consistent. But this is easy to do with a batch file renamer.
__________________
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 12-31-2010, 12:34 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Without renaming the file itself, sage SHOULD recognize it ant re-associate the wiz.bin metadata with it. That said, a .properties file will also work well or this. Also, if a program is recorded in v7, it will contain the metadata in the file itself, and sage will read that embedded data back in on re-import.
__________________
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
  #3  
Old 12-31-2010, 01:16 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
These files are not necessarily from Sage7. Some are from Sage6, some are from MCE, others from Tivo. The files do not have the show ID in the title any more.

So you are saying that if I move Boo!.avi from one folder to another that Sage will still keep the metadata and Fanart?
__________________
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 12-31-2010, 03:55 PM
OneOfMany OneOfMany is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: Winnipeg
Posts: 374
I am not 100% sure if this is how Sage7 and BMT works, but it what I believe based on my fiddling with metadata and fanart.

1 - On a recorded TV show, Sage gets basic metadata and a screenshot of the show. I believe the metadata comes from the Zap2It guide information. The screenshot appears from a frame of the show.

2 - If BMT is installed, and set to automatically scrape, it will search the appropriate website, eg. TVDB, and fill in any missing metadata (and possibly overwrite some like descriptions). It then updates the Sage metadata with the revisions.

BMT then checks whether a fanart directory for that particular show exists, and if not, will create it, and appropriate sub-directories. It will then download available fanart images to this directory if they are not already there.

3 - When various screens in Sage display the recorded TV show, if fanart is available (and the screen supports it), it will look in the fanart directory (in this case \\fanart\TV\showname) and if fanart exists, use what is there - otherwise it will use the a .jpg that exists in the same directory as the recording (with the same filename), then finally the screenshot as a last resort.

I constantly move recordings for my daughter from the original recording directory to another computer for archiving. I simply copy the original .mpg, the .jpg, and the mpg.properties files to an imported directory path. All show up properly. In my case, I am moving from a no folder situation to a folder (eg. \\TVShows\Hannah Montana) so I would think there should be no issues at all.

Anytime I have had a problem with fanart (which is rarely), the BMT WebUI will display the path it believes the fanart should be in. Simply changing the actual folder name in my fanart directory has resolved this.

Grant

I also have been adding my collection of TV episodes that have no recording information. As long as the displayed fanart path in the BMT WebUI matches one in the fanart directory, I simply add or remove fanart I download to customize what is displayed.

Last edited by OneOfMany; 12-31-2010 at 03:57 PM. Reason: addition
Reply With Quote
  #5  
Old 01-01-2011, 07:03 PM
adone36 adone36 is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 142
just use a file renamer and add the prefix

"Dora the Explorer -- " to all file names and BMT will get all the metadata and fanart.
Reply With Quote
  #6  
Old 01-01-2011, 08:13 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by adone36 View Post
just use a file renamer and add the prefix

"Dora the Explorer -- " to all file names and BMT will get all the metadata and fanart.
That's the first part of my plan, I want to then remove Dora the Explorer -- to rename the files back to just the original filename and retain the metadata. In the folder view, which is what we use, the files are listed by filenames so it makes the filenames rather long and it is also redundant to have files in \videos\Kids' Shows\Dora\Dora the Explorer -- Boo.

I also want to change the folder names to use the exact show name to facilitate automatic archiving into folders.
__________________
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 01-01-2011, 08:53 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Yet another reason to put episodic content (tv shows) in the recording library - use the Malore menus instead of folder view.. ;-)
__________________
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
  #8  
Old 01-02-2011, 11:34 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Fuzzy View Post
Yet another reason to put episodic content (tv shows) in the recording library - use the Malore menus instead of folder view.. ;-)
I actually use SageMC which sorts by filename but displays the episode name in the folder view. The problem is if you just try to use these files from Windows Explorer - the filenames can becamse too long and it is just a waste of space to have the show name in the folder structure and in the filename.
__________________
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
max number of files/folders? walter scott SageTV HD Theater - Media Player 7 09-09-2009 12:55 PM
Video files in the same folders as VIDEO_TS not visible bastafidli SageTV Software 5 12-15-2007 02:14 AM
Renaming TS files back to a .TS extention JasonJoel SageTV Software 5 05-03-2006 03:48 PM
What is the best way to move files to other folders. trevorst SageTV Software 9 08-27-2004 01:32 PM
Renaming Files Cabalsan SageTV Customizations 2 05-16-2004 10:25 PM


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


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