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
  #821  
Old 05-04-2009, 07:03 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
@matt91, just a fyi... if there is an existing .properties for a given media item, then the scan will not happen and the plugin will simply load and pass those properties to sage. That was what happened in our first log post.

As for the timing... when bmt is run as a plugin you are at the merce of the sagetv media scanner. bmt is simply invoked once per media file that sage determines is a new file, or an updated file.
Reply With Quote
  #822  
Old 05-04-2009, 07:06 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Just a note about the Move category stuff.... I'm not sure that I'll do anything differently at the moment. I Currently use the IsTV, IsDVD, etc apis and unless there is a simple surefire way to do someting like IsMovie, then I really don't want to introduce lookup tables, category scanning, etc.
Reply With Quote
  #823  
Old 05-04-2009, 07:32 PM
Comitizer Comitizer is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Calgary, Alberta, Canada
Posts: 174
Cateogries?

Do you mean that you won't be adding category mapping? Is there going to be an easy way to get the categories to line up?

Or do you mean that you won't be supporting looking up movies in the TV interface and TV in the videos interface?
Reply With Quote
  #824  
Old 05-05-2009, 04:35 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
No, i'll add in the category mapping at some point... what i mean is that I don't want to scrape a bunch of category names to determine if a recording is a movie or not.
Reply With Quote
  #825  
Old 05-05-2009, 06:09 PM
iolaus iolaus is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 83
Quick Question:

Does the Batch Metadata Importer REQUIRE the latest SageTV beta? I ask because I tried installing with the SageTV 6.5.9.204 and SageMC 6.3.9 and under Settings->SageMC->Main->Global UI Options->Display->Fan Art Backgrounds I get an option box without any text (ie Enable/Disable are missing).

Thanks.
Reply With Quote
  #826  
Old 05-06-2009, 04:35 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by iolaus View Post
Quick Question:

Does the Batch Metadata Importer REQUIRE the latest SageTV beta? I ask because I tried installing with the SageTV 6.5.9.204 and SageMC 6.3.9 and under Settings->SageMC->Main->Global UI Options->Display->Fan Art Backgrounds I get an option box without any text (ie Enable/Disable are missing).

Thanks.
From the release notes thread:

Quote:
Release: 2.3

--------------------------------------------------------------------------------

Download

Requirements: SageTV 6.5.14 beta
Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #827  
Old 05-06-2009, 05:40 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by iolaus View Post
Quick Question:

Does the Batch Metadata Importer REQUIRE the latest SageTV beta? I ask because I tried installing with the SageTV 6.5.9.204 and SageMC 6.3.9 and under Settings->SageMC->Main->Global UI Options->Display->Fan Art Backgrounds I get an option box without any text (ie Enable/Disable are missing).

Thanks.
To take full advantage of the fanart, then you'll also want to be running the latest SageMC beta as well.

BTW, SageMC->Main->Global UI is not a BMT menu, it's part of the core SageMC. If yo install the BMT STV plugin in SageMC, then you will get a new menu under SageMC->Extras, and you'll be a new Metadata/Fanart option in the video options for a media file / epg item.
Reply With Quote
  #828  
Old 05-06-2009, 06:53 AM
MacDaddy MacDaddy is offline
Sage Aficionado
 
Join Date: Nov 2004
Location: Houston
Posts: 255
Sean - great utility!!! I have been using the early version and I'm truly amazed at how far both the CLI and plugin variations have evolved. Significantly easier to use and the experience on the Sage side is greatly improved.

I think I may have found a glitch. Not sure if it is in the BMT plugin code or may be in SageMC screen handling. Thought I would post here first for confirmation before trying on the SageMC thread.

I'm using Sage 6.5.14.210, SageMC 6.3.9, Phoenix 1.24 currently. In My Menu> Settings> SageMC> Extras> BMT Options, when I select the Fanart Central Folder option the screen loses all of the style from prior screens. There is no background to the window, the text appears in default and is not organized on the screen.
Attached Images
File Type: jpg BMT CFF.JPG (76.6 KB, 215 views)
__________________
Frankentivo: iStar D-380HB, SuperMicro X107-F-O, Xeon 1270v3 CPU, Kingston 8 GB 1600MHz DDRR3L x 4
Tuners: 4 x HDHR OTA, 4 x HDHR3 OTA, 3 x HDHR Prime
UnRAID Pro: 1 x Samsung 500GB Cache, 5 x WD Red 4TB (1 Parity, 4 Data)
Extenders: 2 x HD-200, 1 x HD-300 on Atlona PRO3HD66m
Sage: V9.0.14.567 with OpenDCT on unRaid docker, Gemstone, BMT, Web UI, PlayOn, TiSage
Reply With Quote
  #829  
