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 11-18-2011, 12:20 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Which API(s) does BMT use to make Import into Recording?

Fighting a stange issue where my recordings ended up with a different AiringID after it got moved. Problem is that they are still showing as Imports (MediaFileAPI.IsTVFile = False)

How does BMT change an Import into a Recording?
Which API.method(s)?
Reply With Quote
  #2  
Old 11-18-2011, 12:35 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by graywolf View Post
Fighting a stange issue where my recordings ended up with a different AiringID after it got moved. Problem is that they are still showing as Imports (MediaFileAPI.IsTVFile = False)

How does BMT change an Import into a Recording?
Which API.method(s)?
There are no API methods to import a file as a recording.

I'm not sure I understand your problem, exactly. But the process of importing a NON RECORDING in as a recording is simply to set the ExternalID field on the Media File to start with EP. Typically BMT does this by setting the ExternalID to somthing like "EPmttvdbS##E##" (you can look at the external id field in the bmt web ui)

The process of moving a recording OUT OF the recordings area is a little more complicated. Basically you need to delete the recording and then re-add it. But, if there is embedded metadata in the recording then it might get added in again as a recording. (BMT will set the ExternalID to something like, "MVmt######")


It sounds like in your case, you have recordings that you are "moving" somewhere? If so, then sagetv will likely delete the entry for the file, and then re-create a new airing entry during the move (ie, that's why bmt has to delete the recording in order to move it out of the recordings section). While bmt can automatically add an external file as a recording (by setting the ExternalID on import) it has not automatic means of removing recordings from the recording section, that would be a manual process.
Reply With Quote
  #3  
Old 11-18-2011, 01:35 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Problem started about Monday. No changes were done to the system.

Using SJQ, files were moved from Sage server to NAS.
After recordings moved, they would show up as recordings again. all was happy in the world.

NOW, they end up showing in Imported. Even when I try to use BMT and do a manual metadata check, get what is supposed to be there....externalid of EPmt.... I then check the Sage Recording box and hit Save.

It looks like it took until I go to check Sage and it is still an Import Video, not a Recording and when I go back to it in BMT, the Sage Recording checkbox is unchecked.
Reply With Quote
  #4  
Old 11-18-2011, 02:11 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by graywolf View Post
Problem started about Monday. No changes were done to the system.

Using SJQ, files were moved from Sage server to NAS.
After recordings moved, they would show up as recordings again. all was happy in the world.

NOW, they end up showing in Imported. Even when I try to use BMT and do a manual metadata check, get what is supposed to be there....externalid of EPmt.... I then check the Sage Recording box and hit Save.

It looks like it took until I go to check Sage and it is still an Import Video, not a Recording and when I go back to it in BMT, the Sage Recording checkbox is unchecked.
When you move the files using SJQ... I have no idea what happens during that process. BMT maybe will try to do the metadata lookup... and if you see an externalid of EPmt, then bmt did touch the file (the 'mt' is the bmt signature).

If the externalid still shows as EPmt, then it's odd that it's not showing as a recording, since, that's all that is required. When you save in BMT, and you change other metadata fields, do they take? There are cases (not bmt related) where when you save changes, bmt appears to work, but when you reload the file, the changes appear to be reverted. If this is what is happening in your case, then I'm not sure what to do. When it's happened to me, I've had to delete and then add the file again.
Reply With Quote
  #5  
Old 11-18-2011, 02:57 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Quote:
Originally Posted by stuckless View Post
When you move the files using SJQ... I have no idea what happens during that process. BMT maybe will try to do the metadata lookup... and if you see an externalid of EPmt, then bmt did touch the file (the 'mt' is the bmt signature).

If the externalid still shows as EPmt, then it's odd that it's not showing as a recording, since, that's all that is required. When you save in BMT, and you change other metadata fields, do they take? There are cases (not bmt related) where when you save changes, bmt appears to work, but when you reload the file, the changes appear to be reverted. If this is what is happening in your case, then I'm not sure what to do. When it's happened to me, I've had to delete and then add the file again.
When you say delete and the add the file again.
Do you mean move it outside recording/import directories, perform a full scan, then move it back and perform another full scan?

Or what else do you mean? will try most anything right now.
Reply With Quote
  #6  
Old 11-19-2011, 02:52 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by graywolf View Post
When you say delete and the add the file again.
Do you mean move it outside recording/import directories, perform a full scan, then move it back and perform another full scan?

Or what else do you mean? will try most anything right now.
Yeah, that's what I mean.
Reply With Quote
  #7  
Old 11-19-2011, 07:23 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Thanks for all the suggestions.
None of them seemed to work.

Ended up backing up entire computer, uninstall SageTV, reinstalled SageTV, installed SJQ plugins (for my move scripts) and tested. Worked like a charm again. Added other plugins, had some other configs I had to make (hope I got them all, if not, wife will let me know )

Back in business except for those recordings that were moved during the "bad times", they still show up in videos. Will work with them after taking time away from it.

Next immediate agenda I guess is to setup & test Sluggers SJQ backup scripts.
Reply With Quote
  #8  
Old 11-19-2011, 07:55 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
PS. did a couple tests...BMT is updating the messed up ones now so I can get them back as TV Recordings.
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
Make SageTV stop recording after a number of episodes? jgscott987 SageTV Software 2 02-02-2010 12:28 PM
STV Import: Grouped Recording Screen jaminben SageMC Custom Interface 61 05-14-2009 09:30 AM
Make MPG Import into SageTV Recordings Brent SageTV Software 3 11-18-2007 09:04 AM
Import previous recording talonmike SageTV Software 0 05-23-2006 10:29 AM


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


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