SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-14-2008, 04:44 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,596
Post Keeping custom metadata for imports via AddShow()

As of v6.3.9, re-imported files with an "MF" prefix for the external ID can have their metadata overwritten via the re-import process. Imports with other external ID prefixes will preserve their metadata.

I'm not sure how the metadata customizations currently work, so some updates may or may not be needed, depending on how they are currently coded...

For any customization that sets the metadata for an import: be sure to use a prefix other than "MF" for the external ID of the metadata being customized when AddShow() is called.

And, when using AddShow() to update the info for an existing import, be sure to create a new external ID instead of reusing the existing "MF" prefixed ID. I believe you would then have to use SetMediaFileShow() to connect the new show data to the existing media file.

(This does not apply to recordings, since they are not imports and don't use "MF" as part of the ID anyway.)

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #2  
Old 02-14-2008, 09:31 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,186
Right now, AFAIK, they all just retain the current, Sage-assigned External ID, which presumably starts with MF

BTW, I didn't know how to link a media file to a show until now
Reply With Quote
  #3  
Old 02-14-2008, 09:58 PM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,055
But if the metadata changes are saved in a .properties file that data will be reimported?

John
Reply With Quote
  #4  
Old 02-14-2008, 10:17 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,596
Quote:
Originally Posted by stanger89 View Post
Right now, AFAIK, they all just retain the current, Sage-assigned External ID, which presumably starts with MF
Yeah, it sounds like some customizations will need to be changed to use a different prefix -- this was the way to distinguish between media whose metadata is handled by the core vs. media whose metadata is handled by a customization.

Saved online videos are handled this way, btw, because their metadata was downloaded with the feed and can't easily be reproduced if the file were to be freshly imported.

Quote:
Originally Posted by JREkiwi View Post
But if the metadata changes are saved in a .properties file that data will be reimported?
Yes -- that would be metadata that is maintained by the core, since it is the one reading in the data & assigning it to the media file.

The .my files should use a non-MF prefix, since the core won't reassign that data for reimports/reindexing... maybe "MY"?

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #5  
Old 02-15-2008, 01:43 AM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,055
Quote:
Originally Posted by Opus4 View Post
The .my files should use a non-MF prefix, since the core won't reassign that data for reimports/reindexing... maybe "MY"?
The .my files generally aren't storing data in wiz.bin. They are just read and displayed. My import includes importing the .my file metadata into wiz.bin, but it also creates a .properties file with that metadata in it.

John
Reply With Quote
  #6  
Old 02-15-2008, 06:34 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,186
Here's a question, how would Sage, on re-import know to link a media file with a "customized" Show?
Reply With Quote
  #7  
Old 02-15-2008, 10:47 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,596
Quote:
Originally Posted by stanger89 View Post
how would Sage, on re-import know to link a media file with a "customized" Show?
If the external ID didn't start with "MF", then the file essentially wouldn't be reimported, so its metadata wouldn't get reset.

If you wanted to move the file to a new location, you would have to use the new advanced_video_file_recovery property so that SageTV could match the filename to its old db entry. Otherwise, as a 'new' file in a new location, it wouldn't get reunited with its custom metadata.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #8  
Old 02-20-2008, 04:51 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,186
Andy,

Know if Sage will clear out custom-added Shows without mediafiles on it's own? My parser is really not very fast and really doesn't like getting used more than once I'm pondering just sticking the whole DVD Profiler database in the Sage database, and then later you can just SearchByText or something and just do SetMediaFileShow....
Reply With Quote
  #9  
Old 02-20-2008, 06:27 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,596
Metadata for imported media which has no file associated with it will be removed from the database during cleanup.

You might be able to use the wizard/disable_maintenance=true property setting to temporarily keep the info in the database, but you do not want to run with that setting on all the time because the database would just continue to grow, since it would no longer get rid of old EPG listings & other things.

Recorded TV show info can be kept, however.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #10  
Old 02-20-2008, 06:35 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,186
Quote:
Originally Posted by Opus4 View Post
Metadata for imported media which has no file associated with it will be removed from the database during cleanup.
That's what I thought...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
STV Import: Read & Write Metadata files for Default STV 5/6 (v2.2.9 18/Feb./2010) JREkiwi SageTV Customizations 249 10-26-2010 12:15 AM
Stumped with RolesListForPeopleList in AddShow() dflachbart SageTV Studio 5 08-09-2007 05:31 AM
Using Neil's Custom Menus with SageMC? lordmeatball SageMC Custom Interface 6 11-06-2006 02:50 PM
Is there a way to get custom program listings? egaertner SageTV EPG Service 4 06-08-2006 06:40 AM
Music metadata & page file problems bobbydiamondz SageTV Software 0 03-06-2006 08:35 PM


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


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