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 01-26-2011, 02:51 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Use Original Airdate to determine between multiple title hits?

An idea that just occurred to me when I was scanning though my missing metadata list: if a TV show title comes up with multiple hits if you do an air date search on all them prolly 99% of the time you'd be able to accuratly identify which series to use without the help of MediaTitles.xml.
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)
Reply With Quote
  #2  
Old 01-26-2011, 02:59 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
you're making the assumption that the original air date as set by the EPG is accurate though.... but ya i would think if you added logic around the OAD (and assumed it was correct) to figure out which series it was that solve the vast majority of the need for the mediatitles.xml
__________________
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
  #3  
Old 01-26-2011, 03:10 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by evilpenguin View Post
An idea that just occurred to me when I was scanning though my missing metadata list: if a TV show title comes up with multiple hits if you do an air date search on all them prolly 99% of the time you'd be able to accuratly identify which series to use without the help of MediaTitles.xml.
You mean for the series? The media titles is used to identify a series... I'm still now sure how the air date is going to help me narrow down the series?

on recordings, I could probably use getSeriesInfo().getYear() to help narrow it down, but I'm not sure the air date will help... unless i'm missing something.
Reply With Quote
  #4  
Old 01-26-2011, 03:22 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Test Series: Parenthood

TVDB:
Parenthood - First Aired Date: 8/1/1990
Parenthood (2010) - First Aired Date: 3/2/2010

So you do something like this:
Code:
Get Original Air Date (OAD) from the Recording EPG metadata
Get Series List from TVDB, Get First Aired Date (FAD) for each series
Compare OAD to the FAD for each series.
Assume that the show belongs to the series with an OAD after the series FAD but before any other FAD of other series
Note: You are making the assumption that 2 shows of the same title do not originally air at the same time.
__________________
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
  #5  
Old 01-26-2011, 03:45 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
What i'm thinking is this:
  1. Do title search in theTVDB
  2. Take all of the hits and do a check of the original airdate of the episode
  3. Which ever returns a match is the correct show

Take last nights "The Biggest Loser" for example which the EPG comes down with the episode blank and the original air date set to "2011-01-25".

When BMT does a title search it returns 3 results...
  • The Biggest Loser
  • The Biggest Loser UK
  • The Biggest Loser Australia
and it fails since without help from MediaTitles.xml it can't decide which to use.

But if you do an Original Airdate Check on each of the series...

The only one that returns data is the correct one.

As you say, the two issues that could come up are:
  1. If the EPG has the incorrect OAD - If this is the case scraping will fail regardless so who cares?
  2. If multiple titles returned have first run episode that air on the same day - The odds of this occurring are so small that its hardly worth considering. Edit: Actually I can think of a few cases where this is pretty possible, but mostly CBS and their army of CSI/NCIS spinoffs. While they don't currently air on the same night, I could see it happening. Although, I don't think this alone is enough of an exception to discount the method.

Looking at my MediaTitles.xml, a check like this would fix about half of my items (The Office, V, The Good Guys, Doctor Who, Human Target, Conan, Castle).

Edit: Actually this "The Biggest Loser" failure is pretty odd on its own. theTVDB has a direct title match with the EPG title, but for some reason BMT is choosing to check "The Biggest Loser UK"

Code:
2011-01-26 12:38:22,777 - ERROR; \\Secretivo\Data1\SageRecordings\TheBiggestLoser-8264267-0.mpg; The Biggest Loser; 8301668; Failed while parsing series: MediaSearchResult [extraArgs={CLEAN_TITLE: The Biggest Loser,YEAR: 0,RAW_TITLE: The Biggest Loser,EPISODE_DATE: 2011-01-18,}, id=92371, imdbId=null, metadata=null, providerId=tvdb, score=0.96, title=The Biggest Loser UK, type=TV, url=92371, year=0]
2011-01-26 12:38:23,405 - ERROR; \\Secretivo\Data1\SageRecordings\TheBiggestLoser-8285906-0.mpg; The Biggest Loser; 8324207; Failed while parsing series: MediaSearchResult [extraArgs={CLEAN_TITLE: The Biggest Loser,YEAR: 0,RAW_TITLE: The Biggest Loser,EPISODE_DATE: 2011-01-25,}, id=92371, imdbId=null, metadata=null, providerId=tvdb, score=0.96, title=The Biggest Loser UK, type=TV, url=92371, year=0]
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)

Last edited by evilpenguin; 01-26-2011 at 06:05 PM.
Reply With Quote
  #6  
Old 01-26-2011, 07:00 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Thanks, I understand now. Although, I suspect that you've uncovered an issue, since if there is a direct match, then BMT should have chosen it, and not the UK version. The think that was interesting about the UK selection, is that the Year was 0 (in tvdb for some year), so I'm wondering if BMT chose it, because it would have match the year for your show (which would have been 0 as well)

I'll open a bug for this, and I'll consider your proposal. From a bmt perspective, the selecting of the series and the finding of the episode happen at 2 different stages of the lookup, and the original list is discard at the time that bmt tries to look for episodes
Reply With Quote
  #7  
Old 01-27-2011, 07:57 PM
ohpleaseno ohpleaseno is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: South Florida
Posts: 464
Quote:
Originally Posted by razrsharpe View Post
you're making the assumption that the original air date as set by the EPG is accurate though....
Yeah, This Old House is always OAD +2 from my EPG.
__________________
Server: WHS with 11TB of storage
Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD
Tuners: 1) HD-Homerun 2) Avermedia USB ATSC
Twitter: ohpleaseno
Reply With Quote
  #8  
Old 01-27-2011, 09:23 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Yeah, but it wouldn't really matter, without an episode title or correct OAD you'd have to manually scrape it regardless. The only issue would be if the incorrect OAD resulted in a false positive which it wouldn't.
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma
Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire
SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT


Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink)
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
Improving Imported TV hits Peter_h Batch Metadata Tools 10 11-19-2010 11:46 AM
Handling multiple movies with the same title tonysathre SageMC Custom Interface 6 04-16-2010 12:18 AM
Clarify the title/artist bit eg. [DVD TITLE] / [MOVIE TITLE]? bcjenkins SageMC Custom Interface 1 12-31-2008 11:58 AM
CPU hits 100% rdefino SageTV Beta Test Software 0 11-15-2008 12:07 PM


All times are GMT -6. The time now is 02:00 AM.


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