Old 05-06-2009, 06:57 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by MacDaddy View Post
I'm using Sage 6.5.14.210, SageMC 6.3.9, Phoenix 1.24 currently. In My Menu> Settings> SageMC> Extras> BMT Options, when I select the Fanart Central Folder option the screen loses all of the style from prior screens. There is no background to the window, the text appears in default and is not organized on the screen.
I saw that too, but haven't checked since version 2.1. You can also specify the fanart folder in SageMC -> Global UI -> Display -> Fanart Options
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #830  
Old 05-06-2009, 07:20 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by MacDaddy View Post
Sean - great utility!!! I have been using the early version and I'm truly amazed at how far both the CLI and plugin variations have evolved. Significantly easier to use and the experience on the Sage side is greatly improved.

I think I may have found a glitch. Not sure if it is in the BMT plugin code or may be in SageMC screen handling. Thought I would post here first for confirmation before trying on the SageMC thread.

I'm using Sage 6.5.14.210, SageMC 6.3.9, Phoenix 1.24 currently. In My Menu> Settings> SageMC> Extras> BMT Options, when I select the Fanart Central Folder option the screen loses all of the style from prior screens. There is no background to the window, the text appears in default and is not organized on the screen.
I actually noticed this for the first time as well, just the other day. In the next build, I'll be removing the fanart options from extras menu, since SageMC has then organized it's it's fanart menu, so there's no need to have in there twice.
Reply With Quote
  #831  
Old 05-06-2009, 02:14 PM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by stuckless View Post
Just a note about the Move category stuff.... I'm not sure that I'll do anything differently at the moment. I Currently use the IsTV, IsDVD, etc apis and unless there is a simple surefire way to do someting like IsMovie, then I really don't want to introduce lookup tables, category scanning, etc.
Boy I hope you change your mind about that one. It's really pretty easy to check the category and see if it is "Movie" or =the Sage Property for Alternate Movie Category. This is the way I currently do it in the Fan Art import for default STV.

For me 95% of my movies are recorded from HBO, Cinemax, etc. I don't rip too many DVDs, so this would be a real problem. If it looks in the TV folder for a movie that was recorded off of TV, then you can't have different fan art for movies and tv shows with the same title.

I was planning on implementing the Phoenix APIs, but I may have to hold off a little while longer...
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #832  
Old 05-06-2009, 07:03 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Tiki View Post
It's really pretty easy to check the category and see if it is "Movie" or =the Sage Property for Alternate Movie Category.
I don't know enough about how categories / alternate categories to implement this. So until I do some research, or someone like yourself posts the exact logic, then it's going to have to wait. For example, statements like, "check the category" and "Sage Property for Alternate movie category" are fine, but they do nothing to actually help me. If you want to post the exact logic, ie, the exact property names, values, function calls, etc, then i'll look at adding it in... If not, then eventually, I'll get some time to research it and put it in later.

Also keep in mind that adding it bmt is tricky because when the application is running in a command line mode, then it won't have access to the Sage Category, etc.
Reply With Quote
  #833  
Old 05-06-2009, 07:14 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Quote:
Originally Posted by MacDaddy View Post
Sean - great utility!!! I have been using the early version and I'm truly amazed at how far both the CLI and plugin variations have evolved. Significantly easier to use and the experience on the Sage side is greatly improved.

I think I may have found a glitch. Not sure if it is in the BMT plugin code or may be in SageMC screen handling. Thought I would post here first for confirmation before trying on the SageMC thread.

I'm using Sage 6.5.14.210, SageMC 6.3.9, Phoenix 1.24 currently. In My Menu> Settings> SageMC> Extras> BMT Options, when I select the Fanart Central Folder option the screen loses all of the style from prior screens. There is no background to the window, the text appears in default and is not organized on the screen.
That's the same thing I've seen for the last couple of versions.
Reply With Quote
  #834  
Old 05-07-2009, 01:57 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by stuckless View Post
I don't know enough about how categories / alternate categories to implement this. So until I do some research, or someone like yourself posts the exact logic, then it's going to have to wait. For example, statements like, "check the category" and "Sage Property for Alternate movie category" are fine, but they do nothing to actually help me. If you want to post the exact logic, ie, the exact property names, values, function calls, etc, then i'll look at adding it in... If not, then eventually, I'll get some time to research it and put it in later.

Also keep in mind that adding it bmt is tricky because when the application is running in a command line mode, then it won't have access to the Sage Category, etc.

OK here is a screenshot of the studio code...
The function call is just GetShowCategory(Airing). This returns a string, which I compare to "Movie", if they match it's a movie, otherwise it isn't.

There is also a Sage Property that shows up in the Customize menu of the default Sage TV, called Alternate Movie Category Name. It defaults to "Film". In the Sage.properties file it looks like:
alternate_movie_category=Film

