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 03-29-2014, 11:14 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Changing metadata for incorrectly labelled shows

Sometimes the shows that I record, especially children's shows, have no episode info. Then I can get a bunch or recordings that have a show title, but no episode info. If I manually add the episode title to one Airing it changes the info for ALL unlabelled Airings - I guess somehow they were all linked as being the same show.

How do I fix this so that the files becomes Airings of different shows rather than all being airings of the same show? Can I do this within BMT?

Or do I have to move the files outside of Sage's video library or TV folders, add them in one at a time and change the info?

Or will that even work since the metadata is stored in the files themselves, unless I change them such as converting a .ts file to an MP4 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
  #2  
Old 03-31-2014, 12:53 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Take a look at the recording info. Most likely it is SHxxxxx instead of EPxxxxx

If it is SHxxxxx then what you change for 1, I believe it is changed for all of the same number.

What you CAN do is use the SageTV Web Interface, Search on the Recordings, then Edit Show Info (just after the Size & Internal Details line)

Edit the Show Information and put a check in the EPGID box
[Auto-Generate New EPxxx EPGID (makes it a TV file and prevents overwrites when EPG updates)]

Now of course, the EPxxxx number is different than you would find in the Guide/EPG data, so if you archived or marked watch and you have it as a Favorite, it could/would record that episode again. But it probably would anyways if it was marked as SHxxxx

You may also want to change the Airing Info and mark the Channel as None. Otherwise I have seen in the past sometimes then the changes propogate also to other Guide listing (if it had the same EPGID for that Airing) not sure totally how that all works

YMMV
Reply With Quote
  #3  
Old 04-02-2014, 08:12 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Ok, thanks. You are right the ID is SHxxxxxx

Any idea what the Sage API equivalent of "putting a check in the EPGID box to generate a new ID" is? Ideally it would be nice to be able to do this from a SJQ groovy script to easily be able to unlink a bunch of shows.

To be honest I am not too worried about Favorites and recording the episode again since it most instances these are shows with no episode data to begin with so the database of what has been recorded already is off. I can then deal with duplicates myself later on.
__________________
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 04-02-2014, 08:57 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Quote:
Originally Posted by wayner View Post
Any idea what the Sage API equivalent of "putting a check in the EPGID box to generate a new ID" is? Ideally it would be nice to be able to do this from a SJQ groovy script to easily be able to unlink a bunch of shows.
No clue. Might be best to post that in the SJQ thread and Slugger or someone else more familiar might have a ready answer for you.

Or maybe Stuckless might know and post it here
Reply With Quote
  #5  
Old 04-02-2014, 10:48 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by wayner View Post
Ok, thanks. You are right the ID is SHxxxxxx

Any idea what the Sage API equivalent of "putting a check in the EPGID box to generate a new ID" is? Ideally it would be nice to be able to do this from a SJQ groovy script to easily be able to unlink a bunch of shows.

To be honest I am not too worried about Favorites and recording the episode again since it most instances these are shows with no episode data to begin with so the database of what has been recorded already is off. I can then deal with duplicates myself later on.
I would imagine the API used is the AddShow API. But you have a lot of parameters to fill in addition to the ExternalID (EPxxxxxx number) when calling it. Specifically this.
__________________
"Keep your goals away from the trolls"

Last edited by BobPhoenix; 04-02-2014 at 10:53 AM.
Reply With Quote
  #6  
Old 04-02-2014, 11:16 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I should be able to get the parameters from the existing show - the main issue is that it has missing, or incorrect, episode specific info like Episode Name, Description, Episode Number and Season Number.

I will have to add that manually after I create the new ShowID.

Then the next issue becomes is the new Show ID linked to the old AiringID or do I also have to create a new Airing ID or change the ShowExternalID field in the Airing entry.
__________________
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 04-02-2014, 02:31 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by wayner View Post
I should be able to get the parameters from the existing show - the main issue is that it has missing, or incorrect, episode specific info like Episode Name, Description, Episode Number and Season Number.

I will have to add that manually after I create the new ShowID.

Then the next issue becomes is the new Show ID linked to the old AiringID or do I also have to create a new Airing ID or change the ShowExternalID field in the Airing entry.
Once you create a new Show with that API you need to link it to an airing and your media file. So you would need "AddAiring" from the AiringAPI to connect an airing to your new show. Then call "SetMediaFileAiring" from the MediaFileAPI to associate the media file to the new airing created with the AddAiring call.

NOTE this might be accomplished by using the metadata fields that were added to SageTV with 7.0. What I described was how you would do it with v6.6 of SageTV which was the last version of SageTV that I developed anything for.
__________________
"Keep your goals away from the trolls"
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
BMT and Metadata changing macsupergeek SageTV Customizations 2 05-22-2012 07:20 AM
Changing Movies to TV shows wayner Batch Metadata Tools 6 04-11-2011 06:03 PM
Problems when Moving Shows in SageV7 - Metadata isses? wayner SageTV Software 10 12-20-2010 09:06 PM
My Fox 720P Affiliate Not Labelled As HD Savage1701 SageTV EPG Service 0 09-17-2009 07:06 PM
SageTV shows volume is changing, but it doesn't mattress SageTV Software 1 09-11-2005 03:08 PM


All times are GMT -6. The time now is 07:16 PM.


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