chadopp / mythepisode

TV Series/Shows
2 stars 3 forks source link

Episode shown as "Previously Recorded" against another episode of a similar name #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Cannot be reproduced without my recording set
2.
3.

What is the expected output? What do you see instead?
Although I know the episode "Girlfriend" is "Not Recorded", it says "Previously 
Recorded" as the word "Girlfriend" exists in another episode's title that has 
been recorded.

What version of the product are you using? On what operating system?
mythtv and web .23, mythepisode 1.0.6

Please provide any additional information below.
Also, I have been looking through the code to try and understand how the "Not 
Recorded, Previous Recording" etc are looked-up and cannot fully piece it 
together - if someone could maybe put a piece of pseudo-code together to 
explain it maybe I can help fix it? (references to files and line numbers would 
be handy) 

Original issue reported on code.google.com by alec.chr...@gmail.com on 19 Oct 2010 at 11:58

GoogleCodeExporter commented 9 years ago
Thanks for feedback Alec.  You should look at the handler.php where you will 
find an option called $matchPercent.  By default it is set to 85 which means if 
85% of the characters coming from the episode name in mythtv DB match those 
found in the episode name coming from tvrage, then it is close enough to be 
tagged as a match.  You can try setting this a little higher to see how things 
work for you.  100 means exact match  but may cause you to not have things show 
as recorded because of differences in spelling.  I originally added this option 
because of one of the episodes of the King of Queens.  tvrage spells it like 
"Alter Ego" and mythtvDB had it as "Altar Ego".  As a result with 100 matching 
it would show as not recorded.  You have to pick a balance with the number you 
set it at.  It works best for me around 85, but not perfect all the time.  Let 
me know how it works out for you.

Original comment by chadopp@gmail.com on 20 Oct 2010 at 1:46

GoogleCodeExporter commented 9 years ago
Wow, I didn't imagine 2% would make such a difference! Thank you.

Original comment by alec.chr...@gmail.com on 20 Oct 2010 at 7:54

GoogleCodeExporter commented 9 years ago
matchPercent should take care of this in most cases, but it will be very 
difficult if not impossible to successfully match all shows because of diffs 
between schedsdirect and tvrage.

Original comment by chadopp@gmail.com on 21 Oct 2010 at 3:10