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-09-2011, 06:57 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Question Change Default TV Title Mask

I want to change the default mask used to scan for TV shows.

I have a program that pulls files from my Tivo to an import directory on my SageTV Server. The files are named as follows:

Franklin and Bash (2011_06_08) - (101) Pilot.mpg

(Series)..............(Air Date)...........SEE..Title

Would changing the Default Mask to the following work?

${Title} (${OriginalAirDate}) - (${SeasonNumber:java.text.DecimalFormat:0}${EpisodeNumber:java.text.DecimalFormat:00}) ${EpisodeName}

Thanks,
John
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #2  
Old 06-09-2011, 10:12 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Title masks are used by the UI to render a formatted title, they are not used by the scrapers at all.

What you need to do, is either rename your files to conform to BMT, or create a new TV filename scaper and provide an implementation for your custom filename. The latter is much more complicated, and as such, very few people do it.

But, you can look at the existing scrapers in the STVs/Phoenix/scrapers/xbmc/tvfilenames/ area.
Reply With Quote
  #3  
Old 06-09-2011, 10:49 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
I would prefer not to have to rename the files.

I took a look at the existing scrapers in the directory.

I have done programming in the past, so I am willing to take a crack at it. Is there documentation on how to build the expression?

Thanks,
John
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #4  
Old 06-09-2011, 11:17 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by NetworkGuy View Post
I would prefer not to have to rename the files.

I took a look at the existing scrapers in the directory.

I have done programming in the past, so I am willing to take a crack at it. Is there documentation on how to build the expression?

Thanks,
John
The expressions are "regular expression" with groups. If you look at one of the existing scrapers, you might get an idea of how it's done.

Also, I can review your scraper for you as well.
Reply With Quote
  #5  
Old 06-10-2011, 04:28 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Not recognizing file as TV Show

I tried recording a TV show using one of the file formats from the manual:
Series -- Episode Title
Here is the filename:
Friends -- The One With Joeys Fridge.mpg
Yet, when I browse to the file, BMT STILL identifies the Media Type as movie.

Anyway to change the defualt to TV Show?

Thanks,
John
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #6  
Old 06-10-2011, 05:50 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by NetworkGuy View Post
I tried recording a TV show using one of the file formats from the manual:
Series -- Episode Title
Here is the filename:
Friends -- The One With Joeys Fridge.mpg
Yet, when I browse to the file, BMT STILL identifies the Media Type as movie.

Anyway to change the defualt to TV Show?

Thanks,
John
Are you sure bmt scanned it. Basically BMT has 2 media types TV and MOVIE so if it wasn't scanned by bmt, then bmt will still show it as "Movie" which is the default.

If you search the logs/phoenix-metadata.log for the filename, do it show that it had an error?

That format of Series -- EpisideName is supported by bmt.
Reply With Quote
  #7  
Old 06-10-2011, 09:27 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Quote:
Originally Posted by stuckless View Post
Are you sure bmt scanned it.
OK, maybe I am doing something wrong. Here is what I am doing:
  1. Tivo Records a program (Automatic)
  2. kmttg transfers/converts the file to the SageTV Server directory \Tivo 2 (Automatic)
  3. I move the file to the Imported TV 2 Directory and rename it to the format Series -- EpisideName
  4. NOTE: \Imported TV 2 is a Media Center Import Directory
  5. I have SageTV scan for new media
  6. I use the BMT web app to browse to find the file
  7. The title is identified as a movie

The file shows up in the Video section of SageTV. Is there something else I should be doing to have BMT scan the file?

The filename does not appear in the logs/phoenix-metadata.log.

Also, when I find the file and edit it, I use the drop down to change it to TV and hit SAVE. But it does not change, it goes back to being MOVIE.

Thanks,
John
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)

Last edited by NetworkGuy; 06-10-2011 at 09:31 AM. Reason: Additional Information
Reply With Quote
  #8  
Old 06-10-2011, 10:14 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
John, I'll try to do some simple testing this weekend using similar approach. I haven't noticed an issues like the one that you are experiencing, but I'll try to mimic your test, and see what I come up with.

Are you noticing that it has correct metadata, except that it is being shown as a Movie and not TV?
Reply With Quote
  #9  
