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 06-13-2011, 01:10 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
File paths within Title

If I remember correctly this is not a BMT issue but on at least some of my imports which have no metadata have the Filepath in the Title.

For example I have a recording entitled RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD.mp4.

When I go into BMT under Movie Title it lists RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD. But when I browse this folder in Sage it gives the title as Sports/Rugby/RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD.

When I go into the Edit Raw Metadata screen in BMT I see that the "Title" field is Sports/Rugby/RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD and the episode field is "RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD".

Is there any easy way to fix this? Will it help if I change the MediaType from Movie to TV?
__________________
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 06-13-2011, 02:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wayner View Post
If I remember correctly this is not a BMT issue but on at least some of my imports which have no metadata have the Filepath in the Title.

For example I have a recording entitled RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD.mp4.

When I go into BMT under Movie Title it lists RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD. But when I browse this folder in Sage it gives the title as Sports/Rugby/RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD.

When I go into the Edit Raw Metadata screen in BMT I see that the "Title" field is Sports/Rugby/RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD and the episode field is "RU.2011.Super.Rugby.R17.Chiefs.v.Hurricanes.SD".

Is there any easy way to fix this? Will it help if I change the MediaType from Movie to TV?
Since BMT didn't scan the file, it's listing the Title as SageTV created when the file was imported, which is the RelativePath of the video plus the filename.

In BMT you can use the batch operation to remove relative paths from the title and that might fix it... but there is no automated way.
Reply With Quote
  #3  
Old 06-13-2011, 04:03 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
So the only way is to manually edit the raw metadata field for each file and omit the path from the name?

No way to rename all files to prefix them with "Rugby -- " and then somehow map that to a valid show ID or even "faked" show metadata? Speaking of that - how hard would it be to set up my own "tvdb" or similar service to have my own metadata server?

That way I could create my own TV show called "Rugby" and create episdoes, etc. that BMT should be happy with, shouldn't it? I would just add this stuff to tvdb but they don't allow sports and would likely delete it ASAP.
__________________
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 06-13-2011, 04:42 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wayner View Post
So the only way is to manually edit the raw metadata field for each file and omit the path from the name?

No way to rename all files to prefix them with "Rugby -- " and then somehow map that to a valid show ID or even "faked" show metadata? Speaking of that - how hard would it be to set up my own "tvdb" or similar service to have my own metadata server?

That way I could create my own TV show called "Rugby" and create episdoes, etc. that BMT should be happy with, shouldn't it? I would just add this stuff to tvdb but they don't allow sports and would likely delete it ASAP.
BMT supports pluggable metadata providers, so with some programming, you could do this, and simply register your provider in the list.

If you want to do this without any programming, you could probably use the dvdprofiler provider (or mymovies provider) and then create a DvdProfiler xml file with the entries that you want. You'd then enable the dvd profiler provider as one of your providers, and you'd configure where it would find the xml file. The dvdprofiler provider monitors the xml for changes, so if you add new entries to the xml, then it will automatically update itself.

And even simpler... If you create a .properties for your item, then sagetv will simply read that and use it.
Reply With Quote
  #5  
Old 06-13-2011, 04:57 PM
Fonceur's Avatar
Fonceur Fonceur is offline
Sage Icon
 
Join Date: Jan 2008
Location: DDO, QC
Posts: 1,915
The SageTV 7.1.8 beta is supposed to get rid of that folder in title non-sense, though I'm not sure if it might have been saved in other metadata already...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API
MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC
TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device
TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2
TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad
Reply With Quote
  #6  
Old 06-13-2011, 07:34 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I haven't upgraded yet as I like to wait a week or so to see if there are major issues. Any reason not to upgrade?

Then I can just get rid of the files and then read them and hopefully it is better.
__________________
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 06-14-2011, 10:04 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by stuckless View Post
And even simpler... If you create a .properties for your item, then sagetv will simply read that and use it.
Is there any easy way to create a couple of dozen .properties files with the correct info?

On second thought, since the problem is in the Title field and the Episode is good I think I can just do a batch update of the Title field to "Rugby" and I should be good - while also changing the MediaType to TV from Movies.
__________________
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
  #8  
Old 06-14-2011, 10:23 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wayner View Post
Is there any easy way to create a couple of dozen .properties files with the correct info?

On second thought, since the problem is in the Title field and the Episode is good I think I can just do a batch update of the Title field to "Rugby" and I should be good - while also changing the MediaType to TV from Movies.
From the web ui, navigate to a folder, and then use the batch operation "Export .properties" that will create a .properties for all items in the folder (and its child folders).
Reply With Quote
  #9  
Old 06-14-2011, 10:28 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
But then I still have to go in and manually edit each file - is that any easier than manually editing in BMT? I did the Batch Update and that has worked as the Title is now Rugby and the Episode is the FileName without path.
__________________
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
  #10  