I do not currently check this property, but I believe its purpose is to allow for program data that uses something other than "Movie" for the category name. I had planned to implement this in a future release just in case anyone needed it.
Attached Images
File Type: jpg GetShowCategory.jpg (71.2 KB, 222 views)
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #835  
Old 05-07-2009, 03:43 AM
Nick_W Nick_W is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 215
Quote:
Originally Posted by Tiki View Post
I do not currently check this property, but I believe its purpose is to allow for program data that uses something other than "Movie" for the category name. I had planned to implement this in a future release just in case anyone needed it.
Hi,

I don't use the default STV, but just wanted to let you know that lots of Brits use that, as we call them films!

Regards,

Nick.
Reply With Quote
  #836  
Old 05-07-2009, 05:27 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Thanks Tiki, I've added an enhancement req with the information your provided.
Reply With Quote
  #837  
Old 05-07-2009, 07:59 AM
Nick_W Nick_W is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 215
Hi Sean,

This is working great for me. I have one small issue and that's to do with specials (from TV series).

The Office (UK) is one example. Naming of the actual season episodes is fine, but the specials didn't have an episode number. You can see details here:

http://thetvdb.com/?tab=seasonall&id=78107&lid=7

Do you have any idea how I might name them?

TIA,

Nick.
Reply With Quote
  #838  
Old 05-07-2009, 09:01 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Nick, I can't confirm this, but might work....
Code:
TheOffice-ChristmasSpecialPart1-000000-0.avi
The reason this MAY work is that the naming format will match a sage recording, which is by default a tv show, and when the sage recording format is used, then tv episode lookups are done using the title, ie, ChristmasSpecialPart1 and not the Season and Episode info.

To thest this, you can try to run a quick "offline" test such as...
Code:
java -jar MetadataTool.jar --offline --tv --metadataOnly c:\temp\TheOffice-ChristmasSpecialPart1-000000-0.avi
This will create 2 files in your C:\Temp area, TheOffice-ChristmasSpecialPart1-000000-0.avi and TheOffice-ChristmasSpecialPart1-000000-0.avi.properties. Then look in the properties to see if it found the correct data. If so, then it works... if not, then i'm not sure there's any way to fix it, unless i add a specific case.
Reply With Quote
  #839  
Old 05-07-2009, 08:33 PM
reggie14 reggie14 is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Maryland
Posts: 2,760
I'm a little confused by the installation instructions. The first step is to install the beta of SageTV, and it says to do that with these steps:

Quote:
  • Stop service and close SageTV
  • Backup Needed Files (sage.properties, wiz.bin, sagemc_menu.xml)
  • Install
  • Copy wiz.bin & sagemc_menu.xml back
  • ONLY add back in custom properties from backup file to sage.properties
I've never done it this way. In particular, I've never touched the sage.properties file after upgrading SageTV. I've always kept a backup of the whole SageTV directory, just in case, but I've never actually had to do anything with it. And, it doesn't seem like the upgrade should touch the wiz.bin or the sagemc_menu.xml files. Are these just uber-conservative steps, or are they actually necessary?

Also, this will be the first time that I'm upgrading SageMC after I've done quite a bit of tweaking to the configuration settings. Does upgrading SageMC basically undo all that, putting me back in the default SageMC configuration, or is there a way to save and restore some/all of that stuff?
Reply With Quote
  #840  
Old 05-07-2009, 10:03 PM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
The instructions are written for completeness. Different folks have setup/customized SageTV differently.

Upgrade does not touch the sage.properties, wiz.bin, sagemc_menu.xml files (as far as I know).

However, if you somehow lose those files you'd probably be unhappy - so backing up is the right step to take. Backing up the whole SageTV directory is just fine (and maybe easier for you in practice - though unnecessary)

If you dont care about your recordings (LOL) then ignore the wiz.bin

If you have not customized the sagemc menus then you can ignore that one.

If you have not customized properties (done by directly editing the sage.properties) file then you can ignore that step.

There is no easy way to restore your custom settings that I know of ... anyone else have a trick for this?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 3 (0 members and 3 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
STV Import: Read & Write Metadata files for Default STV 5/6 (v2.2.9 18/Feb./2010) JREkiwi SageTV Customizations 251 10-09-2019 11:11 AM
Automated VideoRedo (DOS batch files) grauchy SageTV Customizations 3 09-08-2011 10:01 PM
Simple utility to control multiple USB or Serial HD DirecTV STBs jchiso Hardware Support 15 02-19-2009 06:27 PM
DVB-S setup with Digiguide EPG Grabber & XMLTV importer MCE-Refugee SageTV United Kingdom 27 09-08-2008 09:10 AM
Keeping custom metadata for imports via AddShow() Opus4 SageTV Studio 9 02-20-2008 06:35 PM


All times are GMT -6. The time now is 09:58 AM.


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