Old 06-10-2011, 10:23 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
There is no metadata in the file. I always have to do a mnaual search.
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #10  
Old 06-10-2011, 10:28 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by NetworkGuy View Post
There is no metadata in the file. I always have to do a mnaual search.
And when you do a manual search and click save, the metadata immediately reverts back to no metadata? Or just the MediaType?

BTW, the fact that the files has no metadata when you view it in bmt, is enough to assume that bmt failed to find the proper metadata for that item... to know why exactly, I'd need to see the logs.
Reply With Quote
  #11  
Old 06-10-2011, 10:40 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
I do not even need to do a search. If I just change the drop-down to MOVIE and click save, it goes to blank. WHen I exit the record and re-enter, it still has MOVIE in the Media Type and any changes I have made are not recorded.

But if I do a search (maanually changing it to a TV search), fetch the metadata and then hit SAVE, the changes take.

I checked the configuration setting and Automatic Fanart/Metadata is not turned on. That may explain why BMT is not scanning the file.

Thanks,
John
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
Reply With Quote
  #12  
Old 06-10-2011, 11:12 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by NetworkGuy View Post
I do not even need to do a search. If I just change the drop-down to MOVIE and click save, it goes to blank. WHen I exit the record and re-enter, it still has MOVIE in the Media Type and any changes I have made are not recorded.

But if I do a search (maanually changing it to a TV search), fetch the metadata and then hit SAVE, the changes take.
OK, this may be a result of you trying to make something a TV show when there isn't enough metadata to do so, ie, missing fanart title, season number, episode number, etc. BMT could probably better report the error, but I suspect that what's going on here.

Quote:
I checked the configuration setting and Automatic Fanart/Metadata is not turned on. That may explain why BMT is not scanning the file.
That would definately explain why you are not getting metadata (automatically)... goes back to my original question... "are you sure bmt is fetching metadata for these items", and the answer is "no".

I'm not sure why you don't have it turned on, but if it's not turned on, then bmt won't automatically fetch metadata. You'll have to manually update the item.

BMT ships with that setting turned on by default, so if it's off, then you would have turned it off, for some reason.
Reply With Quote
  #13  
Old 06-10-2011, 11:38 AM
NetworkGuy NetworkGuy is offline
Sage Fanatic
 
Join Date: Dec 2009
Location: Central NJ
Posts: 869
Quote:
Originally Posted by stuckless View Post
OK, this may be a result of you trying to make something a TV show when there isn't enough metadata to do so, ie, missing fanart title, season number, episode number, etc. BMT could probably better report the error, but I suspect that what's going on here.
That explains why the changes do not stick.

Quote:
I'm not sure why you don't have it turned on, but if it's not turned on, then bmt won't automatically fetch metadata. You'll have to manually update the item.

BMT ships with that setting turned on by default, so if it's off, then you would have turned it off, for some reason.
I turned on the Automatic Fanart/Metadata and ran a test. It will now recognize the file as a TV show.

I think I may have turned it off at one time because I was low on space and it was downloading too much Fanart.

Thanks,
John
__________________
Hardware: Intel Core i5-3330 CPU; 8GB (2 x 4GB); 2-4TB WD Blue SATA 6.0Gb/s HDD; Windows 7
Servers: ChannelsDVR, Plex, AnyStream, PlayOn,
Tuner: HDHomeRun Connect Quatro
Tuner: HDHomeRun Connect Duo
Sources: OTA, Sling Blue, Prime, Disney+,
Clients: ShieldTV (2), Fire TV Stick 4K (4)
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
How to Change Title and Description of Recording? FriscoJohn SageTV Software 3 11-12-2010 09:41 AM
Change default HD200 STV gcrow SageTV Beta Test Software 5 06-01-2010 06:19 PM
how to change the 2 Hr recording default tekguy1 SageTV Software 4 07-09-2009 04:38 PM
Clarify the title/artist bit eg. [DVD TITLE] / [MOVIE TITLE]? bcjenkins SageMC Custom Interface 1 12-31-2008 11:58 AM
Is there a way to either hide or change the color of the SageTV Window title bar? mkanet SageTV Software 1 12-27-2005 09:54 PM


All times are GMT -6. The time now is 01:30 PM.


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