Old 06-14-2011, 10:46 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wayner View Post
But then I still have to go in and manually edit each file - is that any easier than manually editing in BMT? I did the Batch Update and that has worked as the Title is now Rugby and the Episode is the FileName without path.
Sorry, I misunderstood. I thought you just wanted to create a bunch of .properties with correct metadata so that you can see what it would look like.

So, to better answer your question... I don't think there is way in bmt to shoehorn this... i think a provider would have to be created to handle sports.
Reply With Quote
  #11  
Old 06-14-2011, 11:09 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
There was a "Team" concept added to Sage in 7.1? I think this is somehow stored in the Actor fields or something like that. The sports logo website that I mentioned above has logos for all teams in North American Pros sports, and maybe all college as well.

They way that I see it all that we need are two things:
  1. Custom TV Show screens in Diamond, Phoenix, Ortus, etc that would be modified to show relevant info for a team sporting event.
  2. A data structure for metadata and Fanart (ie. if Posters, Banners and Backgrounds don't all make sense for sports then what should change)
  3. Retrieval of relevant Fanart, such as logos, from existing websites.

I will try mocking up a "TVShow" screen that I think makes sense by altering an existing screen.
__________________
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
  #12  
Old 06-14-2011, 11:25 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
Quote:
Originally Posted by stuckless View Post
BMT supports pluggable metadata providers, so with some programming, you could do this, and simply register your provider in the list.

If you want to do this without any programming, you could probably use the dvdprofiler provider (or mymovies provider) and then create a DvdProfiler xml file with the entries that you want. You'd then enable the dvd profiler provider as one of your providers, and you'd configure where it would find the xml file. The dvdprofiler provider monitors the xml for changes, so if you add new entries to the xml, then it will automatically update itself.

And even simpler... If you create a .properties for your item, then sagetv will simply read that and use it.
I went ahead and tried this and failed. I think I configured BMT to allow for the collection.xml file by adding it to the list of metadata sources and then in the dvdprofiler tab put the path to the xml and image source. So my providers in BMT are: imdb,tmdb,dvdprofiler.

I did a test where I outputted 1 movie from dvdprofiler: Avatar. Then I opened the collection.xml and renamed the title to: 'Blavatar' and left all the other fields the same. I renamed a home video Blavatar and dropped it into my import path and re-scanned. Blavatar ended up in my missing metadata view with no metadata attached to it, I tried a manual scan selecting DVDprofiler as the source and it failed too...

Any ideas, I was just testing and playing with this example to see if I can use it for some of my erroneous content.
Reply With Quote
  #13  
Old 06-14-2011, 01:30 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wrems View Post
I went ahead and tried this and failed. I think I configured BMT to allow for the collection.xml file by adding it to the list of metadata sources and then in the dvdprofiler tab put the path to the xml and image source. So my providers in BMT are: imdb,tmdb,dvdprofiler.

I did a test where I outputted 1 movie from dvdprofiler: Avatar. Then I opened the collection.xml and renamed the title to: 'Blavatar' and left all the other fields the same. I renamed a home video Blavatar and dropped it into my import path and re-scanned. Blavatar ended up in my missing metadata view with no metadata attached to it, I tried a manual scan selecting DVDprofiler as the source and it failed too...

Any ideas, I was just testing and playing with this example to see if I can use it for some of my erroneous content.
I'd have to see the logs to know for sure... but I think the title matching may be off slightly... ie, maybe bmt is asking the collection.xml to find Blavatar.avi and not just Blavatar... the logs would tell for sure, since it shows what it is trying to find (and the fact that it doesn't find it).

But again, while this collection.xml approach would probably work... it's still more complicated than just created a .properties file by hand
Reply With Quote
  #14  
Old 06-14-2011, 02:24 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
Quote:
Originally Posted by stuckless View Post
But again, while this collection.xml approach would probably work... it's still more complicated than just created a .properties file by hand
Understandable.

It would work, but for me I don't use the .properties files because they seem to cause me grief. So I make sure to use the one tools option to delete .properties files. So, if I made the .properties files I would surely end up destroying them at some point down the road and I thought that if I could construct a simplified collection.xml with the odds and ends of metadata that won't scrape correctly I could essentially keep my own custom source file for the erroneous. I would be entirely less likely to delete that file becasue I would place it in the userdata area and back it up regularly.
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
Display Name: Fanart title vs Movie title les_bloom Diamond 8 05-12-2011 04:25 PM
SageTV Show Title Doesn't Match BMT Show/Fanart Title ptzink Batch Metadata Tools 8 03-16-2011 07:50 AM
API call to convert show title to file name? Slugger SageTV Studio 5 06-03-2009 02:42 PM
video file metadata (title, description, etc)? davidjade SageTV HD Theater - Media Player 0 01-30-2009 08:12 PM
Clarify the title/artist bit eg. [DVD TITLE] / [MOVIE TITLE]? bcjenkins SageMC Custom Interface 1 12-31-2008 11:58 AM


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


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