chadopp / mythepisode

TV Series/Shows
2 stars 3 forks source link

Different spelling in subtitle - need a good regex #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. mythepisode is unable to match certain subtitles as being schedule for 
recording or previously recorded because of differences in spelling.

Ex.. The King of Queens has an episode called "Altar Ego".  The mythtv DB 
spells it "Alter Ego" while tvrage spells it "Altar Ego".  Because of the 
difference in spelling the show is not flagged properly in the episode listing 
if it is scheduled for recording or already recorded.

I need a good regex to account for stuff like this.  

Original issue reported on code.google.com by chadopp@gmail.com on 20 Aug 2010 at 11:52

GoogleCodeExporter commented 9 years ago
I'm working on a fix for this now.  Using similar_text function

Original comment by chadopp@gmail.com on 21 Aug 2010 at 12:42

GoogleCodeExporter commented 9 years ago
Created a new function called close_match that seems to handle this fairly 
well.  This function is part of episodes.php

Original comment by chadopp@gmail.com on 21 Aug 2010 at 4:09